Bug 336005 - switching to a certain album causes DigiKam to crash
Summary: switching to a certain album causes DigiKam to crash
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Sqlite (show other bugs)
Version: 3.5.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-06-09 14:23 UTC by Alexander Budde
Modified: 2021-12-17 11:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Budde 2014-06-09 14:23:20 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.13.0
Qt Version: 4.8.6
Operating System: Linux 3.13.0-29-generic x86_64
Distribution: Ubuntu 14.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I switched from a working album to a different one which causes DigiKam to crash (it's always the same album)

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 0x7f2ad85bbac0 (LWP 8203))]

Thread 7 (Thread 0x7f2aab9d6700 (LWP 8210)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2ad2dbe816 in wait (time=18446744073709551615, this=0x2b587a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x2b586b0, mutex=mutex@entry=0x2b586a8, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005d5ede in Digikam::ScanController::run (this=0x2b5fda0) at /build/buildd/digikam-3.5.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f2ad2dbe32f in QThreadPrivate::start (arg=0x2b5fda0) at thread/qthread_unix.cpp:349
#5  0x00007f2ac79758f4 in ?? () from /usr/lib/nvidia-304-updates/libGL.so.1
#6  0x00007f2acd25f182 in start_thread (arg=0x7f2aab9d6700) at pthread_create.c:312
#7  0x00007f2ad1fdd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 6 (Thread 0x7f2aab1d5700 (LWP 8211)):
#0  0x00007fffb8de47c2 in ?? ()
#1  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f2aaa9d4700 (LWP 8214)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f2ad2dbe816 in wait (time=18446744073709551615, this=0x2b69e90) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x2b6b470, mutex=mutex@entry=0x2b6b468, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f2ad5c3779a in Digikam::ParkingThread::run (this=0x2b6b450) at /build/buildd/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f2ad2dbe32f in QThreadPrivate::start (arg=0x2b6b450) at thread/qthread_unix.cpp:349
#5  0x00007f2ac79758f4 in ?? () from /usr/lib/nvidia-304-updates/libGL.so.1
#6  0x00007f2acd25f182 in start_thread (arg=0x7f2aaa9d4700) at pthread_create.c:312
#7  0x00007f2ad1fdd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7f2aa911a700 (LWP 8216)):
#0  0x00007f2acd261569 in __GI___pthread_mutex_lock (mutex=0x7f2a94000a90) at ../nptl/pthread_mutex_lock.c:125
#1  0x00007f2acaac8991 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f2acaa86a6c in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f2acaa86f7b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f2acaa870ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f2ad2eed7be in QEventDispatcherGlib::processEvents (this=0x7f2a940008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#6  0x00007f2ad2ebf0af in QEventLoop::processEvents (this=this@entry=0x7f2aa9119a20, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f2ad2ebf3a5 in QEventLoop::exec (this=this@entry=0x7f2aa9119a20, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f2ad2dbbc5f in QThread::exec (this=this@entry=0x32b5d70) at thread/qthread.cpp:537
#9  0x00007f2ad2ea0823 in QInotifyFileSystemWatcherEngine::run (this=0x32b5d70) at io/qfilesystemwatcher_inotify.cpp:265
#10 0x00007f2ad2dbe32f in QThreadPrivate::start (arg=0x32b5d70) at thread/qthread_unix.cpp:349
#11 0x00007f2ac79758f4 in ?? () from /usr/lib/nvidia-304-updates/libGL.so.1
#12 0x00007f2acd25f182 in start_thread (arg=0x7f2aa911a700) at pthread_create.c:312
#13 0x00007f2ad1fdd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7f2a867fc700 (LWP 8232)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f2ad2dbcdd3 in _q_futex (val2=0, addr2=0x0, timeout=0x0, val=2, op=0, addr=0x2bf4210) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=this@entry=0x2bf4210, timeout=timeout@entry=-1) at thread/qmutex_unix.cpp:113
#3  0x00007f2ad2db93bd in QMutex::lock (this=<optimized out>) at thread/qmutex.cpp:164
#4  0x00007f2ad55e1a69 in Digikam::DatabaseAccess::DatabaseAccess (this=<optimized out>) at /build/buildd/digikam-3.5.0/core/libs/database/databaseaccess.cpp:101
#5  0x00007f2ad55d938a in Digikam::CollectionManager::locationForPath (this=this@entry=0x2abf490, givenPath=...) at /build/buildd/digikam-3.5.0/core/libs/database/collectionmanager.cpp:1326
#6  0x00007f2ad55d972c in Digikam::CollectionManager::locationForUrl (this=0x2abf490, fileUrl=...) at /build/buildd/digikam-3.5.0/core/libs/database/collectionmanager.cpp:1321
#7  0x00007f2ad55ffe79 in Digikam::ImageInfo::ImageInfo (this=0x7f2a867fb300, url=...) at /build/buildd/digikam-3.5.0/core/libs/database/imageinfo.cpp:320
#8  0x00007f2ad55f08b3 in Digikam::DatabaseLoadSaveFileInfoProvider::orientationHint (this=<optimized out>, path=...) at /build/buildd/digikam-3.5.0/core/libs/database/databasethumbnailinfoprovider.cpp:81
#9  0x00007f2ad5c0c097 in Digikam::LoadSaveThread::exifOrientation (filePath=..., metadata=..., isRaw=<optimized out>, fromRawEmbeddedPreview=<optimized out>) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/loadsavethread.cpp:284
#10 0x00007f2ad5c21570 in Digikam::ThumbnailCreator::createThumbnail (this=this@entry=0x32cced0, info=..., detailRect=...) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailcreator.cpp:554
#11 0x00007f2ad5c24296 in Digikam::ThumbnailCreator::load (this=0x32cced0, path=..., rect=..., pregenerate=pregenerate@entry=false) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailcreator.cpp:260
#12 0x00007f2ad5c250e2 in Digikam::ThumbnailCreator::load (this=<optimized out>, path=...) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailcreator.cpp:199
#13 0x00007f2ad5c33737 in Digikam::ThumbnailLoadingTask::execute (this=0x6c6fc80) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/thumbnailtask.cpp:172
#14 0x00007f2ad5c0ba96 in Digikam::LoadSaveThread::run (this=0x32bb640) at /build/buildd/digikam-3.5.0/core/libs/threadimageio/loadsavethread.cpp:136
#15 0x00007f2ad5c395de in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x32cb270) at /build/buildd/digikam-3.5.0/core/libs/threads/dynamicthread.cpp:186
#16 0x00007f2ad2db1fee in QThreadPoolThread::run (this=0x45af4f0) at concurrent/qthreadpool.cpp:108
#17 0x00007f2ad2dbe32f in QThreadPrivate::start (arg=0x45af4f0) at thread/qthread_unix.cpp:349
#18 0x00007f2ac79758f4 in ?? () from /usr/lib/nvidia-304-updates/libGL.so.1
#19 0x00007f2acd25f182 in start_thread (arg=0x7f2a867fc700) at pthread_create.c:312
#20 0x00007f2ad1fdd30d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7f2a83ff7700 (LWP 8237)):
#0  0x00007fffb8de47c2 in ?? ()
#1  0x00007f2a83ff67a0 in ?? ()
#2  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f2ad85bbac0 (LWP 8203)):
[KCrash Handler]
#6  0x0000004c00000061 in ?? ()
#7  0x00007f2abbaece85 in sqlite3MemCompare (pMem1=pMem1@entry=0x7fffb8c683f0, pMem2=0x9ab4cc8, pColl=0x6f183e8) at sqlite3.c:60470
#8  0x00007f2abbaecf63 in sqlite3VdbeRecordCompare (nKey1=24, pKey1=0x7f2aa405474e, pPKey2=pPKey2@entry=0x7fffb8c686f0) at sqlite3.c:64162
#9  0x00007f2abbb01579 in sqlite3BtreeMovetoUnpacked (pCur=0x6f48170, pIdxKey=0x7fffb8c686f0, intKey=0, biasRight=<optimized out>, pRes=0x7fffb8c686e0) at sqlite3.c:55077
#10 0x00007f2abbb299c5 in sqlite3VdbeExec (p=p@entry=0x8ff1f68) at sqlite3.c:70168
#11 0x00007f2abbb31ed7 in sqlite3Step (p=0x8ff1f68) at sqlite3.c:64828
#12 sqlite3_step (pStmt=<optimized out>) at sqlite3.c:64894
#13 0x00007f2aa9d9e11c in QSQLiteResultPrivate::fetchNext (this=this@entry=0x50a3750, values=..., idx=idx@entry=0, initialFetch=initialFetch@entry=true) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:235
#14 0x00007f2aa9d9ee48 in QSQLiteResult::exec (this=0x85574c0) at ../../../sql/drivers/sqlite/qsql_sqlite.cpp:447
#15 0x00007f2ad81e3b7d in QSqlQuery::exec (this=this@entry=0x7fffb8c68c28) at kernel/qsqlquery.cpp:949
#16 0x00007f2ad5bf0a26 in Digikam::DatabaseCoreBackend::exec (this=0x2bf12a0, query=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1414
#17 0x00007f2ad5bf0aac in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2bf12a0, query=..., boundValue1=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1056
#18 0x00007f2ad5bf1b50 in Digikam::DatabaseCoreBackend::execQuery (this=this@entry=0x2bf12a0, sql=..., boundValue1=...) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:1005
#19 0x00007f2ad5bf1b99 in Digikam::DatabaseCoreBackend::execSql (this=0x2bf12a0, sql=..., boundValue1=..., values=values@entry=0x7fffb8c68c70, lastInsertId=lastInsertId@entry=0x0) at /build/buildd/digikam-3.5.0/core/libs/database/core/databasecorebackend.cpp:902
#20 0x00007f2ad55b542e in Digikam::AlbumDB::getSetting (this=this@entry=0x2bf0e80, keyword=...) at /build/buildd/digikam-3.5.0/core/libs/database/albumdb.cpp:972
#21 0x00007f2ad55b5d5c in Digikam::AlbumDB::getFilterSettings (this=0x2bf0e80, imageFilter=imageFilter@entry=0x7fffb8c68eb0, 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=0x2db9cd0) at /build/buildd/digikam-3.5.0/core/digikam/utils/albumsettings.cpp:958
#23 0x0000000000533f42 in Digikam::KipiInterface::hostSetting (this=this@entry=0x48f3370, settingName=...) at /build/buildd/digikam-3.5.0/core/utilities/kipiiface/kipiinterface.cpp:363
#24 0x00000000005339f4 in Digikam::KipiInterface::currentAlbum (this=0x48f3370) at /build/buildd/digikam-3.5.0/core/utilities/kipiiface/kipiinterface.cpp:110
#25 0x00007f2a71975d94 in KIPIAdvancedSlideshowPlugin::Plugin_AdvancedSlideshow::slotAlbumChanged (this=0x508f2f0, anyAlbum=<optimized out>) at /build/buildd/digikam-3.5.0/extra/kipi-plugins/advancedslideshow/plugin/plugin_advancedslideshow.cpp:175
#26 0x00007f2ad2ed487a in QMetaObject::activate (sender=0x48f3370, m=m@entry=0x7f2ad6747e60 <KIPI::Interface::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffb8c69200) at kernel/qobject.cpp:3539
#27 0x00007f2ad65344c2 in KIPI::Interface::currentAlbumChanged (this=<optimized out>, _t1=true) at ./interface.moc:128
#28 0x00007f2ad2ed487a in QMetaObject::activate (sender=0x2aa0e90, m=m@entry=0x844e60 <Digikam::AlbumManager::staticMetaObject>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x7fffb8c69330) at kernel/qobject.cpp:3539
#29 0x00000000005a2e04 in signalAlbumCurrentChanged (_t1=0x5138980, 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=0x5138980) at /build/buildd/digikam-3.5.0/core/digikam/album/albummanager.cpp:1846
#31 0x00000000005c81cd in Digikam::AbstractAlbumTreeView::mousePressEvent (this=0x3a6ec80, e=0x7fffb8c69ba0) at /build/buildd/digikam-3.5.0/core/digikam/album/albumtreeview.cpp:538
#32 0x00007f2ad390237b in QWidget::event (this=this@entry=0x3a6ec80, event=event@entry=0x7fffb8c69ba0) at kernel/qwidget.cpp:8372
#33 0x00007f2ad3ca3fce in QFrame::event (this=0x3a6ec80, e=0x7fffb8c69ba0) at widgets/qframe.cpp:557
#34 0x00007f2ad3db35b3 in QAbstractItemView::viewportEvent (this=this@entry=0x3a6ec80, event=event@entry=0x7fffb8c69ba0) at itemviews/qabstractitemview.cpp:1644
#35 0x00007f2ad3df2190 in QTreeView::viewportEvent (this=this@entry=0x3a6ec80, event=0x7fffb8c69ba0) at itemviews/qtreeview.cpp:1252
#36 0x00000000005c83d5 in Digikam::AbstractAlbumTreeView::viewportEvent (this=this@entry=0x3a6ec80, event=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/album/albumtreeview.cpp:683
#37 0x00000000005c05c0 in Digikam::AlbumSelectionTreeView::viewportEvent (this=0x3a6ec80, event=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/album/albumselectiontreeview.cpp:233
#38 0x00007f2ad2ec0646 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x29d0280, receiver=receiver@entry=0x3a6cd60, event=event@entry=0x7fffb8c69ba0) at kernel/qcoreapplication.cpp:1063
#39 0x00007f2ad38b2e0c in QApplicationPrivate::notify_helper (this=this@entry=0x29d0280, receiver=receiver@entry=0x3a6cd60, e=e@entry=0x7fffb8c69ba0) at kernel/qapplication.cpp:4563
#40 0x00007f2ad38b95dd in QApplication::notify (this=this@entry=0x7fffb8c6a810, receiver=receiver@entry=0x3a6cd60, e=e@entry=0x7fffb8c69ba0) at kernel/qapplication.cpp:4110
#41 0x00007f2ad45bdbaa in KApplication::notify (this=0x7fffb8c6a810, receiver=0x3a6cd60, event=0x7fffb8c69ba0) at ../../kdeui/kernel/kapplication.cpp:311
#42 0x00007f2ad2ec04dd in QCoreApplication::notifyInternal (this=0x7fffb8c6a810, receiver=receiver@entry=0x3a6cd60, event=event@entry=0x7fffb8c69ba0) at kernel/qcoreapplication.cpp:953
#43 0x00007f2ad38b8d93 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#44 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x3a6cd60, event=event@entry=0x7fffb8c69ba0, alienWidget=alienWidget@entry=0x3a6cd60, nativeWidget=nativeWidget@entry=0x313d9e0, buttonDown=buttonDown@entry=0x7f2ad4398318 <qt_button_down>, lastMouseReceiver=..., spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
#45 0x00007f2ad392d9cb in QETWidget::translateMouseEvent (this=this@entry=0x313d9e0, event=event@entry=0x7fffb8c69f20) at kernel/qapplication_x11.cpp:4634
#46 0x00007f2ad392d269 in QApplication::x11ProcessEvent (this=0x7fffb8c6a810, event=event@entry=0x7fffb8c69f20) at kernel/qapplication_x11.cpp:3627
#47 0x00007f2ad3954b02 in x11EventSourceDispatch (s=0x29d35b0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#48 0x00007f2acaa86e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f2acaa87048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f2acaa870ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007f2ad2eed7be in QEventDispatcherGlib::processEvents (this=0x28fc4a0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#52 0x00007f2ad3954bb6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#53 0x00007f2ad2ebf0af in QEventLoop::processEvents (this=this@entry=0x7fffb8c6a2f0, flags=...) at kernel/qeventloop.cpp:149
#54 0x00007f2ad2ebf3a5 in QEventLoop::exec (this=this@entry=0x7fffb8c6a2f0, flags=...) at kernel/qeventloop.cpp:204
#55 0x00007f2ad2ec4b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#56 0x00007f2ad38b137c in QApplication::exec () at kernel/qapplication.cpp:3828
#57 0x0000000000492023 in main (argc=<optimized out>, argv=<optimized out>) at /build/buildd/digikam-3.5.0/core/digikam/main/main.cpp:235

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

Possible duplicates by query: bug 335847, bug 335685, bug 335684, bug 335667, bug 335630.

Reported using DrKonqi
Comment 1 caulier.gilles 2014-06-09 15:24:27 UTC

*** This bug has been marked as a duplicate of bug 329697 ***
Comment 2 caulier.gilles 2021-12-17 11:50:44 UTC
Fixed with #329697