Bug 358337

Summary: digiKam crashes while viewing thumbnails
Product: [Applications] digikam Reporter: ppedrok <ppedrok>
Component: Thumbs-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR Keywords: drkonqi
Version: 4.0.0   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.0
Sentry Crash Report:

Description ppedrok 2016-01-21 22:45:51 UTC
Application: digikam (4.0.0)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.16.0-38-generic i686
Distribution: Linux Mint 17.3 Rosa

-- Information about the crash:
- What I was doing when the application crashed:
Viewing thumbnails and editing single pictures, sometimes when returning after editing, sometimes when clicking on a thumbnail. It happens quite often.

The crash can be reproduced sometimes.

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

Thread 8 (Thread 0xaafd0b40 (LWP 3276)):
#0  0xb7779d50 in __kernel_vsyscall ()
#1  0xb46f3c8b in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xabbf3442 in ?? () from /lib/i386-linux-gnu/libusb-1.0.so.0
#3  0xb35ebf70 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#4  0xb4702bee in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 7 (Thread 0xa7bddb40 (LWP 3277)):
#0  0xb7779d50 in __kernel_vsyscall ()
#1  0xb35efd4b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb470fdcc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb54ed0f5 in wait (time=4294967295, this=0x9862978) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=this@entry=0x98531fc, mutex=mutex@entry=0x98531f8, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0x0821c064 in Digikam::ScanController::run (this=0x97baab8) at /build/buildd/digikam-4.0.0/core/digikam/database/scancontroller.cpp:725
#6  0xb54ecb6f in QThreadPrivate::start (arg=0x97baab8) at thread/qthread_unix.cpp:349
#7  0xb35ebf70 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0xb4702bee in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 6 (Thread 0xa71ffb40 (LWP 3278)):
#0  0xb308de77 in g_main_context_check () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0xb308e37a in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0xb308e528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb562e95f in QEventDispatcherGlib::processEvents (this=0xa6800480, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0xb55fd823 in QEventLoop::processEvents (this=this@entry=0xa71ff098, flags=...) at kernel/qeventloop.cpp:149
#5  0xb55fdb49 in QEventLoop::exec (this=this@entry=0xa71ff098, flags=...) at kernel/qeventloop.cpp:204
#6  0xb54ea23d in QThread::exec (this=this@entry=0x9869990) at thread/qthread.cpp:537
#7  0xb55ddc44 in QInotifyFileSystemWatcherEngine::run (this=0x9869990) at io/qfilesystemwatcher_inotify.cpp:265
#8  0xb54ecb6f in QThreadPrivate::start (arg=0x9869990) at thread/qthread_unix.cpp:349
#9  0xb35ebf70 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#10 0xb4702bee in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 5 (Thread 0xa67ffb40 (LWP 3280)):
#0  0xb7779d50 in __kernel_vsyscall ()
#1  0xb35efd4b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb470fdcc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb54ed0f5 in wait (time=4294967295, this=0x9a2e628) at thread/qwaitcondition_unix.cpp:86
#4  QWaitCondition::wait (this=this@entry=0x9a21c20, mutex=mutex@entry=0x9a21c1c, time=time@entry=4294967295) at thread/qwaitcondition_unix.cpp:158
#5  0xb6a7df34 in Digikam::ParkingThread::run (this=0x9a21c10) at /build/buildd/digikam-4.0.0/core/libs/threads/threadmanager.cpp:119
#6  0xb54ecb6f in QThreadPrivate::start (arg=0x9a21c10) at thread/qthread_unix.cpp:349
#7  0xb35ebf70 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0xb4702bee in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 4 (Thread 0xa5934b40 (LWP 3281)):
#0  0xb308b4db in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0xb308d943 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#2  0xb308e2df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb308e528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb562e95f in QEventDispatcherGlib::processEvents (this=0xa5000480, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#5  0xb55fd823 in QEventLoop::processEvents (this=this@entry=0xa5934098, flags=...) at kernel/qeventloop.cpp:149
#6  0xb55fdb49 in QEventLoop::exec (this=this@entry=0xa5934098, flags=...) at kernel/qeventloop.cpp:204
#7  0xb54ea23d in QThread::exec (this=this@entry=0x9d841d8) at thread/qthread.cpp:537
#8  0xb55ddc44 in QInotifyFileSystemWatcherEngine::run (this=0x9d841d8) at io/qfilesystemwatcher_inotify.cpp:265
#9  0xb54ecb6f in QThreadPrivate::start (arg=0x9d841d8) at thread/qthread_unix.cpp:349
#10 0xb35ebf70 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#11 0xb4702bee in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0x9e87db40 (LWP 3412)):
#0  0xb7779d50 in __kernel_vsyscall ()
#1  0xb4710872 in clock_gettime () from /lib/i386-linux-gnu/libc.so.6
#2  0xb55478cc in do_gettime (frac=0x9e87ce20, sec=0x9e87ce18) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0xb56302a2 in updateCurrentTime (this=0x9cd12abc) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x9cd12abc, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0xb562e82b in timerSourcePrepareHelper (src=<optimized out>, timeout=0x9e87cf1c) at kernel/qeventdispatcher_glib.cpp:143
#7  0xb562e8bd in timerSourcePrepare (source=0x9cd12a88, timeout=0x9e87cf1c) at kernel/qeventdispatcher_glib.cpp:176
#8  0xb308d9b3 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb308e2df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0xb308e528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#11 0xb562e95f in QEventDispatcherGlib::processEvents (this=0x9cd12b08, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#12 0xb55fd823 in QEventLoop::processEvents (this=this@entry=0x9e87d098, flags=...) at kernel/qeventloop.cpp:149
#13 0xb55fdb49 in QEventLoop::exec (this=this@entry=0x9e87d098, flags=...) at kernel/qeventloop.cpp:204
#14 0xb6a7d552 in Digikam::WorkerObjectRunnable::run (this=0xc58d840) at /build/buildd/digikam-4.0.0/core/libs/threads/threadmanager.cpp:196
#15 0xb54dff07 in QThreadPoolThread::run (this=0xab62df8) at concurrent/qthreadpool.cpp:108
#16 0xb54ecb6f in QThreadPrivate::start (arg=0xab62df8) at thread/qthread_unix.cpp:349
#17 0xb35ebf70 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#18 0xb4702bee in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0x9a0ffb40 (LWP 3427)):
#0  0xb7779d50 in __kernel_vsyscall ()
#1  0xb4710872 in clock_gettime () from /lib/i386-linux-gnu/libc.so.6
#2  0xb55478cc in do_gettime (frac=0x9a0fee20, sec=0x9a0fee18) at tools/qelapsedtimer_unix.cpp:127
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:144
#4  0xb56302a2 in updateCurrentTime (this=0x9cdf189c) at kernel/qeventdispatcher_unix.cpp:354
#5  QTimerInfoList::timerWait (this=0x9cdf189c, tm=...) at kernel/qeventdispatcher_unix.cpp:460
#6  0xb562e82b in timerSourcePrepareHelper (src=<optimized out>, timeout=0x9a0fef1c) at kernel/qeventdispatcher_glib.cpp:143
#7  0xb562e8bd in timerSourcePrepare (source=0x9cdf1868, timeout=0x9a0fef1c) at kernel/qeventdispatcher_glib.cpp:176
#8  0xb308d9b3 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb308e2df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0xb308e528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#11 0xb562e95f in QEventDispatcherGlib::processEvents (this=0x9cdd96f0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#12 0xb55fd823 in QEventLoop::processEvents (this=this@entry=0x9a0ff098, flags=...) at kernel/qeventloop.cpp:149
#13 0xb55fdb49 in QEventLoop::exec (this=this@entry=0x9a0ff098, flags=...) at kernel/qeventloop.cpp:204
#14 0xb6a7d552 in Digikam::WorkerObjectRunnable::run (this=0xc30bce0) at /build/buildd/digikam-4.0.0/core/libs/threads/threadmanager.cpp:196
#15 0xb54dff07 in QThreadPoolThread::run (this=0xab636e0) at concurrent/qthreadpool.cpp:108
#16 0xb54ecb6f in QThreadPrivate::start (arg=0xab636e0) at thread/qthread_unix.cpp:349
#17 0xb35ebf70 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#18 0xb4702bee in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xaaff6900 (LWP 3275)):
[KCrash Handler]
#7  0x086152a4 in QVectorData::shared_null ()
#8  0xac7822cd in sqlite3MemCompare (pMem1=pMem1@entry=0xbfd1c368, pMem2=<optimized out>, pColl=0xeb51418) at sqlite3.c:60495
#9  0xac7824a4 in sqlite3VdbeRecordCompare (nKey1=37, pKey1=0xa720aa23, pPKey2=pPKey2@entry=0xbfd1c5fc) at sqlite3.c:64173
#10 0xac797a62 in sqlite3BtreeMovetoUnpacked (pCur=0xe92bd78, pIdxKey=0xbfd1c5fc, intKey=0, biasRight=0, pRes=0xbfd1c5f0) at sqlite3.c:55088
#11 0xac7c1e1d in sqlite3VdbeExec (p=p@entry=0xf28eb98) at sqlite3.c:70179
#12 0xac7caa66 in sqlite3Step (p=0xf28eb98) at sqlite3.c:64839
#13 sqlite3_step (pStmt=0xf28eb98) at sqlite3.c:64905
#14 0xa73c4e9c in QSQLiteResultPrivate::fetchNext (this=this@entry=0xa28e358, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#15 0xa73c5ebd in QSQLiteResult::exec (this=0xe6e0ac0) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#16 0xb7723e60 in QSqlQuery::exec (this=this@entry=0xbfd1ca98) at kernel/qsqlquery.cpp:949
#17 0xb6a31ea1 in Digikam::DatabaseCoreBackend::exec (this=0x989f128, query=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1415
#18 0xb6a32045 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x989f128, query=..., boundValue1=..., boundValue2=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1065
#19 0xb6a32fca in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x989f128, sql=..., boundValue1=..., boundValue2=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1014
#20 0xb6a3302e in Digikam::DatabaseCoreBackend::execSql (this=0x989f128, sql=..., boundValue1=..., boundValue2=..., values=values@entry=0xbfd1cb14, lastInsertId=lastInsertId@entry=0x0) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:911
#21 0xb662221c in Digikam::AlbumDB::getIdenticalFiles (this=0x9874c90, uniqueHash=..., fileSize=644286, sourceId=-1) at /build/buildd/digikam-4.0.0/core/libs/database/albumdb.cpp:2770
#22 0xb669ffd6 in Digikam::ImageScanner::resolveHistoryImageId (historyId=...) at /build/buildd/digikam-4.0.0/core/libs/database/imagescanner.cpp:1223
#23 0xb66d44bf in Digikam::ImageHistoryGraphData::addVertex (this=this@entry=0xd772d78, imageId=...) at /build/buildd/digikam-4.0.0/core/libs/database/imagehistory/imagehistorygraph.cpp:253
#24 0xb66d46e1 in Digikam::ImageHistoryGraphData::addVertex (this=this@entry=0xd772d78, imageIds=...) at /build/buildd/digikam-4.0.0/core/libs/database/imagehistory/imagehistorygraph.cpp:222
#25 0xb66d562f in Digikam::ImageHistoryGraphData::addHistory (this=0xd772d78, history=..., extraCurrent=0) at /build/buildd/digikam-4.0.0/core/libs/database/imagehistory/imagehistorygraph.cpp:574
#26 0xb66d5a7a in Digikam::ImageHistoryGraph::addHistory (this=this@entry=0xbfd1ce8c, givenHistory=..., subjectId=...) at /build/buildd/digikam-4.0.0/core/libs/database/imagehistory/imagehistorygraph.cpp:545
#27 0xb66d5adf in Digikam::ImageHistoryGraph::addHistory (this=0xbfd1ce8c, givenHistory=..., historySubject=...) at /build/buildd/digikam-4.0.0/core/libs/database/imagehistory/imagehistorygraph.cpp:532
#28 0xb66d6452 in Digikam::ImageHistoryGraph::fromInfo (info=..., loadingMode=..., processingMode=processingMode@entry=Digikam::ImageHistoryGraph::PrepareForDisplay) at /build/buildd/digikam-4.0.0/core/libs/database/imagehistory/imagehistorygraph.cpp:508
#29 0xb66e6e4f in Digikam::ImageHistoryGraphModel::setHistory (this=0xa278a48, subject=..., graph=...) at /build/buildd/digikam-4.0.0/core/libs/database/imagehistory/imagehistorygraphmodel.cpp:614
#30 0x080ee6bf in Digikam::VersionsWidget::setCurrentItem (this=0xa273bf8, info=...) at /build/buildd/digikam-4.0.0/core/libs/widgets/imagehistory/versionswidget.cpp:212
#31 0x080ea2e6 in Digikam::ImagePropertiesVersionsTab::setItem (this=0xa2733d8, info=..., history=...) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagepropertiesversionstab.cpp:150
#32 0x080d4c13 in Digikam::ImagePropertiesSideBarDB::slotChangedTab (this=this@entry=0x9f5bf68, tab=0xa2733d8) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:317
#33 0x080d20eb in Digikam::ImagePropertiesSideBarDB::itemChanged (this=this@entry=0x9f5bf68, infos=..., rect=..., img=img@entry=0x0, history=...) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:199
#34 0x080d21ac in Digikam::ImagePropertiesSideBarDB::itemChanged (this=0x9f5bf68, infos=...) at /build/buildd/digikam-4.0.0/core/libs/imageproperties/imagepropertiessidebardb.cpp:175
#35 0x082badf4 in Digikam::DigikamView::slotDispatchImageSelected (this=this@entry=0x9bb2050) at /build/buildd/digikam-4.0.0/core/digikam/views/digikamview.cpp:1304
#36 0x082befa7 in Digikam::DigikamView::qt_static_metacall (_o=_o@entry=0x9bb2050, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=92, _a=0xbfd1d178) at /build/buildd/digikam-4.0.0/obj-i686-linux-gnu/core/digikam/digikamview.moc:340
#37 0xb56140f7 in QMetaObject::activate (sender=sender@entry=0xa41df10, m=m@entry=0xb576b518 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#38 0xb5664435 in QTimer::timeout (this=this@entry=0xa41df10) at .moc/release-shared/moc_qtimer.cpp:147
#39 0xb561d926 in QTimer::timerEvent (this=0xa41df10, e=0xbfd1d4f0) at kernel/qtimer.cpp:280
#40 0xb561855c in QObject::event (this=0xa41df10, e=0xbfd1d4f0) at kernel/qobject.cpp:1156
#41 0xb4a8d7f4 in QApplicationPrivate::notify_helper (this=0x974b710, receiver=0xa41df10, e=0xbfd1d4f0) at kernel/qapplication.cpp:4567
#42 0xb4a942d3 in QApplication::notify (this=0xbfd1d8e8, receiver=receiver@entry=0xa41df10, e=e@entry=0xbfd1d4f0) at kernel/qapplication.cpp:4353
#43 0xb5bf61b4 in KApplication::notify (this=0xbfd1d8e8, receiver=0xa41df10, event=0xbfd1d4f0) at ../../kdeui/kernel/kapplication.cpp:311
#44 0xb55fee4a in QCoreApplication::notifyInternal (this=0xbfd1d8e8, receiver=0xa41df10, event=event@entry=0xbfd1d4f0) at kernel/qcoreapplication.cpp:953
#45 0xb56317bb in sendEvent (event=0xbfd1d4f0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#46 QTimerInfoList::activateTimers (this=0x973f484) at kernel/qeventdispatcher_unix.cpp:621
#47 0xb562e7cb in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:193
#48 idleTimerSourceDispatch (source=0x974b810) at kernel/qeventdispatcher_glib.cpp:240
#49 0xb308e1e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#50 0xb308e468 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#51 0xb308e528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#52 0xb562e93b in QEventDispatcherGlib::processEvents (this=this@entry=0x96c3d18, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#53 0xb4b4260e in QGuiEventDispatcherGlib::processEvents (this=0x96c3d18, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#54 0xb55fd823 in QEventLoop::processEvents (this=this@entry=0xbfd1d718, flags=...) at kernel/qeventloop.cpp:149
#55 0xb55fdb49 in QEventLoop::exec (this=this@entry=0xbfd1d718, flags=...) at kernel/qeventloop.cpp:204
#56 0xb56038fe in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#57 0xb4a8ba24 in QApplication::exec () at kernel/qapplication.cpp:3828
#58 0x080be1a0 in main (argc=5, argv=0xbfd1da24) at /build/buildd/digikam-4.0.0/core/digikam/main/main.cpp:236

The reporter indicates this bug may be a duplicate of or related to bug 350130.

Possible duplicates by query: bug 356598, bug 356282, bug 355903, bug 351521, bug 351374.

Reported using DrKonqi
Comment 1 caulier.gilles 2016-01-22 06:00:36 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2019-08-15 15:26:02 UTC
Fixed with bug #329697