Bug 285444

Summary: Crash when adding face tag
Product: [Applications] digikam Reporter: Jonas <bugs.kde.j>
Component: Faces-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 2.1.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:

Description Jonas 2011-11-01 08:42:56 UTC
Application: digikam (2.1.1)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
I was adding a new region for a new face and than digikam crashes. This happens more frequently when face detection is running in the background (not in the case of this report)

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f0281be4a20 (LWP 20164))]

Thread 5 (Thread 0x7f0261329700 (LWP 20165)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f027c55b1ab in wait (time=18446744073709551615, this=0x1359a50) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x13598f8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005c2e20 in Digikam::ScanController::run (this=0x1359570) at /build/buildd/digikam-2.1.1/core/digikam/database/scancontroller.cpp:647
#4  0x00007f027c55ad05 in QThreadPrivate::start (arg=0x1359570) at thread/qthread_unix.cpp:331
#5  0x00007f0277298efc in start_thread (arg=0x7f0261329700) at pthread_create.c:304
#6  0x00007f027b7fd89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f0260b28700 (LWP 20166)):
#0  __pthread_mutex_unlock (mutex=0x13547c8) at pthread_mutex_unlock.c:289
#1  0x00007f0275375900 in g_main_context_dispatch (context=0x13547c0) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3014
#2  0x00007f0275376258 in g_main_context_iterate (context=0x13547c0, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3089
#3  0x00007f0275376429 in g_main_context_iteration (context=0x13547c0, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#4  0x00007f027c66cf3e in QEventDispatcherGlib::processEvents (this=0x1353840, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f027c640cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f027c640ef7 in QEventLoop::exec (this=0x7f0260b27b30, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f027c55827f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007f027c623cbf in QInotifyFileSystemWatcherEngine::run (this=0x13690c0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f027c55ad05 in QThreadPrivate::start (arg=0x13690c0) at thread/qthread_unix.cpp:331
#10 0x00007f0277298efc in start_thread (arg=0x7f0260b28700) at pthread_create.c:304
#11 0x00007f027b7fd89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f0260327700 (LWP 20170)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f027c55b1ab in wait (time=18446744073709551615, this=0x14a59c0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x14a5548, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f027f49f737 in Digikam::ParkingThread::run (this=0x14a5530) at /build/buildd/digikam-2.1.1/core/libs/threads/threadmanager.cpp:119
#4  0x00007f027c55ad05 in QThreadPrivate::start (arg=0x14a5530) at thread/qthread_unix.cpp:331
#5  0x00007f0277298efc in start_thread (arg=0x7f0260327700) at pthread_create.c:304
#6  0x00007f027b7fd89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f025eec2700 (LWP 20171)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f025eec1850 in ?? ()
#2  0x00007fff47fd17e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x7f0281be4a20 (LWP 20164)):
[KCrash Handler]
#6  QVariant::~QVariant (this=0xffa26e4900000030, __in_chrg=<optimized out>) at kernel/qvariant.cpp:1407
#7  0x00007f027eea9b68 in node_destruct (n=0x7f024865dad8, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:375
#8  erase (alast=<optimized out>, afirst=<optimized out>, this=0x1684aa8) at /usr/include/qt4/QtCore/qlist.h:792
#9  Digikam::ImageModel::removeRowPairs (this=0x16b3d40, toRemove=...) at /build/buildd/digikam-2.1.1/core/libs/models/imagemodel.cpp:878
#10 0x00007f027eeab70d in Digikam::ImageModel::finishIncrementalRefresh (this=0x16b3d40) at /build/buildd/digikam-2.1.1/core/libs/models/imagemodel.cpp:705
#11 0x000000000055a345 in Digikam::ImageAlbumModel::slotResult (this=0x16b3d40, job=<optimized out>) at /build/buildd/digikam-2.1.1/core/libs/models/imagealbummodel.cpp:307
#12 0x000000000055b87e in Digikam::ImageAlbumModel::qt_metacall (this=0x16b3d40, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff47e21ed0) at /build/buildd/digikam-2.1.1/obj-x86_64-linux-gnu/core/digikam/imagealbummodel.moc:117
#13 0x00007f027c654eba in QMetaObject::activate (sender=0x7f02481a0af0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff47e21ed0) at kernel/qobject.cpp:3278
#14 0x00007f027caa75b2 in KJob::result (this=<optimized out>, _t1=0x7f02481a0af0) at ./kjob.moc:194
#15 0x00007f027caa75f0 in KJob::emitResult (this=0x7f02481a0af0) at ../../kdecore/jobs/kjob.cpp:312
#16 0x00007f027e4b52c4 in KIO::SimpleJob::slotFinished (this=0x7f02481a0af0) at ../../kio/kio/job.cpp:494
#17 0x00007f027e4bcc9d in KIO::TransferJob::slotFinished (this=0x7f02481a0af0) at ../../kio/kio/job.cpp:1081
#18 0x00007f027e4bb601 in KIO::TransferJob::qt_metacall (this=0x7f02481a0af0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff47e22280) at ./jobclasses.moc:369
#19 0x00007f027c654eba in QMetaObject::activate (sender=0x1d37e40, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#20 0x00007f027e5619c1 in KIO::SlaveInterface::dispatch (this=<optimized out>, _cmd=104, rawdata=...) at ../../kio/kio/slaveinterface.cpp:172
#21 0x00007f027e55e875 in KIO::SlaveInterface::dispatch (this=0x1d37e40) at ../../kio/kio/slaveinterface.cpp:88
#22 0x00007f027e551ace in KIO::Slave::gotInput (this=0x1d37e40) at ../../kio/kio/slave.cpp:344
#23 0x00007f027e55222c in KIO::Slave::qt_metacall (this=0x1d37e40, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff47e226b0) at ./slave.moc:82
#24 0x00007f027c654eba in QMetaObject::activate (sender=0x32bb630, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#25 0x00007f027e4863a7 in dequeue (this=<optimized out>) at ../../kio/kio/connection.cpp:82
#26 KIO::ConnectionPrivate::dequeue (this=0x32dde80) at ../../kio/kio/connection.cpp:71
#27 0x00007f027e48644d in KIO::Connection::qt_metacall (this=0x32bb630, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x5995b50) at ./connection.moc:79
#28 0x00007f027c658a5e in QObject::event (this=0x32bb630, e=<optimized out>) at kernel/qobject.cpp:1217
#29 0x00007f027d042424 in notify_helper (e=0x507e320, receiver=0x32bb630, this=0x1280d60) at kernel/qapplication.cpp:4486
#30 QApplicationPrivate::notify_helper (this=0x1280d60, receiver=0x32bb630, e=0x507e320) at kernel/qapplication.cpp:4458
#31 0x00007f027d047291 in QApplication::notify (this=0x7fff47e23070, receiver=0x32bb630, e=0x507e320) at kernel/qapplication.cpp:4365
#32 0x00007f027dd56126 in KApplication::notify (this=0x7fff47e23070, receiver=0x32bb630, event=0x507e320) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007f027c641afc in QCoreApplication::notifyInternal (this=0x7fff47e23070, receiver=0x32bb630, event=0x507e320) at kernel/qcoreapplication.cpp:787
#34 0x00007f027c64551f in sendEvent (event=0x507e320, receiver=0x32bb630) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#35 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x121bbd0) at kernel/qcoreapplication.cpp:1428
#36 0x00007f027c66ca73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#37 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#38 0x00007f0275375a5d in g_main_dispatch (context=0x1281d00) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:2441
#39 g_main_context_dispatch (context=0x1281d00) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3011
#40 0x00007f0275376258 in g_main_context_iterate (context=0x1281d00, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3089
#41 0x00007f0275376429 in g_main_context_iteration (context=0x1281d00, may_block=1) at /build/buildd/glib2.0-2.30.0/./glib/gmain.c:3152
#42 0x00007f027c66ced6 in QEventDispatcherGlib::processEvents (this=0x121d270, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#43 0x00007f027d0ea07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007f027c640cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007f027c640ef7 in QEventLoop::exec (this=0x7fff47e22ef0, flags=...) at kernel/qeventloop.cpp:201
#46 0x00007f027c645789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#47 0x00000000004893fd in main (argc=5, argv=<optimized out>) at /build/buildd/digikam-2.1.1/core/digikam/main/main.cpp:232

This bug may be a duplicate of or related to bug 278049.

Possible duplicates by query: bug 284398, bug 284137, bug 283540, bug 283197, bug 283165.

Reported using DrKonqi
Comment 1 caulier.gilles 2011-11-01 08:52:07 UTC

*** This bug has been marked as a duplicate of bug 278049 ***
Comment 2 caulier.gilles 2019-12-23 06:21:47 UTC
Problem is fixed with new 7.0.0-beta1 through this long story from this bug

https://bugs.kde.org/show_bug.cgi?id=399923

You can test digiKam 7.0.0-beta1 with bundle available here:

https://download.kde.org/unstable/digikam/

Don't hesitate to give us a fresh feedback about his entry.

Thanks in advance

Gilles Caulier