Bug 285728 - Digikam crash after importing from an SD card.
Summary: Digikam crash after importing from an SD card.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-IconView (show other bugs)
Version: 2.1.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 05:59 UTC by mgolden
Modified: 2023-04-05 14:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mgolden 2011-11-04 05:59:43 UTC
Application: digikam (2.1.1)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic x86_64
Distribution: Ubuntu 11.10

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

I was unable to import photos from my camera, because PTP mode is disabled.  Instead I imported from the SD card.  After it ran for quite a while, digikam crashed.  I believe I was done with the import.

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

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

Thread 6 (Thread 0x7f72b642c700 (LWP 4121)):
#0  0x00007f72d0f0dacb in pthread_mutex_unlock (mutex=0x7f72b00009a8) at forward.c:184
#1  0x00007f72caa76fe4 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f72caa77dfd in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f72caa78429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f72d1d6ef3e in QEventDispatcherGlib::processEvents (this=0x7f72b00008b0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f72d1d42cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f72d1d42ef7 in QEventLoop::exec (this=0x7f72b642bb30, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f72d1c5a27f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007f72d1d25cbf in QInotifyFileSystemWatcherEngine::run (this=0x1c07e00) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f72d1c5cd05 in QThreadPrivate::start (arg=0x1c07e00) at thread/qthread_unix.cpp:331
#10 0x00007f72cc99aefc in start_thread (arg=0x7f72b642c700) at pthread_create.c:304
#11 0x00007f72d0eff89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f72b5c2b700 (LWP 4123)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f72d1c5d1ab in wait (time=18446744073709551615, this=0x24f00d0) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x233bae8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f72d4ba1737 in Digikam::ParkingThread::run (this=0x233bad0) at /build/buildd/digikam-2.1.1/core/libs/threads/threadmanager.cpp:119
#4  0x00007f72d1c5cd05 in QThreadPrivate::start (arg=0x233bad0) at thread/qthread_unix.cpp:331
#5  0x00007f72cc99aefc in start_thread (arg=0x7f72b5c2b700) at pthread_create.c:304
#6  0x00007f72d0eff89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f72ae7f4700 (LWP 4125)):
#0  0xffffffffff60014a in ?? ()
#1  0x00007f72ae7f3850 in ?? ()
#2  0x00007fffcc9ff7e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

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

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

Thread 1 (Thread 0x7f72d72f2a20 (LWP 4119)):
[KCrash Handler]
#6  CamItemInfo (this=0x8a62860) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/devices/camiteminfo.h:47
#7  QPair (t2=..., t1=..., this=0x8a62860) at /usr/include/qt4/QtCore/qpair.h:60
#8  Digikam::CameraThumbsCtrl::putItemToCache (this=0x639bca0, url=..., info=..., thumb=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/camerathumbsctrl.cpp:200
#9  0x000000000077a93e in Digikam::CameraThumbsCtrl::procressKDEPreview (this=0x639bca0, item=..., pix=<optimized out>) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/camerathumbsctrl.cpp:178
#10 0x000000000077adda in Digikam::CameraThumbsCtrl::slotFailedKDEPreview (this=0x639bca0, item=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/controller/camerathumbsctrl.cpp:156
#11 0x000000000077b1c1 in Digikam::CameraThumbsCtrl::qt_metacall (this=0x639bca0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffcc95ade0) at /build/buildd/digikam-2.1.1/obj-x86_64-linux-gnu/core/utilities/cameragui/camerathumbsctrl.moc:87
#12 0x00007f72d1d56eba in QMetaObject::activate (sender=0x635bda0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcc95ade0) at kernel/qobject.cpp:3278
#13 0x00007f72d3c3e605 in KIO::PreviewJob::failed (this=<optimized out>, _t1=<optimized out>) at ./previewjob.moc:106
#14 0x00007f72d3c40d71 in KIO::PreviewJobPrivate::startPreview (this=0x604e5a0) at ../../kio/kio/previewjob.cpp:344
#15 0x00007f72d3c417ed in KIO::PreviewJob::qt_metacall (this=0x635bda0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7b20cc0) at ./previewjob.moc:86
#16 0x00007f72d1d5aa5e in QObject::event (this=0x635bda0, e=<optimized out>) at kernel/qobject.cpp:1217
#17 0x00007f72d2744424 in notify_helper (e=0x60db2b0, receiver=0x635bda0, this=0x1abdaf0) at kernel/qapplication.cpp:4486
#18 QApplicationPrivate::notify_helper (this=0x1abdaf0, receiver=0x635bda0, e=0x60db2b0) at kernel/qapplication.cpp:4458
#19 0x00007f72d2749291 in QApplication::notify (this=0x7fffcc95ba20, receiver=0x635bda0, e=0x60db2b0) at kernel/qapplication.cpp:4365
#20 0x00007f72d3458126 in KApplication::notify (this=0x7fffcc95ba20, receiver=0x635bda0, event=0x60db2b0) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x00007f72d1d43afc in QCoreApplication::notifyInternal (this=0x7fffcc95ba20, receiver=0x635bda0, event=0x60db2b0) at kernel/qcoreapplication.cpp:787
#22 0x00007f72d1d4751f in sendEvent (event=0x60db2b0, receiver=0x635bda0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1a60bb0) at kernel/qcoreapplication.cpp:1428
#24 0x00007f72d1d6ea73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#25 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#26 0x00007f72caa77a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f72caa78258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f72caa78429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f72d1d6eed6 in QEventDispatcherGlib::processEvents (this=0x1a62250, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#30 0x00007f72d27ec07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f72d1d42cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007f72d1d42ef7 in QEventLoop::exec (this=0x7fffcc95b8a0, flags=...) at kernel/qeventloop.cpp:201
#33 0x00007f72d1d47789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#34 0x00000000004893fd in main (argc=1, argv=<optimized out>) at /build/buildd/digikam-2.1.1/core/digikam/main/main.cpp:232

Reported using DrKonqi
Comment 1 caulier.gilles 2011-11-04 07:43:50 UTC
This problem have been fixed in current implementation from git/master (next 2.3.0) by Marcel. Look here for details :

https://bugs.kde.org/show_bug.cgi?id=282194#c30

Please, checkout digiKam Software Compilation code from git/master:

https://projects.kde.org/projects/extragear/graphics/digikam/digikam-software-compilation/repository

...compile and install it, and confirm that crash is fixed.

Thanks in advance

Gilles Caulier
Comment 2 Marcel Wiesweg 2011-11-05 12:49:20 UTC

*** This bug has been marked as a duplicate of bug 282194 ***
Comment 3 mgolden 2011-11-10 15:06:08 UTC
Do you still want me to try recompiling?  If so, can you please point me at something that shows what to set up to do it?
Comment 4 caulier.gilles 2011-11-10 15:23:13 UTC
Look #1 and follow instructions from README file.

Best

Gilles Caulier
Comment 5 mgolden 2011-11-12 17:36:42 UTC
I haven't yet done the recompile, but I can confirm that this bug is fixed in version 2.3.0, which I have installed from a PPA.
Comment 6 caulier.gilles 2023-04-05 14:32:48 UTC
Fixed with #282194