Bug 332430 - Crashes when accidentally converting to black and white
Summary: Crashes when accidentally converting to black and white
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: BatchQueueManager-RAWProcessing (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-03-22 04:34 UTC by Mauricio
Modified: 2017-07-28 03:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mauricio 2014-03-22 04:34:37 UTC
Application: gwenview (4.12.2)
KDE Platform Version: 4.12.3
Qt Version: 4.8.6
Operating System: Linux 3.11.0-18-generic x86_64
Distribution: Ubuntu 13.10

-- Information about the crash:
- What I was doing when the application crashed:

So, I discovered this bug by mistake. Gwenview apparently does not automatically update the image when I ue "Plugins > Images > Convert to Black & White" (however, it does convert the image). So I clicked on it a second time and Gwenview crahed. I tried this again, and every time it happens.

The crash can be reproduced every time.

-- Backtrace:
Application: Gwenview (gwenview), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7eff8e3757c0 (LWP 16402))]

Thread 8 (Thread 0x7eff74ee6700 (LWP 16407)):
#0  0x00007eff86db80ea in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007eff86db8399 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007eff86d77d59 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007eff86d785c3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007eff86d787ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007eff8d1c6af6 in QEventDispatcherGlib::processEvents (this=0x7eff680008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007eff8d19830f in QEventLoop::processEvents (this=this@entry=0x7eff74ee5d70, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007eff8d198605 in QEventLoop::exec (this=this@entry=0x7eff74ee5d70, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007eff8d094c4f in QThread::exec (this=this@entry=0x102c150) at thread/qthread.cpp:537
#9  0x00007eff8d179a33 in QInotifyFileSystemWatcherEngine::run (this=0x102c150) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007eff8d09731f in QThreadPrivate::start (arg=0x102c150) at thread/qthread_unix.cpp:349
#11 0x00007eff8723cf6e in start_thread (arg=0x7eff74ee6700) at pthread_create.c:311
#12 0x00007eff8ab4e9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7eff6fdb5700 (LWP 16409)):
#0  __GI___pthread_mutex_lock (mutex=0x7eff64000a60) at pthread_mutex_lock.c:135
#1  0x00007eff86db83a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007eff86d77d59 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007eff86d785c3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007eff86d787ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007eff8d1c6af6 in QEventDispatcherGlib::processEvents (this=0x7eff640008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007eff8d19830f in QEventLoop::processEvents (this=this@entry=0x7eff6fdb4d70, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007eff8d198605 in QEventLoop::exec (this=this@entry=0x7eff6fdb4d70, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007eff8d094c4f in QThread::exec (this=this@entry=0x10899c0) at thread/qthread.cpp:537
#9  0x00007eff8d179a33 in QInotifyFileSystemWatcherEngine::run (this=0x10899c0) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007eff8d09731f in QThreadPrivate::start (arg=0x10899c0) at thread/qthread_unix.cpp:349
#11 0x00007eff8723cf6e in start_thread (arg=0x7eff6fdb5700) at pthread_create.c:311
#12 0x00007eff8ab4e9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7eff5aa61700 (LWP 16528)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007eff8d097806 in wait (time=18446744073709551615, this=0xedead0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xdf4d08, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007eff8dccc056 in ?? () from /usr/lib/libgwenviewlib.so.4
#4  0x00007eff8d09731f in QThreadPrivate::start (arg=0xdf4cf0) at thread/qthread_unix.cpp:349
#5  0x00007eff8723cf6e in start_thread (arg=0x7eff5aa61700) at pthread_create.c:311
#6  0x00007eff8ab4e9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7eff4f92f700 (LWP 17148)):
#0  0x00007eff8ab41f7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007eff834a04f8 in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#2  0x00007eff8349f43f in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#3  0x00007eff83489a04 in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#4  0x00007eff8348a494 in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#5  0x00007eff8348a97d in dbus_connection_send_with_reply_and_block () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#6  0x00007eff83486aec in dbus_bus_register () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#7  0x00007eff83486d7f in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
#8  0x00007eff878d418a in q_dbus_bus_get_private (error=0x7eff4f92e180, type=DBUS_BUS_SESSION) at qdbus_symbols_p.h:101
#9  QDBusConnection::connectToBus (type=type@entry=QDBusConnection::SessionBus, name=...) at qdbusconnection.cpp:353
#10 0x00007eff8b25b7c7 in KDBusConnectionPoolPrivate (this=0x7eff40003410) at ../../kdecore/kernel/kdbusconnectionpool.cpp:36
#11 KDBusConnectionPool::threadConnection () at ../../kdecore/kernel/kdbusconnectionpool.cpp:68
#12 0x00007eff8d859dec in emitSignal (signalName=..., args=...) at ../../kio/kio/kdirnotify.cpp:34
#13 0x00007eff8d85a47a in OrgKdeKDirNotifyInterface::emitLeftDirectory (url=...) at ../../kio/kio/kdirnotify.cpp:69
#14 0x00007eff8d843227 in sendSignal (this=<optimized out>, url=..., entering=false) at ../../kio/kio/kdirlister_p.h:343
#15 ~DirItem (this=0x1096b30, __in_chrg=<optimized out>) at ../../kio/kio/kdirlister_p.h:331
#16 qDeleteAll<QHash<QString, KDirListerCache::DirItem*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#17 qDeleteAll<QHash<QString, KDirListerCache::DirItem*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#18 KDirListerCache::~KDirListerCache (this=0xdf5300, __in_chrg=<optimized out>) at ../../kio/kio/kdirlister.cpp:79
#19 0x00007eff8d8432d9 in KDirListerCache::~KDirListerCache (this=0xdf5300, __in_chrg=<optimized out>) at ../../kio/kio/kdirlister.cpp:87
#20 0x00007eff8aa90071 in __run_exit_handlers (status=1, listp=0x7eff8ae156a8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#21 0x00007eff8aa900f5 in __GI_exit (status=<optimized out>) at exit.c:99
#22 0x00007eff89e65eec in ?? () from /usr/lib/x86_64-linux-gnu/libjpeg.so.8
#23 0x00007eff5b113cc8 in ?? () from /usr/lib/kde4/kipiplugin_jpeglossless.so
#24 0x00007eff5b1100b4 in ?? () from /usr/lib/kde4/kipiplugin_jpeglossless.so
#25 0x00007eff5b110cb7 in ?? () from /usr/lib/kde4/kipiplugin_jpeglossless.so
#26 0x00007eff5b10d785 in ?? () from /usr/lib/kde4/kipiplugin_jpeglossless.so
#27 0x00007eff6ca71cb2 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7eff4f92ed50, th=th@entry=0x7eff48002a90, job=job@entry=0x1d0b7a0) at ../../../threadweaver/Weaver/Job.cpp:106
#28 0x00007eff6ca71e6e in ThreadWeaver::Job::execute (this=0x1d0b7a0, th=0x7eff48002a90) at ../../../threadweaver/Weaver/Job.cpp:135
#29 0x00007eff6ca7390b in ThreadWeaver::JobCollectionJobRunner::execute (this=0x1d0bd20, t=0x7eff48002a90) at ../../../threadweaver/Weaver/JobCollection.cpp:82
#30 0x00007eff6ca716bb in ThreadWeaver::Thread::run (this=0x7eff48002a90) at ../../../threadweaver/Weaver/Thread.cpp:108
#31 0x00007eff8d09731f in QThreadPrivate::start (arg=0x7eff48002a90) at thread/qthread_unix.cpp:349
#32 0x00007eff8723cf6e in start_thread (arg=0x7eff4f92f700) at pthread_create.c:311
#33 0x00007eff8ab4e9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7eff50130700 (LWP 17281)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007eff8d097806 in wait (time=18446744073709551615, this=0xf6fbc0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xf6f970, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007eff8dcaa923 in ?? () from /usr/lib/libgwenviewlib.so.4
#4  0x00007eff8d09731f in QThreadPrivate::start (arg=0xf6f910) at thread/qthread_unix.cpp:349
#5  0x00007eff8723cf6e in start_thread (arg=0x7eff50130700) at pthread_create.c:311
#6  0x00007eff8ab4e9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7eff4f12e700 (LWP 17528)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007eff8d097806 in wait (time=18446744073709551615, this=0x19b8910) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x19cc590, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007eff6ccad5b1 in KDcrawIface::RActionThreadBase::run() () from /usr/lib/libkdcraw.so.22
#4  0x00007eff8d09731f in QThreadPrivate::start (arg=0x18b4190) at thread/qthread_unix.cpp:349
#5  0x00007eff8723cf6e in start_thread (arg=0x7eff4f12e700) at pthread_create.c:311
#6  0x00007eff8ab4e9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7eff4e92d700 (LWP 17529)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007eff8d097806 in wait (time=18446744073709551615, this=0x1a01490) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x19c9088, mutex=0x18ce110, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007eff6ca6fe6c in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x19c9060, th=0x7eff44002690) at ../../../threadweaver/Weaver/WeaverImpl.cpp:370
#4  0x00007eff6ca72903 in ThreadWeaver::WorkingHardState::applyForWork (this=0x195b720, th=0x7eff44002690, previous=0x0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:68
#5  0x00007eff6ca7161f in ThreadWeaver::Thread::run (this=0x7eff44002690) at ../../../threadweaver/Weaver/Thread.cpp:98
#6  0x00007eff8d09731f in QThreadPrivate::start (arg=0x7eff44002690) at thread/qthread_unix.cpp:349
#7  0x00007eff8723cf6e in start_thread (arg=0x7eff4e92d700) at pthread_create.c:311
#8  0x00007eff8ab4e9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7eff8e3757c0 (LWP 16402)):
[KCrash Handler]
#6  count (this=0x0) at ../../include/QtCore/../../src/corelib/tools/qvector.h:259
#7  QAccessible::updateAccessibility (o=0x1d0edd0, who=0, reason=QAccessible::TableModelChanged) at accessible/qaccessible_unix.cpp:117
#8  0x00007eff8d1adae8 in QMetaObject::activate (sender=sender@entry=0x1d11da0, m=m@entry=0x7eff8d4fd6a0 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff5e8c3dc0) at kernel/qobject.cpp:3539
#9  0x00007eff8d1f7904 in QAbstractItemModel::rowsInserted (this=this@entry=0x1d11da0, _t1=..., _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:196
#10 0x00007eff8d19382e in QAbstractItemModel::endInsertRows (this=this@entry=0x1d11da0) at kernel/qabstractitemmodel.cpp:2433
#11 0x00007eff8bd06a4f in QListModel::insert (this=this@entry=0x1d11da0, row=0, item=item@entry=0x1ba5ae0) at itemviews/qlistwidget.cpp:128
#12 0x00007eff8bd06ea0 in QListWidgetItem::QListWidgetItem (this=0x1ba5ae0, text=..., view=<optimized out>, type=<optimized out>) at itemviews/qlistwidget.cpp:626
#13 0x00007eff6d243d93 in ?? () from /usr/lib/digikam/libkipiplugins.so.3
#14 0x00007eff6d243985 in KIPIPlugins::KPBatchProgressWidget::addedAction(QString const&, int) () from /usr/lib/digikam/libkipiplugins.so.3
#15 0x00007eff5b1093a8 in ?? () from /usr/lib/kde4/kipiplugin_jpeglossless.so
#16 0x00007eff8d1adae8 in QMetaObject::activate (sender=0x18b4190, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff5e8c41c0) at kernel/qobject.cpp:3539
#17 0x00007eff5b10cd43 in ?? () from /usr/lib/kde4/kipiplugin_jpeglossless.so
#18 0x00007eff5b10d3fb in ?? () from /usr/lib/kde4/kipiplugin_jpeglossless.so
#19 0x00007eff8d1adae8 in QMetaObject::activate (sender=0x1d0b7a0, m=m@entry=0x7eff6cc7a400 <ThreadWeaver::Job::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff5e8c4350) at kernel/qobject.cpp:3539
#20 0x00007eff6ca71f2f in ThreadWeaver::Job::started (this=<optimized out>, _t1=0x1d0b7a0) at ./Job.moc:103
#21 0x00007eff8d1b1e9e in QObject::event (this=0x1d0b7a0, e=<optimized out>) at kernel/qobject.cpp:1194
#22 0x00007eff8b7aae7c in QApplicationPrivate::notify_helper (this=this@entry=0xc39c20, receiver=receiver@entry=0x1d0b7a0, e=e@entry=0x7eff400031d0) at kernel/qapplication.cpp:4567
#23 0x00007eff8b7b14f0 in QApplication::notify (this=this@entry=0x7fff5e8c49e0, receiver=receiver@entry=0x1d0b7a0, e=e@entry=0x7eff400031d0) at kernel/qapplication.cpp:4353
#24 0x00007eff8c4b5d5a in KApplication::notify (this=0x7fff5e8c49e0, receiver=0x1d0b7a0, event=0x7eff400031d0) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007eff8d19973d in QCoreApplication::notifyInternal (this=0x7fff5e8c49e0, receiver=receiver@entry=0x1d0b7a0, event=event@entry=0x7eff400031d0) at kernel/qcoreapplication.cpp:953
#26 0x00007eff8d19cdaf in sendEvent (event=0x7eff400031d0, receiver=0x1d0b7a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xbfb1f0) at kernel/qcoreapplication.cpp:1577
#28 0x00007eff8d19d253 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#29 0x00007eff8d1c7213 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#30 postEventSourceDispatch (s=0xc35280) at kernel/qeventdispatcher_glib.cpp:280
#31 0x00007eff86d783b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007eff86d78708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007eff86d787ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007eff8d1c6ad5 in QEventDispatcherGlib::processEvents (this=0xbfcaf0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#35 0x00007eff8b84ccb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007eff8d19830f in QEventLoop::processEvents (this=this@entry=0x7fff5e8c4980, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007eff8d198605 in QEventLoop::exec (this=this@entry=0x7fff5e8c4980, flags=...) at kernel/qeventloop.cpp:204
#38 0x00007eff8d19ddeb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#39 0x00000000004276ad in ?? ()
#40 0x00007eff8aa75de5 in __libc_start_main (main=0x4273c0, argc=6, ubp_av=0x7fff5e8c4b28, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff5e8c4b18) at libc-start.c:260
#41 0x0000000000427942 in _start ()

Reported using DrKonqi
Comment 1 caulier.gilles 2014-05-16 07:34:47 UTC
digiKam 4.0.0 is out :

http://www.digikam.org/node/713

Please check if this entry still valid with this new version.

Thanks in advance

Gilles Caulier
Comment 2 caulier.gilles 2014-12-10 17:57:40 UTC
Kipi-plugins 4.5.0 have been released.

Crash still reproducible with this release ?

Gilles Caulier
Comment 3 Mauricio 2014-12-10 22:03:53 UTC
This is what happens

1. Open image in Gwenview
2. Plugins > Images > Convert to Black and White
3. Image is converted, but Gwenview still shows in color
4. Plugins > Images > Convert to Black and White
5. Gwenview suddenly closes

gwenview --version
Qt: 4.8.6
KDE Development Platform: 4.14.2
Gwenview: 4.14.0 pre

How do I get the plugin versions?
Comment 4 Mauricio 2014-12-10 22:07:01 UTC
By the way, I've tried other plugins (e.g. flip, rotate). Gwenview does not update the image for any of them, but it only closes up when I use the black and white plugin twice.
Comment 5 caulier.gilles 2015-06-28 10:02:03 UTC
New Kipiplugins 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

Gilles Caulier
Comment 6 Mauricio 2015-06-28 22:09:38 UTC
The link instructed me to install kubuntu backports. I did and it messed up my system.  Is there a link to a .deb? I might try building from source later in the week but I wont try backports again.
Comment 7 caulier.gilles 2015-06-29 05:30:31 UTC
https://launchpad.net/~philip5/+archive/ubuntu/extra
Comment 8 caulier.gilles 2015-07-04 09:43:08 UTC
JPEGLossLess tool is not maintained and now obsolete with 5.0.0
Comment 9 Mauricio 2015-07-05 16:05:39 UTC
I'm really sorry about the delay. I've just realized that the reason I can't use plug-ins in Gwenview is because i am on KF5... I guess if it's obsolete now this bug report is no longer valid?