Bug 341529

Summary: Crash Everytime on "advance slideshow" after a few seconds
Product: [Applications] digikam Reporter: Samuel <sronayette>
Component: Database-SqliteAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR Keywords: drkonqi
Version: 4.0.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.3.0
Sentry Crash Report:

Description Samuel 2014-12-03 13:31:26 UTC
Application: digikam (4.0.0)
KDE Platform Version: 4.14.2
Qt Version: 4.8.6
Operating System: Linux 3.13.0-40-generic x86_64
Distribution: Ubuntu 14.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:
"Advanced slideshow", after a few seconds, the program crashes. Happens each time, with various settings (fade out, or no transisiton effect, 8 seconds, or 2 seconds on each photo...)
It does not happen however if I launch the diaporama directly (not "advanced")

The crash can be reproduced every time.

-- 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 0x7f2c7164cac0 (LWP 15734))]

Thread 7 (Thread 0x7f2c4ba6c700 (LWP 15735)):
#0  0x00007f2c6a79dc6d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f2c50e8c248 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007f2c66c87182 in start_thread (arg=0x7f2c4ba6c700) at pthread_create.c:312
#3  0x00007f2c6a7aafbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7f2c4501e700 (LWP 15736)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2c6c484816 in wait (time=18446744073709551615, this=0x1aae590) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1aae4d0, mutex=mutex@entry=0x1aae4c8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005e3d9e in Digikam::ScanController::run (this=0x1ab0aa0) at /build/buildd/digikam-4.0.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f2c6c48432f in QThreadPrivate::start (arg=0x1ab0aa0) at thread/qthread_unix.cpp:349
#5  0x00007f2c66c87182 in start_thread (arg=0x7f2c4501e700) at pthread_create.c:312
#6  0x00007f2c6a7aafbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 5 (Thread 0x7f2c4481d700 (LWP 15737)):
#0  0x00007f2c66c8a7ee in __pthread_mutex_unlock_usercnt (decr=1, mutex=0x7f2c38000a60) at pthread_mutex_unlock.c:57
#1  __GI___pthread_mutex_unlock (mutex=0x7f2c38000a60) at pthread_mutex_unlock.c:310
#2  0x00007f2c637269b1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2c636e4680 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2c636e4f03 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f2c636e50ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f2c6c5b37be in QEventDispatcherGlib::processEvents (this=0x7f2c380008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#7  0x00007f2c6c5850af in QEventLoop::processEvents (this=this@entry=0x7f2c4481cae0, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f2c6c5853a5 in QEventLoop::exec (this=this@entry=0x7f2c4481cae0, flags=...) at kernel/qeventloop.cpp:204
#9  0x00007f2c6c481c5f in QThread::exec (this=this@entry=0x1a820f0) at thread/qthread.cpp:537
#10 0x00007f2c6c566823 in QInotifyFileSystemWatcherEngine::run (this=0x1a820f0) at io/qfilesystemwatcher_inotify.cpp:265
#11 0x00007f2c6c48432f in QThreadPrivate::start (arg=0x1a820f0) at thread/qthread_unix.cpp:349
#12 0x00007f2c66c87182 in start_thread (arg=0x7f2c4481d700) at pthread_create.c:312
#13 0x00007f2c6a7aafbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f2c3ffff700 (LWP 15741)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2c6c484816 in wait (time=18446744073709551615, this=0x1b82260) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x1c79c50, mutex=mutex@entry=0x1c79c48, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f2c6ecc48aa in Digikam::ParkingThread::run (this=0x1c79c30) at /build/buildd/digikam-4.0.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f2c6c48432f in QThreadPrivate::start (arg=0x1c79c30) at thread/qthread_unix.cpp:349
#5  0x00007f2c66c87182 in start_thread (arg=0x7f2c3ffff700) at pthread_create.c:312
#6  0x00007f2c6a7aafbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f2c3e76b700 (LWP 15742)):
#0  0x00007f2c6a79c36d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f2c63725c10 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2c636e4b14 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2c636e4f7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2c636e50ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f2c6c5b37be in QEventDispatcherGlib::processEvents (this=0x7f2c2c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007f2c6c5850af in QEventLoop::processEvents (this=this@entry=0x7f2c3e76aae0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f2c6c5853a5 in QEventLoop::exec (this=this@entry=0x7f2c3e76aae0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f2c6c481c5f in QThread::exec (this=this@entry=0x23b1080) at thread/qthread.cpp:537
#9  0x00007f2c6c566823 in QInotifyFileSystemWatcherEngine::run (this=0x23b1080) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007f2c6c48432f in QThreadPrivate::start (arg=0x23b1080) at thread/qthread_unix.cpp:349
#11 0x00007f2c66c87182 in start_thread (arg=0x7f2c3e76b700) at pthread_create.c:312
#12 0x00007f2c6a7aafbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f2be583a700 (LWP 15792)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2c6c484816 in wait (time=18446744073709551615, this=0x5ec95a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x5ec6530, mutex=mutex@entry=0x5ec6528, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f2c1827dc6d in KIPIPlugins::KPRawThumbThread::run (this=0x5ec69b0) at /build/buildd/digikam-4.0.0/extra/kipi-plugins/common/libkipiplugins/tools/kprawthumbthread.cpp:108
#4  0x00007f2c6c48432f in QThreadPrivate::start (arg=0x5ec69b0) at thread/qthread_unix.cpp:349
#5  0x00007f2c66c87182 in start_thread (arg=0x7f2be583a700) at pthread_create.c:312
#6  0x00007f2c6a7aafbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f2c7164cac0 (LWP 15734)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007f2c55390dac in sqlite3MemCompare (pMem1=pMem1@entry=0x7fffe8f3d5e0, pMem2=<optimized out>, pColl=0x1b83ae0) at sqlite3.c:60484
#8  0x00007f2c55390f63 in sqlite3VdbeRecordCompare (nKey1=32, pKey1=0x7f2c4019fe4c, pPKey2=pPKey2@entry=0x7fffe8f3d8e0) at sqlite3.c:64162
#9  0x00007f2c553a5579 in sqlite3BtreeMovetoUnpacked (pCur=0x35cf630, pIdxKey=0x7fffe8f3d8e0, intKey=0, biasRight=<optimized out>, pRes=0x7fffe8f3d8d0) at sqlite3.c:55077
#10 0x00007f2c553cd9c5 in sqlite3VdbeExec (p=p@entry=0x64fba98) at sqlite3.c:70168
#11 0x00007f2c553d5ed7 in sqlite3Step (p=0x64fba98) at sqlite3.c:64828
#12 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#13 0x00007f2c3f5fa11c in QSQLiteResultPrivate::fetchNext (this=this@entry=0x1ab3e10, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#14 0x00007f2c3f5fae48 in QSQLiteResult::exec (this=0x67a92a0) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#15 0x00007f2c7127ab7d in QSqlQuery::exec (this=this@entry=0x7fffe8f3de18) at kernel/qsqlquery.cpp:949
#16 0x00007f2c6ec7da46 in Digikam::DatabaseCoreBackend::exec (this=0x1aebf90, query=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1415
#17 0x00007f2c6ec7dacc in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x1aebf90, query=..., boundValue1=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1057
#18 0x00007f2c6ec7eb70 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x1aebf90, sql=..., boundValue1=...) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:1006
#19 0x00007f2c6ec7ebb9 in Digikam::DatabaseCoreBackend::execSql (this=0x1aebf90, sql=..., boundValue1=..., values=values@entry=0x7fffe8f3de60, lastInsertId=lastInsertId@entry=0x0) at /build/buildd/digikam-4.0.0/core/libs/database/core/databasecorebackend.cpp:903
#20 0x00007f2c6e63fe2e in Digikam::AlbumDB::getSetting (this=this@entry=0x1aec050, keyword=...) at /build/buildd/digikam-4.0.0/core/libs/database/albumdb.cpp:972
#21 0x00007f2c6e64075c in Digikam::AlbumDB::getFilterSettings (this=0x1aec050, imageFilter=imageFilter@entry=0x7fffe8f3e0b0, videoFilter=videoFilter@entry=0x7fffe8f3e0d0, audioFilter=audioFilter@entry=0x7fffe8f3e0c0) at /build/buildd/digikam-4.0.0/core/libs/database/albumdb.cpp:1017
#22 0x00007f2c6e655eaa in Digikam::CollectionScanner::loadNameFilters (this=this@entry=0x7fffe8f3e2b0) at /build/buildd/digikam-4.0.0/core/libs/database/collectionscanner.cpp:408
#23 0x00007f2c6e6565e3 in Digikam::CollectionScanner::mainEntryPoint (this=this@entry=0x7fffe8f3e2b0, complete=complete@entry=false) at /build/buildd/digikam-4.0.0/core/libs/database/collectionscanner.cpp:806
#24 0x00007f2c6e658c64 in Digikam::CollectionScanner::scanFile (this=this@entry=0x7fffe8f3e2b0, fi=..., albumId=318, imageId=imageId@entry=62827, mode=mode@entry=Digikam::CollectionScanner::NormalScan) at /build/buildd/digikam-4.0.0/core/libs/database/collectionscanner.cpp:767
#25 0x00007f2c6e658e93 in Digikam::CollectionScanner::scanFile (this=this@entry=0x7fffe8f3e2b0, info=..., mode=Digikam::CollectionScanner::NormalScan) at /build/buildd/digikam-4.0.0/core/libs/database/collectionscanner.cpp:762
#26 0x00000000005e315d in Digikam::ScanController::scannedInfo (this=0x1ab0aa0, filePath=...) at /build/buildd/digikam-4.0.0/core/digikam/database/scancontroller.cpp:560
#27 0x00000000005343da in Digikam::KipiImageInfo::KipiImageInfo (this=0x4bdf5d0, interface=<optimized out>, url=...) at /build/buildd/digikam-4.0.0/core/utilities/kipiiface/kipiimageinfo.cpp:85
#28 0x000000000053d1ee in Digikam::KipiInterface::info (this=0x35f03e0, url=...) at /build/buildd/digikam-4.0.0/core/utilities/kipiiface/kipiinterface.cpp:175
#29 0x00007f2c18278ded in attribute (name=..., this=0x66b0230) at /build/buildd/digikam-4.0.0/extra/kipi-plugins/common/libkipiplugins/tools/kpimageinfo.cpp:73
#30 hasAttribute (name=..., this=0x66b0230) at /build/buildd/digikam-4.0.0/extra/kipi-plugins/common/libkipiplugins/tools/kpimageinfo.cpp:100
#31 KIPIPlugins::KPImageInfo::orientation (this=this@entry=0x7fffe8f3e460) at /build/buildd/digikam-4.0.0/extra/kipi-plugins/common/libkipiplugins/tools/kpimageinfo.cpp:337
#32 0x00007f2c1254f465 in KIPIAdvancedSlideshowPlugin::SlideShowLoader::next (this=0x66a5e60) at /build/buildd/digikam-4.0.0/extra/kipi-plugins/advancedslideshow/plugin/slideshowloader.cpp:201
#33 0x00007f2c125459d6 in KIPIAdvancedSlideshowPlugin::SlideShowGL::advanceFrame (this=this@entry=0x6508d80) at /build/buildd/digikam-4.0.0/extra/kipi-plugins/advancedslideshow/widgets/slideshowgl.cpp:420
#34 0x00007f2c1254b821 in KIPIAdvancedSlideshowPlugin::SlideShowGL::slotTimeOut (this=0x6508d80) at /build/buildd/digikam-4.0.0/extra/kipi-plugins/advancedslideshow/widgets/slideshowgl.cpp:779
#35 0x00007f2c6c59a87a in QMetaObject::activate (sender=0x66ba670, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#36 0x00007f2c6c59ea31 in QObject::event (this=0x66ba670, e=<optimized out>) at kernel/qobject.cpp:1156
#37 0x00007f2c6b6a4e2c in QApplicationPrivate::notify_helper (this=this@entry=0x193de50, receiver=receiver@entry=0x66ba670, e=e@entry=0x7fffe8f3ea00) at kernel/qapplication.cpp:4567
#38 0x00007f2c6b6ab4a0 in QApplication::notify (this=this@entry=0x7fffe8f3f190, receiver=receiver@entry=0x66ba670, e=e@entry=0x7fffe8f3ea00) at kernel/qapplication.cpp:4353
#39 0x00007f2c6cfd0cca in KApplication::notify (this=0x7fffe8f3f190, receiver=0x66ba670, event=0x7fffe8f3ea00) at ../../kdeui/kernel/kapplication.cpp:311
#40 0x00007f2c6c5864dd in QCoreApplication::notifyInternal (this=0x7fffe8f3f190, receiver=0x66ba670, event=0x7fffe8f3ea00) at kernel/qcoreapplication.cpp:953
#41 0x00007f2c6c5b6323 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#42 QTimerInfoList::activateTimers (this=0x19407a0) at kernel/qeventdispatcher_unix.cpp:621
#43 0x00007f2c6c5b3629 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:193
#44 idleTimerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:240
#45 0x00007f2c636e4e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f2c636e5048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f2c636e50ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f2c6c5b37a1 in QEventDispatcherGlib::processEvents (this=0x1854440, flags=...) at kernel/qeventdispatcher_glib.cpp:434
#49 0x00007f2c6b746bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007f2c6c5850af in QEventLoop::processEvents (this=this@entry=0x7fffe8f3ec70, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007f2c6c5853a5 in QEventLoop::exec (this=this@entry=0x7fffe8f3ec70, flags=...) at kernel/qeventloop.cpp:204
#52 0x00007f2c6c58ab79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#53 0x00007f2c6b6a337c in QApplication::exec () at kernel/qapplication.cpp:3828
#54 0x00000000004948f0 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-4.0.0/core/digikam/main/main.cpp:236

Possible duplicates by query: bug 341424, bug 339650, bug 339070, bug 339068, bug 338448.

Reported using DrKonqi
Comment 1 caulier.gilles 2014-12-03 13:40:49 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2021-05-10 14:58:10 UTC
Fixed with #329697