Bug 326357

Summary: Digikam 3.5 crashes at start up
Product: [Applications] digikam Reporter: gyergyoi
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, cfeck
Priority: NOR Keywords: drkonqi
Version: 3.5.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 7.4.0
Sentry Crash Report:

Description gyergyoi 2013-10-21 07:32:11 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.11.2
Qt Version: 4.8.5
Operating System: Linux 3.7.10-1.16-desktop x86_64
Distribution: "openSUSE 12.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
After reboot I started Digikam. Digikam asked me whether some collectionis on a different location and after stating that I will deal with it later it crashed.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff554544800 (LWP 5804))]

Thread 3 (Thread 0x7ff5352ca700 (LWP 5805)):
[KCrash Handler]
#5  operator-> (this=0xe4800001578) at /usr/src/debug/digikam-3.5.0/core/libs/dimg/dshareddata.h:115
#6  Digikam::DImg::load (this=0xe4800001578, this@entry=0x7ff530215030, filePath=..., loadFlagsInt=loadFlagsInt@entry=1, observer=observer@entry=0x0, rawDecodingSettings=...) at /usr/src/debug/digikam-3.5.0/core/libs/dimg/dimg.cpp:505
#7  0x00007ff5516cff55 in Digikam::DImg::loadImageInfo (this=0x7ff530215030, filePath=..., loadMetadata=<optimized out>, loadICCData=<optimized out>, loadUniqueHash=<optimized out>, loadImageHistory=<optimized out>) at /usr/src/debug/digikam-3.5.0/core/libs/dimg/dimg.cpp:370
#8  0x00007ff551294a29 in Digikam::ImageScanner::loadFromDisk (this=this@entry=0x7ff5352c9490) at /usr/src/debug/digikam-3.5.0/core/libs/database/imagescanner.cpp:1481
#9  0x00007ff55129b678 in Digikam::ImageScanner::newFile (this=0x7ff5352c9490, albumId=1990) at /usr/src/debug/digikam-3.5.0/core/libs/database/imagescanner.cpp:266
#10 0x00007ff55123d90b in Digikam::CollectionScanner::scanNewFile (this=this@entry=0x7ff5352c9d10, info=..., albumId=1990) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1247
#11 0x00007ff551240041 in Digikam::CollectionScanner::scanAlbum (this=this@entry=0x7ff5352c9d10, location=..., album=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1089
#12 0x00007ff55123fd22 in Digikam::CollectionScanner::scanAlbum (this=this@entry=0x7ff5352c9d10, location=..., album=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1112
#13 0x00007ff55123fd22 in Digikam::CollectionScanner::scanAlbum (this=this@entry=0x7ff5352c9d10, location=..., album=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:1112
#14 0x00007ff55124083b in Digikam::CollectionScanner::scanAlbumRoot (this=this@entry=0x7ff5352c9d10, location=...) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:828
#15 0x00007ff551240aa5 in Digikam::CollectionScanner::completeScan (this=0x7ff5352c9d10) at /usr/src/debug/digikam-3.5.0/core/libs/database/collectionscanner.cpp:489
#16 0x00000000005dd946 in Digikam::ScanController::run (this=0x16ec990) at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:756
#17 0x00007ff54f6d00ec in ?? () from /usr/lib64/libQtCore.so.4
#18 0x00007ff54bba7e0f in start_thread () from /lib64/libpthread.so.0
#19 0x00007ff54dc3944d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff534ac9700 (LWP 5806)):
#0  0x00007ff54bba9d56 in pthread_mutex_lock () from /lib64/libpthread.so.0
#1  0x00007ff545bb3a71 in g_mutex_lock () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ff545b76343 in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ff545b769cb in ?? () from /usr/lib64/libglib-2.0.so.0
#4  0x00007ff545b76bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#5  0x00007ff54f7fa5d6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007ff54f7cabef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#7  0x00007ff54f7cae78 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#8  0x00007ff54f6cd110 in QThread::exec() () from /usr/lib64/libQtCore.so.4
#9  0x00007ff54f7ab3af in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007ff54f6d00ec in ?? () from /usr/lib64/libQtCore.so.4
#11 0x00007ff54bba7e0f in start_thread () from /lib64/libpthread.so.0
#12 0x00007ff54dc3944d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff554544800 (LWP 5804)):
#0  0x00007ff54bbab964 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff54f6d064b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007ff54f6cfcbc in QThread::wait(unsigned long) () from /usr/lib64/libQtCore.so.4
#3  0x00000000005da2d5 in Digikam::ScanController::shutDown (this=this@entry=0x16ec990) at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:361
#4  0x00000000005dc72b in Digikam::ScanController::~ScanController (this=0x16ec990, __in_chrg=<optimized out>) at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:337
#5  0x00000000005dc8d7 in ~ScanControllerCreator (this=0x16ec990, __in_chrg=<optimized out>) at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:277
#6  destroy () at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:284
#7  0x00007ff54db87f61 in __run_exit_handlers () from /lib64/libc.so.6
#8  0x00007ff54db87fe5 in exit () from /lib64/libc.so.6
#9  0x00007ff54e961868 in ?? () from /usr/lib64/libQtGui.so.4
#10 0x00007ff55022edf8 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib64/libkdeui.so.5
#11 0x00007ff54c13ebce in _XIOError () from /usr/lib64/libX11.so.6
#12 0x00007ff54c13c66d in _XEventsQueued () from /usr/lib64/libX11.so.6
#13 0x00007ff54c12db5b in XEventsQueued () from /usr/lib64/libX11.so.6
#14 0x00007ff54e997c6c in ?? () from /usr/lib64/libQtGui.so.4
#15 0x00007ff545b765ac in g_main_context_check () from /usr/lib64/libglib-2.0.so.0
#16 0x00007ff545b76a42 in ?? () from /usr/lib64/libglib-2.0.so.0
#17 0x00007ff545b76bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#18 0x00007ff54f7fa5b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#19 0x00007ff54e997e0e in ?? () from /usr/lib64/libQtGui.so.4
#20 0x00007ff54f7cabef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#21 0x00007ff54f7cae78 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#22 0x00000000005da76c in Digikam::ScanController::completeCollectionScanCore (this=0x16ec990, needTotalFiles=<optimized out>, defer=false) at /usr/src/debug/digikam-3.5.0/core/digikam/database/scancontroller.cpp:486
#23 0x000000000052357a in Digikam::NewItemsFinder::slotStart (this=0x4428900) at /usr/src/debug/digikam-3.5.0/core/utilities/maintenance/newitemsfinder.cpp:106
#24 0x00007ff54f7e092e in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#25 0x00007ff54e8f792c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#26 0x00007ff54e8fbdab in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#27 0x00007ff550230016 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#28 0x00007ff54f7cbf3e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#29 0x00007ff54f7cf8a1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#30 0x00007ff54f7fa423 in ?? () from /usr/lib64/libQtCore.so.4
#31 0x00007ff545b767d5 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#32 0x00007ff545b76b08 in ?? () from /usr/lib64/libglib-2.0.so.0
#33 0x00007ff545b76bc4 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#34 0x00007ff54f7fa5b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#35 0x00007ff54e997e0e in ?? () from /usr/lib64/libQtGui.so.4
#36 0x00007ff54f7cabef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#37 0x00007ff54f7cae78 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#38 0x00007ff54f7cfbb8 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#39 0x000000000049bfcb in main (argc=1, argv=0x7fff4b7b5f08) at /usr/src/debug/digikam-3.5.0/core/digikam/main/main.cpp:235

Possible duplicates by query: bug 324515, bug 323633.

Reported using DrKonqi
Comment 1 caulier.gilles 2013-10-21 07:41:36 UTC

*** This bug has been marked as a duplicate of bug 276592 ***
Comment 2 Christoph Feck 2013-10-21 11:46:11 UTC
Bug 276592 has been marked as fixed (since 2.0), but digikam still crashes (multiple reports since then). Nested event loop?
Comment 3 caulier.gilles 2013-10-21 12:11:13 UTC
I reopened bug  #276592.

Gilles Caulier
Comment 4 caulier.gilles 2021-08-26 16:50:32 UTC
Fixed with #276592