Bug 343014

Summary: crashed when select another tag (face tag management)
Product: [Applications] digikam Reporter: wwdiver
Component: Faces-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 3.5.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.0.0
Sentry Crash Report:

Description wwdiver 2015-01-18 19:32:08 UTC
in the tag management section (persons) I select another tag. After a selection a reproducible crash was the result.

Reproducible: Always

Steps to Reproduce:
1. go to left menu icon selection <click on it>
2. select another tag 
3.

Actual Results:  
crash


Application: digikam (3.5.0)
KDE Platform Version: 4.13.3
Qt Version: 4.8.6
Operating System: Linux 3.13.0-44-generic x86_64
Distribution: Ubuntu 14.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
just select another tag in face recog GUI

System Kubuntu 14.04 64bit, DigiKam 3.5.0, official repository

The crash can be reproduced sometimes.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa62e4e7ac0 (LWP 15551))]

Thread 6 (Thread 0x7fa609ba5700 (LWP 15554)):
#0  0x00007fa627ef9cbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fa60e750248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007fa623189182 in start_thread (arg=0x7fa609ba5700) at pthread_create.c:312
#3  0x00007fa627f0700d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7fa60310c700 (LWP 15555)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fa628ce8816 in wait (time=18446744073709551615, this=0x2150a10) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x2150920, mutex=mutex@entry=0x2150918, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005d5ede in Digikam::ScanController::run (this=0x2150690) at /build/buildd/digikam-3.5.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007fa628ce832f in QThreadPrivate::start (arg=0x2150690) at thread/qthread_unix.cpp:349
#5  0x00007fa623189182 in start_thread (arg=0x7fa60310c700) at pthread_create.c:312
#6  0x00007fa627f0700d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fa60290b700 (LWP 15556)):
#0  0x00007fa62318b569 in __GI___pthread_mutex_lock (mutex=0x7fa5f4000a60) at ../nptl/pthread_mutex_lock.c:125
#1  0x00007fa6209f2981 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa6209b10d8 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa628e177be in QEventDispatcherGlib::processEvents (this=0x7fa5f40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007fa628de90af in QEventLoop::processEvents (this=this@entry=0x7fa60290aae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa628de93a5 in QEventLoop::exec (this=this@entry=0x7fa60290aae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa628ce5c5f in QThread::exec (this=this@entry=0x2167430) at thread/qthread.cpp:537
#7  0x00007fa628dca823 in QInotifyFileSystemWatcherEngine::run (this=0x2167430) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fa628ce832f in QThreadPrivate::start (arg=0x2167430) at thread/qthread_unix.cpp:349
#9  0x00007fa623189182 in start_thread (arg=0x7fa60290b700) at pthread_create.c:312
#10 0x00007fa627f0700d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fa60210a700 (LWP 15561)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fa628ce8816 in wait (time=18446744073709551615, this=0x21c4de0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x21c5a90, mutex=mutex@entry=0x21c5a88, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fa62bb6179a in Digikam::ParkingThread::run (this=0x21c5a70) at /build/buildd/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007fa628ce832f in QThreadPrivate::start (arg=0x21c5a70) at thread/qthread_unix.cpp:349
#5  0x00007fa623189182 in start_thread (arg=0x7fa60210a700) at pthread_create.c:312
#6  0x00007fa627f0700d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fa5f3fff700 (LWP 15562)):
#0  0x00007fa627ef9cbd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fa6209b0fe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa6209b10ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa628e177be in QEventDispatcherGlib::processEvents (this=0x7fa5ec0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007fa628de90af in QEventLoop::processEvents (this=this@entry=0x7fa5f3ffeae0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa628de93a5 in QEventLoop::exec (this=this@entry=0x7fa5f3ffeae0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa628ce5c5f in QThread::exec (this=this@entry=0x285e7c0) at thread/qthread.cpp:537
#7  0x00007fa628dca823 in QInotifyFileSystemWatcherEngine::run (this=0x285e7c0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fa628ce832f in QThreadPrivate::start (arg=0x285e7c0) at thread/qthread_unix.cpp:349
#9  0x00007fa623189182 in start_thread (arg=0x7fa5f3fff700) at pthread_create.c:312
#10 0x00007fa627f0700d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fa62e4e7ac0 (LWP 15551)):
[KCrash Handler]
#6  0x000000000e8f9d10 in ?? ()
#7  0x00007fa612a51dac in sqlite3MemCompare (pMem1=pMem1@entry=0x7fff75377be0, pMem2=<optimized out>, pColl=0x221b438) at sqlite3.c:60484
#8  0x00007fa612a51f63 in sqlite3VdbeRecordCompare (nKey1=18, pKey1=0x7fa5fc1fb0bf, pPKey2=pPKey2@entry=0x7fff75377ee0) at sqlite3.c:64162
#9  0x00007fa612a66579 in sqlite3BtreeMovetoUnpacked (pCur=0x45862b0, pIdxKey=0x7fff75377ee0, intKey=0, biasRight=<optimized out>, pRes=0x7fff75377ed0) at sqlite3.c:55077
#10 0x00007fa612a8e9c5 in sqlite3VdbeExec (p=p@entry=0x374d148) at sqlite3.c:70168
#11 0x00007fa612a96ed7 in sqlite3Step (p=0x374d148) at sqlite3.c:64828
#12 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#13 0x00007fa60170511c in QSQLiteResultPrivate::fetchNext (this=this@entry=0xf5b9fa0, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#14 0x00007fa601705e48 in QSQLiteResult::exec (this=0x34a35b0) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#15 0x00007fa62e10fb7d in QSqlQuery::exec (this=this@entry=0x7fff75378418) at kernel/qsqlquery.cpp:949
#16 0x00007fa62bb1aa26 in Digikam::DatabaseCoreBackend::exec (this=0x2068370, query=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1414
#17 0x00007fa62bb1aaac in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2068370, query=..., boundValue1=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1056
#18 0x00007fa62bb1bb50 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2068370, sql=..., boundValue1=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1005
#19 0x00007fa62bb1bb99 in Digikam::DatabaseCoreBackend::execSql (this=0x2068370, sql=..., boundValue1=..., values=values@entry=0x7fff75378460, lastInsertId=lastInsertId@entry=0x0) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:902
#20 0x00007fa62b4df42e in Digikam::AlbumDB::getSetting (this=this@entry=0x21f9cc0, keyword=...) at /build/buildd/digikam-3.5.0/core/libs/database/albumdb.cpp:972
#21 0x00007fa62b4dfd5c in Digikam::AlbumDB::getFilterSettings (this=0x21f9cc0, imageFilter=imageFilter@entry=0x7fff753786a0, videoFilter=videoFilter@entry=0x0, audioFilter=audioFilter@entry=0x0) at /build/buildd/digikam-3.5.0/core/libs/database/albumdb.cpp:1017
#22 0x000000000063a2c0 in Digikam::AlbumSettings::getRawFileFilter (this=this@entry=0x21ee650) at /build/buildd/digikam-3.5.0/core/digikam/utils/albumsettings.cpp:958
#23 0x0000000000533f42 in Digikam::KipiInterface::hostSetting (this=this@entry=0x2cecbb0, settingName=...) at /build/buildd/digikam-3.5.0/core/utilities/kipiiface/kipiinterface.cpp:363
#24 0x00000000005339f4 in Digikam::KipiInterface::currentAlbum (this=0x2cecbb0) at /build/buildd/digikam-3.5.0/core/utilities/kipiiface/kipiinterface.cpp:110
#25 0x00007fa579f6fd94 in KIPIAdvancedSlideshowPlugin::Plugin_AdvancedSlideshow::slotAlbumChanged (this=0x4622de0, anyAlbum=<optimized out>) at /build/buildd/digikam-3.5.0/extra/kipi-plugins/advancedslideshow/plugin/plugin_advancedslideshow.cpp:175
#26 0x00007fa628dfe87a in QMetaObject::activate (sender=0x2cecbb0, m=m@entry=0x7fa62c671e60 <KIPI::Interface::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff753789f0) at kernel/qobject.cpp:3539
#27 0x00007fa62c45e4c2 in KIPI::Interface::currentAlbumChanged (this=<optimized out>, _t1=true) at ./interface.moc:128
#28 0x00007fa628dfe87a in QMetaObject::activate (sender=0x21e9470, m=m@entry=0x844e60 <Digikam::AlbumManager::staticMetaObject>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x7fff75378b20) at kernel/qobject.cpp:3539
#29 0x00000000005a2e04 in signalAlbumCurrentChanged (_t1=0x45b1cf0, this=<optimized out>) at /build/buildd/digikam-3.5.0/obj-x86_64-linux-gnu/core/digikam/albummanager.moc:267
#30 Digikam::AlbumManager::setCurrentAlbum (this=<optimized out>, album=album@entry=0x45b1cf0) at /build/buildd/digikam-3.5.0/core/digikam/album/albummanager.cpp:1846
#31 0x00000000005c81cd in Digikam::AbstractAlbumTreeView::mousePressEvent (this=0x31dddc0, e=0x7fff753792a0) at /build/buildd/digikam-3.5.0/core/digikam/album/albumtreeview.cpp:538
#32 0x00007fa62982c37b in QWidget::event (this=this@entry=0x31dddc0, event=event@entry=0x7fff753792a0) at kernel/qwidget.cpp:8372
#33 0x00007fa629bcdfce in QFrame::event (this=0x31dddc0, e=0x7fff753792a0) at widgets/qframe.cpp:557
#34 0x00007fa629cdd5b3 in QAbstractItemView::viewportEvent (this=this@entry=0x31dddc0, event=event@entry=0x7fff753792a0) at itemviews/qabstractitemview.cpp:1644
#35 0x00007fa629d1c190 in QTreeView::viewportEvent (this=0x31dddc0, event=0x7fff753792a0) at itemviews/qtreeview.cpp:1252
#36 0x00007fa628dea646 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x1fecdf0, receiver=receiver@entry=0x31de550, event=event@entry=0x7fff753792a0) at kernel/qcoreapplication.cpp:1063
#37 0x00007fa6297dce0c in QApplicationPrivate::notify_helper (this=this@entry=0x1fecdf0, receiver=receiver@entry=0x31de550, e=e@entry=0x7fff753792a0) at kernel/qapplication.cpp:4563
#38 0x00007fa6297e35dd in QApplication::notify (this=this@entry=0x7fff75379f10, receiver=receiver@entry=0x31de550, e=e@entry=0x7fff753792a0) at kernel/qapplication.cpp:4110
#39 0x00007fa62a4e7d1a in KApplication::notify (this=0x7fff75379f10, receiver=0x31de550, event=0x7fff753792a0) at ../../kdeui/kernel/kapplication.cpp:311
#40 0x00007fa628dea4dd in QCoreApplication::notifyInternal (this=0x7fff75379f10, receiver=receiver@entry=0x31de550, event=event@entry=0x7fff753792a0) at kernel/qcoreapplication.cpp:953
#41 0x00007fa6297e2d93 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#42 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x31de550, event=event@entry=0x7fff753792a0, alienWidget=alienWidget@entry=0x31de550, nativeWidget=nativeWidget@entry=0x2694c60, buttonDown=buttonDown@entry=0x7fa62a2c2318 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#43 0x00007fa6298579cb in QETWidget::translateMouseEvent (this=this@entry=0x2694c60, event=event@entry=0x7fff75379620) at kernel/qapplication_x11.cpp:4634
#44 0x00007fa629857269 in QApplication::x11ProcessEvent (this=0x7fff75379f10, event=event@entry=0x7fff75379620) at kernel/qapplication_x11.cpp:3627
#45 0x00007fa62987eb02 in x11EventSourceDispatch (s=0x1fed030, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#46 0x00007fa6209b0e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007fa6209b1048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007fa6209b10ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007fa628e177a1 in QEventDispatcherGlib::processEvents (this=0x1f17940, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#50 0x00007fa62987ebb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x00007fa628de90af in QEventLoop::processEvents (this=this@entry=0x7fff753799f0, flags=...) at kernel/qeventloop.cpp:149
#52 0x00007fa628de93a5 in QEventLoop::exec (this=this@entry=0x7fff753799f0, flags=...) at kernel/qeventloop.cpp:204
#53 0x00007fa628deeb79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#54 0x00007fa6297db37c in QApplication::exec () at kernel/qapplication.cpp:3828
#55 0x0000000000492023 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/main/main.cpp:235

Possible duplicates by query: bug 342802, bug 342143, bug 341529, bug 341424, bug 339650.

An https://bugs.kde.org/ berichten
Comment 1 Christoph Feck 2015-01-18 19:39:06 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2019-12-23 06:21:58 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