Bug 306993

Summary: Crash with Edit all metadata.
Product: [Applications] digikam Reporter: Valdas <zmogas>
Component: Plugin-Generic-MetadataEditAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, zmogas
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.7.0
Sentry Crash Report:

Description Valdas 2012-09-18 17:53:32 UTC
Application: gwenview (2.9.1)
KDE Platform Version: 4.9.1
Qt Version: 4.8.2
Operating System: Linux 3.5.0-4-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
What I was doing when the application crashed:
 - opened JPEG image in GwenView;
 - in main menu clicked Plugin -> Images -> Metadata -> Edit all metadata;
 - app crashes.

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 0x7f7db0457780 (LWP 16119))]

Thread 4 (Thread 0x7f7d9aee5700 (LWP 16120)):
#0  0x00007f7dace1cb03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f7da95cc036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f7da95cc164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7daf2a7906 in QEventDispatcherGlib::processEvents (this=0x7f7d940008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f7daf276e42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f7daf277097 in QEventLoop::exec (this=0x7f7d9aee4dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f7daf176057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f7daf256b4f in QInotifyFileSystemWatcherEngine::run (this=0x2508750) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f7daf17907b in QThreadPrivate::start (arg=0x2508750) at thread/qthread_unix.cpp:307
#9  0x00007f7da9c8ce9a in start_thread (arg=0x7f7d9aee5700) at pthread_create.c:308
#10 0x00007f7dace284bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f7d93fff700 (LWP 16121)):
#0  0x00007f7da9c9005d in __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x7f7d8c000a60) at pthread_mutex_unlock.c:290
#2  0x00007f7da96075d1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f7da95cb83b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f7da95cbf5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f7da95cc164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f7daf2a7906 in QEventDispatcherGlib::processEvents (this=0x7f7d8c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x00007f7daf276e42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f7daf277097 in QEventLoop::exec (this=0x7f7d93ffedd0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f7daf176057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#10 0x00007f7daf256b4f in QInotifyFileSystemWatcherEngine::run (this=0x2aa7510) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00007f7daf17907b in QThreadPrivate::start (arg=0x2aa7510) at thread/qthread_unix.cpp:307
#12 0x00007f7da9c8ce9a in start_thread (arg=0x7f7d93fff700) at pthread_create.c:308
#13 0x00007f7dace284bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#14 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f7d935fd700 (LWP 16122)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007f7daf1794ef in wait (time=30000, this=0x2cc03f0) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2cc0398, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f7daf16c66f in QThreadPoolThread::run (this=0x2cbffa0) at concurrent/qthreadpool.cpp:141
#4  0x00007f7daf17907b in QThreadPrivate::start (arg=0x2cbffa0) at thread/qthread_unix.cpp:307
#5  0x00007f7da9c8ce9a in start_thread (arg=0x7f7d935fd700) at pthread_create.c:308
#6  0x00007f7dace284bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f7db0457780 (LWP 16119)):
[KCrash Handler]
#6  0x00007f7daf29bf28 in clear (d=0x7ffff377b030) at kernel/qvariant.cpp:286
#7  0x00007f7d90b30cfe in setting (name=..., this=<optimized out>) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/common/libkipiplugins/tools/kphostsettings.cpp:68
#8  KIPIPlugins::KPHostSettings::metadataSettings (this=0x7ffff377b100) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/common/libkipiplugins/tools/kphostsettings.cpp:153
#9  0x00007f7d90b26c9d in KIPIPlugins::KPMetadata::init (this=0x7ffff377b120) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/common/libkipiplugins/tools/kpmetadata.cpp:81
#10 0x00007f7d7cc991c4 in KIPIMetadataEditPlugin::EXIFEditWidget::slotItemChanged (this=0x370a340) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/metadataedit/exif/exifeditwidget.cpp:216
#11 0x00007f7d7cc9a8e6 in KIPIMetadataEditPlugin::EXIFEditWidget::EXIFEditWidget (this=0x370a340, parent=<optimized out>) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/metadataedit/exif/exifeditwidget.cpp:177
#12 0x00007f7d7cc986ea in KIPIMetadataEditPlugin::MetadataEditDialog::MetadataEditDialog (this=0x3775450, parent=<optimized out>, urls=...) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/metadataedit/plugin/metadataedit.cpp:99
#13 0x00007f7d7cc8e559 in KIPIMetadataEditPlugin::Plugin_MetadataEdit::slotEditAllMetadata (this=<optimized out>) at /build/buildd/digikam-2.6.0/extra/kipi-plugins/metadataedit/plugin/plugin_metadataedit.cpp:154
#14 0x00007f7daf28c761 in QMetaObject::activate (sender=0x37ff4f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff377b7e0) at kernel/qobject.cpp:3547
#15 0x00007f7dada90072 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#16 0x00007f7dada9025f in QAction::activate (this=0x37ff4f0, event=<optimized out>) at kernel/qaction.cpp:1257
#17 0x00007f7dadee25e9 in QMenuPrivate::activateCausedStack (this=0x37ca400, causedStack=..., action=0x37ff4f0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#18 0x00007f7dadee8742 in QMenuPrivate::activateAction (this=0x37ca400, action=0x37ff4f0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#19 0x00007f7dae892290 in KMenu::mouseReleaseEvent (this=0x37d0b60, e=0x7ffff377c3b0) at ../../kdeui/widgets/kmenu.cpp:464
#20 0x00007f7dadae6fb4 in QWidget::event (this=0x37d0b60, event=0x7ffff377c3b0) at kernel/qwidget.cpp:8371
#21 0x00007f7dadee9cdb in QMenu::event (this=0x37d0b60, e=0x7ffff377c3b0) at widgets/qmenu.cpp:2469
#22 0x00007f7dada967b4 in notify_helper (e=0x7ffff377c3b0, receiver=0x37d0b60, this=0x2313b30) at kernel/qapplication.cpp:4556
#23 QApplicationPrivate::notify_helper (this=0x2313b30, receiver=0x37d0b60, e=0x7ffff377c3b0) at kernel/qapplication.cpp:4528
#24 0x00007f7dada9bf2f in QApplication::notify (this=<optimized out>, receiver=0x37d0b60, e=0x7ffff377c3b0) at kernel/qapplication.cpp:4099
#25 0x00007f7dae7d14a6 in KApplication::notify (this=0x7ffff377d0c0, receiver=0x37d0b60, event=0x7ffff377c3b0) at ../../kdeui/kernel/kapplication.cpp:311
#26 0x00007f7daf27830c in QCoreApplication::notifyInternal (this=0x7ffff377d0c0, receiver=0x37d0b60, event=0x7ffff377c3b0) at kernel/qcoreapplication.cpp:915
#27 0x00007f7dada97782 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#28 QApplicationPrivate::sendMouseEvent (receiver=0x37d0b60, event=0x7ffff377c3b0, alienWidget=0x0, nativeWidget=0x37d0b60, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3167
#29 0x00007f7dadb171e1 in QETWidget::translateMouseEvent (this=0x37d0b60, event=<optimized out>) at kernel/qapplication_x11.cpp:4551
#30 0x00007f7dadb15ace in QApplication::x11ProcessEvent (this=0x7ffff377d0c0, event=0x7ffff377cc80) at kernel/qapplication_x11.cpp:3732
#31 0x00007f7dadb3f052 in x11EventSourceDispatch (s=0x230f500, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#32 0x00007f7da95cbd53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f7da95cc0a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f7da95cc164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007f7daf2a789f in QEventDispatcherGlib::processEvents (this=0x22e5770, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#36 0x00007f7dadb3ecde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#37 0x00007f7daf276e42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#38 0x00007f7daf277097 in QEventLoop::exec (this=0x7ffff377d020, flags=...) at kernel/qeventloop.cpp:204
#39 0x00007f7daf27c3e7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#40 0x0000000000427325 in main (argc=6, argv=0x7ffff377d3e8) at ../../app/main.cpp:142

Reported using DrKonqi
Comment 1 caulier.gilles 2012-09-19 05:09:26 UTC

*** This bug has been marked as a duplicate of bug 302292 ***
Comment 2 caulier.gilles 2017-07-09 17:22:27 UTC
Problem is not reproducible since Metadata Editor is integrated in digiKam core 5.x

Gilles Caulier