Bug 243011

Summary: crash at first startup / collection scanning
Product: [Applications] digikam Reporter: Martin F. <martin.frueh>
Component: Plugin-DImg-RAWAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: alexandreracine, caulier.gilles
Priority: NOR    
Version: 1.3.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 6.2.0
Sentry Crash Report:

Description Martin F. 2010-06-28 10:30:03 UTC
Application: digikam (1.3.0)
KDE Platform Version: 4.4.4 (KDE 4.4.4)
Qt Version: 4.6.3
Operating System: Linux 2.6.31.12-0.2-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
1. i removed my digikam 1.2 config and database
2. with the first-start-assistant, i selected my picture folder.
3. at startup, digikam crashes every time while trying to scan my picture folders for the first time
4. with digikam 1.2, this does not happen. the picture folder and subfolders do contain around 20.000 images.   

system:
openSUSE 11.2 x86_64
digikam 1.3.0 from download.opensuse.org/repositories/KDE:/KDE4:/Community/openSUSE_11.2_KDE4_Factory_Desktop/

The crash can be reproduced every time.

 -- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f922082e7c0 (LWP 25509))]

Thread 2 (Thread 0x7f920bb95910 (LWP 25539)):
[KCrash Handler]
#5  ref (this=<value optimized out>) at /usr/include/QtCore/qatomic_x86_64.h:121
#6  QString (this=<value optimized out>) at /usr/include/QtCore/qstring.h:715
#7  RawDecodingSettings (this=<value optimized out>) at /usr/include/libkdcraw/rawdecodingsettings.h:46
#8  DRawDecoding (this=<value optimized out>) at /usr/src/debug/digikam-1.3.0/libs/dimg/drawdecoding.h:49
#9  Digikam::DImg::load (this=<value optimized out>) at /usr/src/debug/digikam-1.3.0/libs/dimg/dimg.cpp:434
#10 0x00007f921db8dba3 in Digikam::DImg::loadImageInfo (this=0x7f920bb94210, filePath=..., loadMetadata=<value optimized out>, loadICCData=<value optimized out>, loadUniqueHash=<value optimized out>)
    at /usr/src/debug/digikam-1.3.0/libs/dimg/dimg.cpp:331
#11 0x00007f921d7c4943 in Digikam::ImageScanner::loadFromDisk (this=0x7f920bb941f0) at /usr/src/debug/digikam-1.3.0/libs/database/imagescanner.cpp:593
#12 0x00007f921d7c9f08 in Digikam::ImageScanner::newFile (this=0xb84310, albumId=1) at /usr/src/debug/digikam-1.3.0/libs/database/imagescanner.cpp:99
#13 0x00007f921d77b590 in Digikam::CollectionScanner::scanNewFile (this=0x7f920bb94f80, info=..., albumId=169) at /usr/src/debug/digikam-1.3.0/libs/database/collectionscanner.cpp:768
#14 0x00007f921d77c30b in Digikam::CollectionScanner::scanAlbum (this=<value optimized out>, location=<value optimized out>, album=<value optimized out>)
    at /usr/src/debug/digikam-1.3.0/libs/database/collectionscanner.cpp:673
#15 0x00007f921d77c227 in Digikam::CollectionScanner::scanAlbum (this=<value optimized out>, location=<value optimized out>, album=<value optimized out>)
    at /usr/src/debug/digikam-1.3.0/libs/database/collectionscanner.cpp:691
#16 0x00007f921d77c227 in Digikam::CollectionScanner::scanAlbum (this=<value optimized out>, location=<value optimized out>, album=<value optimized out>)
    at /usr/src/debug/digikam-1.3.0/libs/database/collectionscanner.cpp:691
#17 0x00007f921d77c227 in Digikam::CollectionScanner::scanAlbum (this=<value optimized out>, location=<value optimized out>, album=<value optimized out>)
    at /usr/src/debug/digikam-1.3.0/libs/database/collectionscanner.cpp:691
#18 0x00007f921d77cde7 in Digikam::CollectionScanner::scanAlbumRoot (this=0x7f920bb94f80, location=...) at /usr/src/debug/digikam-1.3.0/libs/database/collectionscanner.cpp:485
#19 0x00007f921d77d160 in Digikam::CollectionScanner::completeScan (this=0x7f920bb94f80) at /usr/src/debug/digikam-1.3.0/libs/database/collectionscanner.cpp:254
#20 0x00000000006ea815 in Digikam::ScanController::run (this=0xbc6300) at /usr/src/debug/digikam-1.3.0/digikam/scancontroller.cpp:541
#21 0x00007f921ae3ef95 in QThreadPrivate::start (arg=0xbc6300) at thread/qthread_unix.cpp:248
#22 0x00007f921864365d in start_thread () from /lib64/libpthread.so.0
#23 0x00007f921a148e1d in clone () from /lib64/libc.so.6
#24 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f922082e7c0 (LWP 25509)):
#0  0x00007f9218648049 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f921ae3ffdb in wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (time=<value optimized out>, this=<value optimized out>) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f921ae3f02c in QThread::wait (this=<value optimized out>, time=18446744073709551615) at thread/qthread_unix.cpp:619
#4  0x00000000006ebeaa in Digikam::ScanController::shutDown (this=0xbc6300) at /usr/src/debug/digikam-1.3.0/digikam/scancontroller.cpp:290
#5  0x00000000006ecd2c in Digikam::ScanController::~ScanController (this=0xc7a69c, __in_chrg=<value optimized out>) at /usr/src/debug/digikam-1.3.0/digikam/scancontroller.cpp:273
#6  0x00000000006ecdc7 in ~ScanControllerCreator (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/src/debug/digikam-1.3.0/digikam/scancontroller.cpp:221
#7  Digikam::<anonymous struct>::destroy(void) (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/src/debug/digikam-1.3.0/digikam/scancontroller.cpp:222
#8  0x00007f921a0ad065 in ?? () from /lib64/libc.so.6
#9  0x00007f921a0ad0b5 in exit () from /lib64/libc.so.6
#10 0x00007f921b9013a8 in ?? () from /usr/lib64/libQtGui.so.4
#11 0x00007f921c4d9a58 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib64/libkdeui.so.5
#12 0x00007f9218de32be in _XIOError () from /usr/lib64/libX11.so.6
#13 0x00007f9218deac95 in ?? () from /usr/lib64/libX11.so.6
#14 0x00007f9218deb547 in _XEventsQueued () from /usr/lib64/libX11.so.6
#15 0x00007f9218dd424b in XEventsQueued () from /usr/lib64/libX11.so.6
#16 0x00007f921b939447 in ?? () from /usr/lib64/libQtGui.so.4
#17 0x00007f921398efda in g_main_context_prepare () from /usr/lib64/libglib-2.0.so.0
#18 0x00007f921398f3b1 in ?? () from /usr/lib64/libglib-2.0.so.0
#19 0x00007f921398f8e0 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#20 0x00007f921af581e6 in QEventDispatcherGlib::processEvents (this=0xaab000, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:414
#21 0x00007f921b93921e in ?? () from /usr/lib64/libQtGui.so.4
#22 0x00007f921af2d432 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#23 0x00007f921af2d80c in QEventLoop::exec (this=0xb832c0, flags=) at kernel/qeventloop.cpp:201
#24 0x00000000006eb8a3 in Digikam::ScanController::completeCollectionScan (this=0xbc6300, splash=<value optimized out>) at /usr/src/debug/digikam-1.3.0/digikam/scancontroller.cpp:378
#25 0x0000000000698ce3 in Digikam::DigikamApp::DigikamApp (this=0xc643b0, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /usr/src/debug/digikam-1.3.0/digikam/digikamapp.cpp:197
#26 0x00000000007720ad in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/digikam-1.3.0/digikam/main.cpp:172

Possible duplicates by query: bug 242305, bug 240269, bug 221191.

Reported using DrKonqi
Comment 1 caulier.gilles 2010-06-28 10:54:55 UTC
*** Bug 242818 has been marked as a duplicate of this bug. ***
Comment 2 caulier.gilles 2010-10-06 13:36:00 UTC

*** This bug has been marked as a duplicate of bug 242305 ***
Comment 3 caulier.gilles 2019-07-27 13:45:09 UTC
Fixed with bug #242305