Bug 268046

Summary: Switch foto with face recognition
Product: [Applications] digikam Reporter: Leo <sir_kalot>
Component: Faces-RecognitionAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:

Description Leo 2011-03-09 12:11:44 UTC
Application: digikam (2.0.0-beta4)
KDE Platform Version: 4.6.1 (4.6.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-28-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
Open a dir with some foto with some face recognized in "view image" mode
Move the mouse on a face recognized
Press spacebar to switch to the next file ... and DK crashes!! :(

the pakages are from the following repo
ppa:philip5/extra
ppa:philip5/kubuntu-backports
ppa:kubuntu-ppa/backports

The crash can be reproduced every time.

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

Thread 10 (Thread 0x7f9987ca8700 (LWP 18303)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f99a2baae3b in wait (this=<value optimized out>, mutex=0x2651568, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2651568, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x000000000060036b in Digikam::ScanController::run (this=0x2689db0) at /build/buildd/digikam2-2.0.0~beta4+git110307/digikam/database/scancontroller.cpp:602
#4  0x00007f99a2baa27e in QThreadPrivate::start (arg=0x2689db0) at thread/qthread_unix.cpp:266
#5  0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f99874a7700 (LWP 18304)):
#0  0x00007f999d23a0fd in g_main_context_iterate (context=0x26ecda0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2758
#1  0x00007f999d23a45c in g_main_context_iteration (context=0x26ecda0, may_block=1) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2843
#2  0x00007f99a2cca1e6 in QEventDispatcherGlib::processEvents (this=0x26387d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#3  0x00007f99a2c9ca02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#4  0x00007f99a2c9cdec in QEventLoop::exec (this=0x7f99874a6b70, flags=) at kernel/qeventloop.cpp:201
#5  0x00007f99a2ba72fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#6  0x00007f99a2c7c5f8 in QInotifyFileSystemWatcherEngine::run (this=0x2653010) at io/qfilesystemwatcher_inotify.cpp:248
#7  0x00007f99a2baa27e in QThreadPrivate::start (arg=0x2653010) at thread/qthread_unix.cpp:266
#8  0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#9  0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f9986ca6700 (LWP 18308)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f99a2baae3b in wait (this=<value optimized out>, mutex=0x29d5d58, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x29d5d58, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f99a759bb42 in Digikam::ParkingThread::run (this=0x29d5d40) at /build/buildd/digikam2-2.0.0~beta4+git110307/libs/threads/threadmanager.cpp:119
#4  0x00007f99a2baa27e in QThreadPrivate::start (arg=0x29d5d40) at thread/qthread_unix.cpp:266
#5  0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f9985a18700 (LWP 18309)):
#0  0x00007f99a1b79203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f999d23a009 in g_main_context_poll (context=0x2b83480, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:3093
#2  g_main_context_iterate (context=0x2b83480, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2775
#3  0x00007f999d23a45c in g_main_context_iteration (context=0x2b83480, may_block=1) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2843
#4  0x00007f99a2cca1e6 in QEventDispatcherGlib::processEvents (this=0x2b82d10, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#5  0x00007f99a2c9ca02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007f99a2c9cdec in QEventLoop::exec (this=0x7f9985a17b70, flags=) at kernel/qeventloop.cpp:201
#7  0x00007f99a2ba72fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#8  0x00007f99a2c7c5f8 in QInotifyFileSystemWatcherEngine::run (this=0x2b822f0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f99a2baa27e in QThreadPrivate::start (arg=0x2b822f0) at thread/qthread_unix.cpp:266
#10 0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#11 0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f9975eae700 (LWP 18310)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007f997c24d0d1 in metronom_sync_loop (this=0x2ddfa00) at metronom.c:870
#2  0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#3  0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f9974c75700 (LWP 18311)):
#0  0x00007f99a1b7e2c3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f997c276385 in xine_usec_sleep (usec=<value optimized out>) at utils.c:481
#2  0x00007f997c25ad09 in video_out_loop (this_gen=<value optimized out>) at video_out.c:1246
#3  0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#4  0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9974474700 (LWP 18312)):
#0  0x00007f99a1b79203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f999d23a009 in g_main_context_poll (context=0x320ead0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:3093
#2  g_main_context_iterate (context=0x320ead0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2775
#3  0x00007f999d23a45c in g_main_context_iteration (context=0x320ead0, may_block=1) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2843
#4  0x00007f99a2cca1e6 in QEventDispatcherGlib::processEvents (this=0x320e9e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#5  0x00007f99a2c9ca02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007f99a2c9cdec in QEventLoop::exec (this=0x7f9974473b50, flags=) at kernel/qeventloop.cpp:201
#7  0x00007f99a2ba72fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#8  0x00007f997c4a8830 in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f99a2baa27e in QThreadPrivate::start (arg=0x320e3a0) at thread/qthread_unix.cpp:266
#10 0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#11 0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9973a6e700 (LWP 18313)):
#0  0x00007f99a1b79203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f99a188a40f in ?? () from /usr/lib/libpulse.so.0
#2  0x00007f99a1879d76 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007f99a187b7f9 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007f99a187b8b0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007f99a188a20b in ?? () from /usr/lib/libpulse.so.0
#6  0x00007f99995cefb8 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#7  0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#8  0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f996f26c700 (LWP 18314)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f997c25de83 in fifo_peek_int (this_gen=<value optimized out>) at audio_out.c:348
#2  fifo_peek (this_gen=<value optimized out>) at audio_out.c:388
#3  ao_loop (this_gen=<value optimized out>) at audio_out.c:1015
#4  0x00007f999e89d971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#5  0x00007f99a1b8592d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f99aab129a0 (LWP 18302)):
[KCrash Handler]
#6  0x0000000000000030 in ?? ()
#7  0x00007f99a2cb54c1 in QObject::disconnect (sender=0x4ac5c10, signal=<value optimized out>, receiver=0x2b85720, method=<value optimized out>) at kernel/qobject.cpp:2730
#8  0x00007f99a7666f4f in Digikam::AnimationControl::takeItem (this=0x3d99f60, item=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta4+git110307/libs/widgets/graphicsview/itemvisibilitycontroller.cpp:312
#9  0x00007f99a76676ce in Digikam::ItemVisibilityController::removeItem (this=0x2b85720, item=0x3ddb720) at /build/buildd/digikam2-2.0.0~beta4+git110307/libs/widgets/graphicsview/itemvisibilitycontroller.cpp:665
#10 0x00007f99a766853f in Digikam::ItemVisibilityController::qt_metacall (this=0x2b85720, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffd11f7370) at /build/buildd/digikam2-2.0.0~beta4+git110307/obj-x86_64-linux-gnu/digikam/itemvisibilitycontroller.moc:134
#11 0x00007f99a2cb5b27 in QMetaObject::activate (sender=0x3ddb720, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x5d36988) at kernel/qobject.cpp:3280
#12 0x00007f99a2cb606f in QObject::destroyed (this=0x4ac5c10, _t1=0x3ddb720) at .moc/release-shared/moc_qobject.cpp:149
#13 0x00007f99a2cb6fd7 in QObject::~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:842
#14 0x00000000006d8d88 in Digikam::FaceItem::~FaceItem (this=0x3ddb720, __in_chrg=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta4+git110307/utilities/facedetection/facegroup.cpp:64
#15 0x00000000006d789d in Digikam::FaceGroup::clear (this=0x2b82ae0) at /build/buildd/digikam2-2.0.0~beta4+git110307/utilities/facedetection/facegroup.cpp:617
#16 0x00000000006d7e00 in Digikam::FaceGroup::setInfo (this=0x2b82ae0, info=...) at /build/buildd/digikam2-2.0.0~beta4+git110307/utilities/facedetection/facegroup.cpp:344
#17 0x000000000068f19d in Digikam::ImagePreviewView::imageLoaded (this=0x2b11160) at /build/buildd/digikam2-2.0.0~beta4+git110307/digikam/views/imagepreviewview.cpp:294
#18 0x000000000068fa34 in Digikam::ImagePreviewView::qt_metacall (this=0x2b11160, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffd11f7590) at /build/buildd/digikam2-2.0.0~beta4+git110307/obj-x86_64-linux-gnu/digikam/imagepreviewview.moc:131
#19 0x00007f99a2cb5b27 in QMetaObject::activate (sender=0x2b0ffc0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x5d36988) at kernel/qobject.cpp:3280
#20 0x00007f99a765e5fe in Digikam::DImgPreviewItem::qt_metacall (this=0x2b0ffc0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7f99800635c0) at /build/buildd/digikam2-2.0.0~beta4+git110307/obj-x86_64-linux-gnu/digikam/dimgpreviewitem.moc:86
#21 0x00007f99a2cafbde in QObject::event (this=0x2b0ffc0, e=0x4ac5c10) at kernel/qobject.cpp:1219
#22 0x00007f99a38dbfdc in QApplicationPrivate::notify_helper (this=0x25b24c0, receiver=0x2b0ffc0, e=0x7f9980045320) at kernel/qapplication.cpp:4396
#23 0x00007f99a38e1aed in QApplication::notify (this=0x7fffd11f8140, receiver=0x2b0ffc0, e=0x7f9980045320) at kernel/qapplication.cpp:4277
#24 0x00007f99a466c2c6 in KApplication::notify (this=0x7fffd11f8140, receiver=0x2b0ffc0, event=0x7f9980045320) at ../../kdeui/kernel/kapplication.cpp:311
#25 0x00007f99a2c9dcdc in QCoreApplication::notifyInternal (this=0x7fffd11f8140, receiver=0x2b0ffc0, event=0x7f9980045320) at kernel/qcoreapplication.cpp:732
#26 0x00007f99a2ca0c22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x25428e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#27 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x25428e0) at kernel/qcoreapplication.cpp:1373
#28 0x00007f99a2cca653 in sendPostedEvents (s=0x25b6060) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#29 postEventSourceDispatch (s=0x25b6060) at kernel/qeventdispatcher_glib.cpp:277
#30 0x00007f999d236342 in g_main_dispatch (context=0x25b5120) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2149
#31 g_main_context_dispatch (context=0x25b5120) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2702
#32 0x00007f999d23a2a8 in g_main_context_iterate (context=0x25b5120, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2780
#33 0x00007f999d23a45c in g_main_context_iteration (context=0x25b5120, may_block=1) at /build/buildd/glib2.0-2.26.1/glib/gmain.c:2843
#34 0x00007f99a2cca193 in QEventDispatcherGlib::processEvents (this=0x2542000, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#35 0x00007f99a398ea4e in QGuiEventDispatcherGlib::processEvents (this=0x4ac5c10, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f99a2c9ca02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#37 0x00007f99a2c9cdec in QEventLoop::exec (this=0x7fffd11f7fa0, flags=) at kernel/qeventloop.cpp:201
#38 0x00007f99a2ca0ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#39 0x00000000006ec18d in main (argc=<value optimized out>, argv=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta4+git110307/digikam/main/main.cpp:232

Reported using DrKonqi
Comment 1 Marcel Wiesweg 2011-04-18 22:25:49 UTC
I believe it's the same problem. Feel free to reopen if you can still reproduce with the fix for 268300 included.

*** This bug has been marked as a duplicate of bug 268300 ***
Comment 2 caulier.gilles 2019-12-23 07:15:27 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