Bug 305850

Summary: Selecting Digikam as Application to open Newly Inserted SD card Results in Crash
Product: [Applications] digikam Reporter: brindamo <rblinux>
Component: Import-IconViewAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 2.1.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 8.0.0
Sentry Crash Report:

Description brindamo 2012-08-27 03:58:14 UTC
Application: digikam (2.1.1)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-16-generic x86_64
Distribution: Linux Mint 12 KDE

-- Information about the crash:
- What I was doing when the application crashed:
I inserted MicroSD card in reader and connected reader to PC
Device Notifier offered 3 options for opening the microSD
I selected Digikam
System immediately reported Digikam crashed.
I repeated the above steps and received the same result.

The crash can be reproduced every time.

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

Thread 7 (Thread 0x7f845e8f6700 (LWP 6416)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8479a3d1ab in wait (time=18446744073709551615, this=0x1f80660) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1f80508, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005c2e20 in Digikam::ScanController::run (this=0x1f80180) at /build/buildd/digikam-2.1.1/core/digikam/database/scancontroller.cpp:647
#4  0x00007f8479a3cd05 in QThreadPrivate::start (arg=0x1f80180) at thread/qthread_unix.cpp:331
#5  0x00007f8474777efc in start_thread (arg=0x7f845e8f6700) at pthread_create.c:304
#6  0x00007f8478cdf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f845e0f5700 (LWP 6417)):
#0  0x00007f84712c10c3 in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:135
#1  0x00007f8479a8d074 in do_gettime (frac=0x7f845e0f48b8, sec=0x7f845e0f48b0) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x00007f8479b4f6ed in QTimerInfoList::updateCurrentTime (this=0x1f5af50) at kernel/qeventdispatcher_unix.cpp:339
#4  0x00007f8479b4fa33 in QTimerInfoList::timerWait (this=0x1f5af50, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x00007f8479b4e44c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f845e0f499c) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00007f8479b4e4f5 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x00007f8472853ff2 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f8472854dfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f8472855429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f8479b4ef3e in QEventDispatcherGlib::processEvents (this=0x1f5ad40, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#11 0x00007f8479b22cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f8479b22ef7 in QEventLoop::exec (this=0x7f845e0f4b30, flags=...) at kernel/qeventloop.cpp:201
#13 0x00007f8479a3a27f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#14 0x00007f8479b05cbf in QInotifyFileSystemWatcherEngine::run (this=0x1f2aab0) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x00007f8479a3cd05 in QThreadPrivate::start (arg=0x1f2aab0) at thread/qthread_unix.cpp:331
#16 0x00007f8474777efc in start_thread (arg=0x7f845e0f5700) at pthread_create.c:304
#17 0x00007f8478cdf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#18 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f845d8f4700 (LWP 6423)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8479a3d1ab in wait (time=18446744073709551615, this=0x2207410) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2206f98, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f847c986737 in Digikam::ParkingThread::run (this=0x2206f80) at /build/buildd/digikam-2.1.1/core/libs/threads/threadmanager.cpp:119
#4  0x00007f8479a3cd05 in QThreadPrivate::start (arg=0x2206f80) at thread/qthread_unix.cpp:331
#5  0x00007f8474777efc in start_thread (arg=0x7f845d8f4700) at pthread_create.c:304
#6  0x00007f8478cdf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8456d60700 (LWP 6424)):
#0  0x00007f8472853fa3 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f8472854dfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f8472855429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f8479b4ef3e in QEventDispatcherGlib::processEvents (this=0x26eec20, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f8479b22cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f8479b22ef7 in QEventLoop::exec (this=0x7f8456d5fb30, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f8479a3a27f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f8479b05cbf in QInotifyFileSystemWatcherEngine::run (this=0x26edf60) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f8479a3cd05 in QThreadPrivate::start (arg=0x26edf60) at thread/qthread_unix.cpp:331
#9  0x00007f8474777efc in start_thread (arg=0x7f8456d60700) at pthread_create.c:304
#10 0x00007f8478cdf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f84398f4700 (LWP 6459)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8479a3d1ab in wait (time=18446744073709551615, this=0x505b600) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x5048778, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x0000000000775ef3 in Digikam::CameraController::run (this=0x505b4e0) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/cameracontroller.cpp:385
#4  0x00007f8479a3cd05 in QThreadPrivate::start (arg=0x505b4e0) at thread/qthread_unix.cpp:331
#5  0x00007f8474777efc in start_thread (arg=0x7f84398f4700) at pthread_create.c:304
#6  0x00007f8478cdf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8438e8e700 (LWP 6460)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8479a3d1ab in wait (time=18446744073709551615, this=0x7f8434001a90) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7f84340012d8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x000000000077cd5b in Digikam::CameraHistoryUpdater::run (this=0x7f8434002db0) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/camerahistoryupdater.cpp:118
#4  0x00007f8479a3cd05 in QThreadPrivate::start (arg=0x7f8434002db0) at thread/qthread_unix.cpp:331
#5  0x00007f8474777efc in start_thread (arg=0x7f8438e8e700) at pthread_create.c:304
#6  0x00007f8478cdf59d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f847f0cca20 (LWP 6415)):
[KCrash Handler]
#6  appendTo (out=<synthetic pointer>, a=...) at /usr/include/qt4/QtCore/qstringbuilder.h:214
#7  appendTo (out=<synthetic pointer>, p=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:293
#8  operator QString (this=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:108
#9  Digikam::CameraIconView::findItem (this=0x3b4b1a0, folder=<optimized out>, filename=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292
#10 0x000000000078c551 in Digikam::CameraIconView::slotThumbInfoReady (this=0x3b4b1a0, info=<optimized out>) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:229
#11 0x000000000078e1b8 in Digikam::CameraIconView::qt_metacall (this=0x3b4b1a0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffeecf2190) at /build/buildd/digikam-2.1.1/obj-x86_64-linux-gnu/core/utilities/cameragui/cameraiconview.moc:145
#12 0x00007f8479b36eba in QMetaObject::activate (sender=0x7f8434001330, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffeecf2190) at kernel/qobject.cpp:3278
#13 0x00000000007799a0 in Digikam::CameraThumbsCtrl::signalThumbInfoReady (this=<optimized out>, _t1=<optimized out>) at /build/buildd/digikam-2.1.1/obj-x86_64-linux-gnu/core/utilities/cameragui/camerathumbsctrl.moc:99
#14 0x000000000077a988 in Digikam::CameraThumbsCtrl::procressKDEPreview (this=0x7f8434001330, item=..., pix=<optimized out>) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/camerathumbsctrl.cpp:180
#15 0x000000000077adda in Digikam::CameraThumbsCtrl::slotFailedKDEPreview (this=0x7f8434001330, item=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/camerathumbsctrl.cpp:156
#16 0x000000000077b1c1 in Digikam::CameraThumbsCtrl::qt_metacall (this=0x7f8434001330, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffeecf24a0) at /build/buildd/digikam-2.1.1/obj-x86_64-linux-gnu/core/utilities/cameragui/camerathumbsctrl.moc:87
#17 0x00007f8479b36eba in QMetaObject::activate (sender=0x3316600, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffeecf24a0) at kernel/qobject.cpp:3278
#18 0x00007f847ba21f25 in KIO::PreviewJob::failed (this=<optimized out>, _t1=<optimized out>) at ./previewjob.moc:106
#19 0x00007f847ba250f3 in KIO::PreviewJobPrivate::startPreview (this=0x51717d0) at ../../kio/kio/previewjob.cpp:364
#20 0x00007f847ba25b0d in KIO::PreviewJob::qt_metacall (this=0x3316600, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x3b23750) at ./previewjob.moc:86
#21 0x00007f8479b3aa5e in QObject::event (this=0x3316600, e=<optimized out>) at kernel/qobject.cpp:1217
#22 0x00007f847a524474 in notify_helper (e=0x516c170, receiver=0x3316600, this=0x1dcbec0) at kernel/qapplication.cpp:4486
#23 QApplicationPrivate::notify_helper (this=0x1dcbec0, receiver=0x3316600, e=0x516c170) at kernel/qapplication.cpp:4458
#24 0x00007f847a5292e1 in QApplication::notify (this=0x7fffeecf3180, receiver=0x3316600, e=0x516c170) at kernel/qapplication.cpp:4365
#25 0x00007f847b239466 in KApplication::notify (this=0x7fffeecf3180, receiver=0x3316600, event=0x516c170) at ../../kdeui/kernel/kapplication.cpp:311
#26 0x00007f8479b23afc in QCoreApplication::notifyInternal (this=0x7fffeecf3180, receiver=0x3316600, event=0x516c170) at kernel/qcoreapplication.cpp:787
#27 0x00007f8479b2751f in sendEvent (event=0x516c170, receiver=0x3316600) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#28 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1d6ebd0) at kernel/qcoreapplication.cpp:1428
#29 0x00007f8479b4ea73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#30 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#31 0x00007f8472854a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f8472855258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f8472855429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007f8479b4eed6 in QEventDispatcherGlib::processEvents (this=0x1d70270, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#35 0x00007f847a5cc10e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007f8479b22cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007f8479b22ef7 in QEventLoop::exec (this=0x7fffeecf3000, flags=...) at kernel/qeventloop.cpp:201
#38 0x00007f8479b27789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#39 0x00000000004893fd in main (argc=5, argv=<optimized out>) at /build/buildd/digikam-2.1.1/core/digikam/main/main.cpp:232

This bug may be a duplicate of or related to bug 282194.

Possible duplicates by query: bug 298187, bug 297231, bug 296282, bug 295897, bug 294309.

Reported using DrKonqi
Comment 1 caulier.gilles 2012-08-27 06:09:52 UTC

*** This bug has been marked as a duplicate of bug 282194 ***
Comment 2 caulier.gilles 2023-04-05 05:41:09 UTC
Fixed with #282194