Application: digikam (2.1.1) KDE Platform Version: 4.7.00 (4.7.0) Qt Version: 4.7.2 Operating System: Linux 2.6.38-11-generic i686 Distribution: Ubuntu 11.04 -- Information about the crash: - What I was doing when the application crashed: import pictures scrolling down to see more thumbnails crashes every time The crash can be reproduced every time. -- Backtrace: Application: digiKam (digikam), signal: Segmentation fault [Current thread is 1 (Thread 0xb591e8c0 (LWP 2529))] Thread 8 (Thread 0xb5549b70 (LWP 2531)): #0 0x086f05e0 in pthread_mutex_lock () from /lib/i386-linux-gnu/libc.so.6 #1 0x040ccfbe in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #2 0x040cd92b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0 #3 0x03dac304 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0 #4 0x040f62df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #5 0x007c1e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #6 0x086e273e in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 7 (Thread 0xb38efb70 (LWP 2533)): #0 0x007d6416 in __kernel_vsyscall () #1 0x007c648c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0x086f03fd in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0x05e7f467 in wait (this=0xa687a34, mutex=0xa687a30, time=4294967295) at thread/qwaitcondition_unix.cpp:88 #4 QWaitCondition::wait (this=0xa687a34, mutex=0xa687a30, time=4294967295) at thread/qwaitcondition_unix.cpp:160 #5 0x081e92e9 in Digikam::ScanController::run (this=0xa672088) at /build/buildd/digikam2-2.1.1/core/digikam/database/scancontroller.cpp:647 #6 0x05e7eda2 in QThreadPrivate::start (arg=0xa672088) at thread/qthread_unix.cpp:320 #7 0x007c1e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #8 0x086e273e in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 6 (Thread 0xb30eeb70 (LWP 2534)): #0 0x040cc343 in g_main_context_query () from /lib/i386-linux-gnu/libglib-2.0.so.0 #1 0x040cce8c in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #2 0x040cd524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #3 0x05fa0577 in QEventDispatcherGlib::processEvents (this=0xa58b1a0, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #4 0x05f72289 in QEventLoop::processEvents (this=0xb30ee0e0, flags=...) at kernel/qeventloop.cpp:149 #5 0x05f72522 in QEventLoop::exec (this=0xb30ee0e0, flags=...) at kernel/qeventloop.cpp:201 #6 0x05e7c2a0 in QThread::exec (this=0xa475520) at thread/qthread.cpp:492 #7 0x05f53fdb in QInotifyFileSystemWatcherEngine::run (this=0xa475520) at io/qfilesystemwatcher_inotify.cpp:248 #8 0x05e7eda2 in QThreadPrivate::start (arg=0xa475520) at thread/qthread_unix.cpp:320 #9 0x007c1e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #10 0x086e273e in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 5 (Thread 0xb28edb70 (LWP 2536)): #0 0x007d6416 in __kernel_vsyscall () #1 0x007c648c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0x086f03fd in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0x05e7f467 in wait (this=0xa82f818, mutex=0xa82f814, time=4294967295) at thread/qwaitcondition_unix.cpp:88 #4 QWaitCondition::wait (this=0xa82f818, mutex=0xa82f814, time=4294967295) at thread/qwaitcondition_unix.cpp:160 #5 0x055e683a in Digikam::ParkingThread::run (this=0xa82f808) at /build/buildd/digikam2-2.1.1/core/libs/threads/threadmanager.cpp:119 #6 0x05e7eda2 in QThreadPrivate::start (arg=0xa82f808) at thread/qthread_unix.cpp:320 #7 0x007c1e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #8 0x086e273e in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 4 (Thread 0xb0ff5b70 (LWP 2537)): #0 0x007c57a4 in __pthread_mutex_unlock_usercnt () from /lib/i386-linux-gnu/libpthread.so.0 #1 0x086f0656 in pthread_mutex_unlock () from /lib/i386-linux-gnu/libc.so.6 #2 0x040cc961 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0 #3 0x040cd270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #4 0x040cd524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #5 0x05fa0577 in QEventDispatcherGlib::processEvents (this=0xaaf52e0, flags=...) at kernel/qeventdispatcher_glib.cpp:424 #6 0x05f72289 in QEventLoop::processEvents (this=0xb0ff50e0, flags=...) at kernel/qeventloop.cpp:149 #7 0x05f72522 in QEventLoop::exec (this=0xb0ff50e0, flags=...) at kernel/qeventloop.cpp:201 #8 0x05e7c2a0 in QThread::exec (this=0xab4a1e8) at thread/qthread.cpp:492 #9 0x05f53fdb in QInotifyFileSystemWatcherEngine::run (this=0xab4a1e8) at io/qfilesystemwatcher_inotify.cpp:248 #10 0x05e7eda2 in QThreadPrivate::start (arg=0xab4a1e8) at thread/qthread_unix.cpp:320 #11 0x007c1e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #12 0x086e273e in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 3 (Thread 0xa63b3b70 (LWP 2560)): #0 0x007d6416 in __kernel_vsyscall () #1 0x007c648c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0x086f03fd in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0x05e7f467 in wait (this=0xc2488ac, mutex=0xc2488a8, time=4294967295) at thread/qwaitcondition_unix.cpp:88 #4 QWaitCondition::wait (this=0xc2488ac, mutex=0xc2488a8, time=4294967295) at thread/qwaitcondition_unix.cpp:160 #5 0x083ad485 in Digikam::CameraController::run (this=0xbe980e0) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/controller/cameracontroller.cpp:385 #6 0x05e7eda2 in QThreadPrivate::start (arg=0xbe980e0) at thread/qthread_unix.cpp:320 #7 0x007c1e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #8 0x086e273e in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 2 (Thread 0xa5bb2b70 (LWP 2561)): #0 0x007d6416 in __kernel_vsyscall () #1 0x007c648c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0 #2 0x086f03fd in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6 #3 0x05e7f467 in wait (this=0xc253ec0, mutex=0xc253ebc, time=4294967295) at thread/qwaitcondition_unix.cpp:88 #4 QWaitCondition::wait (this=0xc253ec0, mutex=0xc253ebc, time=4294967295) at thread/qwaitcondition_unix.cpp:160 #5 0x083b110e in Digikam::CameraHistoryUpdater::run (this=0xc24e3f0) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/controller/camerahistoryupdater.cpp:118 #6 0x05e7eda2 in QThreadPrivate::start (arg=0xc24e3f0) at thread/qthread_unix.cpp:320 #7 0x007c1e99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0 #8 0x086e273e in clone () from /lib/i386-linux-gnu/libc.so.6 Thread 1 (Thread 0xb591e8c0 (LWP 2529)): [KCrash Handler] #7 0x08726ab0 in ?? () from /lib/i386-linux-gnu/libc.so.6 #8 0x083c0083 in size (this=0xbdb1f60, folder=..., filename=...) at /usr/include/bits/string3.h:52 #9 appendTo (this=0xbdb1f60, folder=..., filename=...) at /usr/include/qt4/QtCore/qstringbuilder.h:213 #10 appendTo (this=0xbdb1f60, folder=..., filename=...) at /usr/include/qt4/QtCore/qstringbuilder.h:293 #11 operator QString (this=0xbdb1f60, folder=..., filename=...) at /usr/include/qt4/QtCore/qstringbuilder.h:108 #12 Digikam::CameraIconView::findItem (this=0xbdb1f60, folder=..., filename=...) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292 #13 0x083c0533 in Digikam::CameraIconView::slotThumbInfoReady (this=0xbdb1f60, info=...) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:229 #14 0x083c1ff9 in Digikam::CameraIconView::qt_metacall (this=0xbdb1f60, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfbd0ed8) at /build/buildd/digikam2-2.1.1/obj-i686-linux-gnu/core/utilities/cameragui/cameraiconview.moc:145 #15 0x05f796ba in QMetaObject::metacall (object=0xbdb1f60, cl=QMetaObject::InvokeMetaMethod, idx=89, argv=0xbfbd0ed8) at kernel/qmetaobject.cpp:237 #16 0x05f894ff in QMetaObject::activate (sender=0xc252538, m=0x843aab4, local_signal_index=0, argv=0xbfbd0ed8) at kernel/qobject.cpp:3287 #17 0x083ae375 in Digikam::CameraThumbsCtrl::signalThumbInfoReady (this=0xc252538, _t1=...) at /build/buildd/digikam2-2.1.1/obj-i686-linux-gnu/core/utilities/cameragui/camerathumbsctrl.moc:99 #18 0x083af604 in Digikam::CameraThumbsCtrl::procressKDEPreview (this=0xc252538, item=..., pix=...) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/controller/camerathumbsctrl.cpp:180 #19 0x083af9d8 in Digikam::CameraThumbsCtrl::slotFailedKDEPreview (this=0xc252538, item=...) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/controller/camerathumbsctrl.cpp:156 #20 0x083afa6a in Digikam::CameraThumbsCtrl::qt_metacall (this=0xc252538, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfbd1128) at /build/buildd/digikam2-2.1.1/obj-i686-linux-gnu/core/utilities/cameragui/camerathumbsctrl.moc:87 #21 0x05f796ba in QMetaObject::metacall (object=0xc252538, cl=QMetaObject::InvokeMetaMethod, idx=8, argv=0xbfbd1128) at kernel/qmetaobject.cpp:237 #22 0x05f894ff in QMetaObject::activate (sender=0xbe2fec8, m=0x95c1e84, local_signal_index=1, argv=0xbfbd1128) at kernel/qobject.cpp:3287 #23 0x094c6cc3 in KIO::PreviewJob::failed (this=0xbe2fec8, _t1=...) at ./previewjob.moc:106 #24 0x094c9912 in KIO::PreviewJobPrivate::startPreview (this=0xadd7280) at ../../kio/kio/previewjob.cpp:344 #25 0x094c9a8e in KIO::PreviewJob::qt_metacall (this=0xbe2fec8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xb84e890) at ./previewjob.moc:86 #26 0x05f796ba in QMetaObject::metacall (object=0xbe2fec8, cl=QMetaObject::InvokeMetaMethod, idx=34, argv=0xb84e890) at kernel/qmetaobject.cpp:237 #27 0x05f83e16 in QMetaCallEvent::placeMetaCall (this=0xadd78d8, object=0xbe2fec8) at kernel/qobject.cpp:535 #28 0x05f883b7 in QObject::event (this=0xbe2fec8, e=0xadd78d8) at kernel/qobject.cpp:1226 #29 0x0196cd24 in QApplicationPrivate::notify_helper (this=0xa416830, receiver=0xbe2fec8, e=0xadd78d8) at kernel/qapplication.cpp:4462 #30 0x019718ce in QApplication::notify (this=0xbfbd1bdc, receiver=0xbe2fec8, e=0xadd78d8) at kernel/qapplication.cpp:3862 #31 0x0166893a in KApplication::notify (this=0xbfbd1bdc, receiver=0xbe2fec8, event=0xadd78d8) at ../../kdeui/kernel/kapplication.cpp:311 #32 0x05f730bb in QCoreApplication::notifyInternal (this=0xbfbd1bdc, receiver=0xbe2fec8, event=0xadd78d8) at kernel/qcoreapplication.cpp:731 #33 0x05f76c79 in sendEvent (receiver=0x0, event_type=0, data=0xa3b8f88) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #34 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xa3b8f88) at kernel/qcoreapplication.cpp:1372 #35 0x05f76e0d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1265 #36 0x05fa03c4 in sendPostedEvents (s=0xa418cd0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220 #37 postEventSourceDispatch (s=0xa418cd0) at kernel/qeventdispatcher_glib.cpp:277 #38 0x040ccaa8 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0 #39 0x040cd270 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0 #40 0x040cd524 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0 #41 0x05fa053c in QEventDispatcherGlib::processEvents (this=0xa3b8ae0, flags=...) at kernel/qeventdispatcher_glib.cpp:422 #42 0x01a231e5 in QGuiEventDispatcherGlib::processEvents (this=0xa3b8ae0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204 #43 0x05f72289 in QEventLoop::processEvents (this=0xbfbd1aa4, flags=...) at kernel/qeventloop.cpp:149 #44 0x05f72522 in QEventLoop::exec (this=0xbfbd1aa4, flags=...) at kernel/qeventloop.cpp:201 #45 0x05f76ecc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008 #46 0x0196a8e7 in QApplication::exec () at kernel/qapplication.cpp:3736 #47 0x082bbc93 in main (argc=) at /build/buildd/digikam2-2.1.1/core/digikam/main/main.cpp:232 Reported using DrKonqi
Not reproducible here with (about) the same setup. Tried it with both USB mass storage device and PTP mode with my Nikon D7000 but no crash in the image importer view in either. Kubuntu 11.04: digiKam version 2.1.1 Exiv2 can write to Jp2: Yes Exiv2 can write to Jpeg: Yes Exiv2 can write to Pgf: Yes Exiv2 can write to Png: Yes Exiv2 can write to Tiff: Yes Exiv2 supports XMP metadata: Yes LibCImg: 130 LibClapack: internal library LibExiv2: 0.21.1 LibJPEG: 62 LibJasper: 1.900.1 LibKDE: 4.7.00 (4.7.0) LibKExiv2: 2.0.0 LibKGeoMap: 2.0.0 LibKdcraw: 2.0.0 LibLCMS: 118 LibPGF: 6.11.24 - internal library LibPNG: 1.2.44 LibQt: 4.7.2 LibRaw: 0.13.5 LibTIFF: LIBTIFF, Version 3.9.4 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc. Marble Widget: 0.11.95 (0.12 RC 2) Parallelized demosaicing: Yes Database backend: QSQLITE LibGphoto2: 2.4.11 LibKface: 2.0.0 LibKipi: 1.2.0 LibOpenCV: 2.3.1 Libface: 0.2
Op 17-09-11 17:01, Philip Johnsson schreef: > https://bugs.kde.org/show_bug.cgi?id=282194 > > > Philip Johnsson<philip.johnsson@gmail.com> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |philip.johnsson@gmail.com > > > > > --- Comment #1 from Philip Johnsson<philip johnsson gmail com> 2011-09-17 15:01:34 --- > Not reproducible here with (about) the same setup. Tried it with both USB mass > storage device and PTP mode with my Nikon D7000 but no crash in the image > importer view in either. > > Kubuntu 11.04: > > digiKam version 2.1.1 > Exiv2 can write to Jp2: Yes > Exiv2 can write to Jpeg: Yes > Exiv2 can write to Pgf: Yes > Exiv2 can write to Png: Yes > Exiv2 can write to Tiff: Yes > Exiv2 supports XMP metadata: Yes > LibCImg: 130 > LibClapack: internal library > LibExiv2: 0.21.1 > LibJPEG: 62 > LibJasper: 1.900.1 > LibKDE: 4.7.00 (4.7.0) > LibKExiv2: 2.0.0 > LibKGeoMap: 2.0.0 > LibKdcraw: 2.0.0 > LibLCMS: 118 > LibPGF: 6.11.24 - internal library > LibPNG: 1.2.44 > LibQt: 4.7.2 > LibRaw: 0.13.5 > LibTIFF: LIBTIFF, Version 3.9.4 Copyright (c) 1988-1996 Sam Leffler Copyright > (c) 1991-1996 Silicon Graphics, Inc. > Marble Widget: 0.11.95 (0.12 RC 2) > Parallelized demosaicing: Yes > Database backend: QSQLITE > LibGphoto2: 2.4.11 > LibKface: 2.0.0 > LibKipi: 1.2.0 > LibOpenCV: 2.3.1 > Libface: 0.2 > This looks to be the output of some command, which comman? Rinus
(In reply to comment #2) > This looks to be the output of some command, which comman? > Rinus In Digikam: Help > Components Information > Copy to Clipboard Then just paste in where ever you want the components information as a copy/paste.
There is exactly the same backtrace in #271047 It sound like a crash in Qt4 from my new interface to cache thumbnails for camera interface. In #271047, it appear when a MP3 file hosted in device is thumnailized by KDELibs. I cannot reproduce the crash here. Gilles Caulier
The problem must be related to video files: I had some .MOV files created by a FUJI HS20 in the imported directory; when I removed them the import did not crash any more
yes. Non image file can be the problem. KDE thumb loader is called here. Can you run digiKam through GDB to have a better backtrace ? Gilles Caulier
The crash happens in QString, so probably the relevant QString is invalid. Tracing back, the place where a pointer is turned to a reference is in CameraThumbsCtrl::procressKDEPreview: const CachedItem* cit = retrieveItemFromCache(item.url()); putItemToCache(item.url(), cit->first, thumb); d->pendingItems.removeAll(item.url()); emit signalThumbInfoReady(cit->first); Gilles: Can we be sure that cit and cit->first are valid?
Fixed by Andi, i think, with this commit : M +1 -1 utilities/cameragui/views/cameraiconview.cpp http://commits.kde.org/digikam/ac1ba148ebb68662d6bd4401e86ea8c15c10b4e9 diff --git a/utilities/cameragui/views/cameraiconview.cpp b/utilities/cameragui/views/cameraiconview.cpp index 08dc27a..d57e329 100644 --- a/utilities/cameragui/views/cameraiconview.cpp +++ b/utilities/cameragui/views/cameraiconview.cpp @@ -227,7 +227,7 @@ CachedItem CameraIconView::getThumbInfo(const CamItemInfo& itemInfo) const void CameraIconView::slotThumbInfoReady(const CamItemInfo& info) { CameraIconItem* item = findItem(info.folder, info.name); - if (!item) + if (item) { // Updating item, thumb controller will be called to refresh icon item. See repaint() method for details. item->update(); Please confirm and report. Thanks in advance Gilles Caulier
*** Bug 282701 has been marked as a duplicate of this bug. ***
Created attachment 63954 [details] New crash information added by DrKonqi digikam (2.1.1) on KDE Platform 4.7.00 (4.7.0) using Qt 4.7.2 - What I was doing when the application crashed: Imported pictures from sd card using Download/delete all. Pictures were imported and deleted, but digikam crashed. -- Backtrace (Reduced): #7 Digikam::IconItem::rect (this=0x0) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/q3support/iconitem.cpp:126 #8 0x083cecee in Digikam::IconItem::update (this=0x0) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/q3support/iconitem.cpp:233 #9 0x083c055c in Digikam::CameraIconView::slotThumbInfoReady (this=0xc118b50, info=...) at /build/buildd/digikam2-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:233 #10 0x083c1ff9 in Digikam::CameraIconView::qt_metacall (this=0xc118b50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbfec31b8) at /build/buildd/digikam2-2.1.1/obj-i686-linux-gnu/core/utilities/cameragui/cameraiconview.moc:145 [...] #13 0x083ae375 in Digikam::CameraThumbsCtrl::signalThumbInfoReady (this=0xbdb2c58, _t1=...) at /build/buildd/digikam2-2.1.1/obj-i686-linux-gnu/core/utilities/cameragui/camerathumbsctrl.moc:99
I can confirm that the crash does not occur when there are no video files on sd card.
I can confirm that commit #ac1ba148ebb68662d6bd4401e86ea8c15c10b4e9 from Andi fix the crash on my computer... Gilles Caulier
*** Bug 282744 has been marked as a duplicate of this bug. ***
*** Bug 282747 has been marked as a duplicate of this bug. ***
this bug isn't fixed at all for me. I pulled everything from git to have le latest code and compiled digikam. If i plug-in my usb-HDD and i choose to download photos from my drive I see big thumbnails for .mp3 and normal thumbnails for video files. But, if i try to scroll down, in the middle of scrooling it will crash with this backtrace: Thread 1 (Thread 0xaf40d860 (LWP 22604)): [KCrash Handler] #7 0xb46f8d7f in QString::endsWith(QChar const&, Qt::CaseSensitivity) const () from /usr/lib/libQtCore.so.4 #8 0x0835db47 in Digikam::CameraIconView::findItem (this=0xba937e0, folder=..., filename=...) at /home/slavik/digikam-sc/core/utilities/cameragui/views/cameraiconview.cpp:296 #9 0x0835d6f5 in Digikam::CameraIconView::slotThumbInfoReady (this=0xba937e0, info=...) at /home/slavik/digikam-sc/core/utilities/cameragui/views/cameraiconview.cpp:229 #10 0x0835ce92 in Digikam::CameraIconView::qt_metacall (this=0xba937e0, _c=QMetaObject::InvokeMetaMethod, _id=26, _a=0xbfb159f8) at /home/slavik/digikam-sc/build/core/utilities/cameragui/cameraiconview.moc:145 #11 0xb47a037d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4 #12 0xb47afa96 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4 #13 0x08351966 in Digikam::CameraThumbsCtrl::signalThumbInfoReady (this=0xa1471b10, _t1=...) at /home/slavik/digikam-sc/build/core/utilities/cameragui/camerathumbsctrl.moc:99 #14 0x08352826 in Digikam::CameraThumbsCtrl::procressKDEPreview (this=0xa1471b10, item=..., pix=...) at /home/slavik/digikam-sc/core/utilities/cameragui/controller/camerathumbsctrl.cpp:180 #15 0x0835236f in Digikam::CameraThumbsCtrl::slotFailedKDEPreview (this=0xa1471b10, item=...) at /home/slavik/digikam-sc/core/utilities/cameragui/controller/camerathumbsctrl.cpp:156 #16 0x0835191b in Digikam::CameraThumbsCtrl::qt_metacall (this=0xa1471b10, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfb15c08) at /home/slavik/digikam-sc/build/core/utilities/cameragui/camerathumbsctrl.moc:87 #17 0xb47a037d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4 #18 0xb47afa96 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4 #19 0xb5e10d05 in KIO::PreviewJob::failed(KFileItem const&) () from /usr/lib/libkio.so.5 #20 0xb5e13602 in ?? () from /usr/lib/libkio.so.5 #21 0xb5e1412f in KIO::PreviewJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkio.so.5 #22 0xb47a037d in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4 #23 0xb47aa817 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4 #24 0xb47ae46a in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4 #25 0xb4d15a9f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #26 0xb4d1dc96 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4 #27 0xb57f8e11 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5 #28 0xb479a492 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4 #29 0xb479d7d2 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4 #30 0xb479da00 in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4 #31 0xb47c557a in ?? () from /usr/lib/libQtCore.so.4 #32 0xb2fcdc4f in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #33 0xb2fce3b0 in ?? () from /usr/lib/libglib-2.0.so.0 #34 0xb2fce6da in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #35 0xb47c56fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #36 0xb4dbd7fa in ?? () from /usr/lib/libQtGui.so.4 #37 0xb47998f4 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #38 0xb4799b11 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4 #39 0xb479dad9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4 #40 0xb4d139ee in QApplication::exec() () from /usr/lib/libQtGui.so.4 #41 0x082ac4db in main (argc=1, argv=0xbfb167a4) at /home/slavik/digikam-sc/core/digikam/main/main.cpp:232
Veaceslav, This is a non sence. look like the code is really where crash appear : CameraIconItem* CameraIconView::findItem(const QString& folder, const QString& filename) const { QString sep; if (!folder.endsWith('/')) // <=== CRASH HERE !!! { sep = '/'; } return d->itemDict.value(folder+sep+filename); } ... why ? Can you place a debug statement to see contents of "folder" and "filename", just before the test ? Gilles Caulier
http://pastebin.com/bFBP79kr as you can see, i've got a huge output and only few lines from my kDebug lines... They are marked as "Content of the filename is" and "Content of the folder is"
Created attachment 64137 [details] New crash information added by DrKonqi digikam (2.1.1) on KDE Platform 4.7.1 (4.7.1) using Qt 4.7.4 Digicam still crash when I try to import images from usb - digital camera -- Backtrace (Reduced): #6 appendTo (this=0x38dc060, folder=<value optimized out>, filename=...) at /usr/include/QtCore/qstringbuilder.h:214 #7 appendTo (this=0x38dc060, folder=<value optimized out>, filename=...) at /usr/include/QtCore/qstringbuilder.h:293 #8 operator QString (this=0x38dc060, folder=<value optimized out>, filename=...) at /usr/include/QtCore/qstringbuilder.h:108 #9 Digikam::CameraIconView::findItem (this=0x38dc060, folder=<value optimized out>, filename=...) at /usr/src/debug/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292 #10 0x000000000077ef81 in Digikam::CameraIconView::slotThumbInfoReady (this=0x38dc060, info=<value optimized out>) at /usr/src/debug/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:229
Git commit 37cbf6db3f562680fff72cb8667855454c79be09 by Gilles Caulier. Committed on 07/10/2011 at 12:24. Pushed by cgilles into branch 'master'. fix crash if folder string is empty CCBUGS: 282194 M +4 -4 utilities/cameragui/views/cameraiconview.cpp http://commits.kde.org/digikam/37cbf6db3f562680fff72cb8667855454c79be09
Veaceslav Munteanu and AndyReddy, The crash must be fixed in git master now... Gilles Caulier
*** Bug 284707 has been marked as a duplicate of this bug. ***
Hmmm.. i still get a crash with the same backtrace and with latest git :(
Well, no idea. If someone as a better idea. Note : I cannot reproduce the crash here... Gilles Caulier
Created attachment 64911 [details] Suggested patch I'm still not convinced about the code mentioned in #7. An entry can be cleared from the cache and the return value must be checked. Veaceslav: Can you try the attached patch?
Marcel, you were right. It no longer crash on my computer. Patch works for me.
But, the question is: why i see all content from my external HDD? I mean that i can see the content of all folders together and there are mixed everything including mp3, videos and lots of stuff that aren't related to digikam. Pressing Download will import lots of things at aren't related to digikam. also i can barely scroll on that dialog even if i have a top core i5 processor. Shouldn't i have a option to see directory tree and to select the folder that contains photos that i want to import? Or i'm doing something wrong?
Created attachment 64984 [details] New crash information added by DrKonqi digikam (2.2.0) on KDE Platform 4.7.2 (4.7.2) "release 9" using Qt 4.7.4 - What I was doing when the application crashed: Tried to import Images from a SD-Card from an Android phone. The import screen showed up alright, but as soon, I try to scroll down the image window to see (and select) older images, it crashes immediately. This bug occurs every time. Zooming out to see more images works. Scrolling down the image overview causes the crash. -- Backtrace (Reduced): #7 appendTo (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:214 #8 appendTo (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:293 #9 operator QString (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:108 #10 Digikam::CameraIconView::findItem (this=0x690064, folder=..., filename=...) at /usr/src/debug/digikam-2.2.0/core/utilities/cameragui/views/cameraiconview.cpp:301 #11 0x083d93a2 in Digikam::CameraIconView::slotThumbInfoReady (this=0xa7dc8a0, info=...) at /usr/src/debug/digikam-2.2.0/core/utilities/cameragui/views/cameraiconview.cpp:229
Created attachment 64985 [details] New crash information added by DrKonqi digikam (2.2.0) on KDE Platform 4.7.2 (4.7.2) "release 9" using Qt 4.7.4 - What I was doing when the application crashed: Tried to import Images from a SD-Card from an Android phone. The import screen showed up alright, but as soon, I try to scroll down the image window to see (and select) older images, it crashes immediately. This bug occurs every time. Zooming out to see more images works. Scrolling down the image overview causes the crash. -- Backtrace (Reduced): #7 appendTo (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:214 #8 appendTo (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:293 #9 operator QString (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:108 #10 Digikam::CameraIconView::findItem (this=0x690064, folder=..., filename=...) at /usr/src/debug/digikam-2.2.0/core/utilities/cameragui/views/cameraiconview.cpp:301 #11 0x083d93a2 in Digikam::CameraIconView::slotThumbInfoReady (this=0xa7dc8a0, info=...) at /usr/src/debug/digikam-2.2.0/core/utilities/cameragui/views/cameraiconview.cpp:229
Created attachment 64986 [details] New crash information added by DrKonqi digikam (2.2.0) on KDE Platform 4.7.2 (4.7.2) "release 9" using Qt 4.7.4 - What I was doing when the application crashed: Tried to import Images from a SD-Card from an Android phone. The import screen showed up alright, but as soon, I try to scroll down the image window to see (and select) older images, it crashes immediately. This bug occurs every time. Zooming out to see more images works. Scrolling down the image overview causes the crash. -- Backtrace (Reduced): #7 appendTo (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:214 #8 appendTo (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:293 #9 operator QString (this=0x690064, folder=..., filename=...) at /usr/include/QtCore/qstringbuilder.h:108 #10 Digikam::CameraIconView::findItem (this=0x690064, folder=..., filename=...) at /usr/src/debug/digikam-2.2.0/core/utilities/cameragui/views/cameraiconview.cpp:301 #11 0x083d93a2 in Digikam::CameraIconView::slotThumbInfoReady (this=0xa7dc8a0, info=...) at /usr/src/debug/digikam-2.2.0/core/utilities/cameragui/views/cameraiconview.cpp:229
Git commit 2b0b91fa17b05cf367070ce8f4127193d190505d by Marcel Wiesweg. Committed on 29/10/2011 at 14:37. Pushed by mwiesweg into branch 'master'. Port code for KDE thumbnails loading from ThumbnailLoadTask to camera controller, replacing the existing implementation. Now, a careful extra hash is kept to map a preview job's result to the underlying Camera item info. Relying on the QCache does not work because it's a cache, which means entries may get removed anytime. Apparently fixes the crash. CCBUG: 282194 M +48 -11 utilities/cameragui/controller/camerathumbsctrl.cpp M +4 -2 utilities/cameragui/controller/camerathumbsctrl.h http://commits.kde.org/digikam/2b0b91fa17b05cf367070ce8f4127193d190505d
*** Bug 285728 has been marked as a duplicate of this bug. ***
*** Bug 286121 has been marked as a duplicate of this bug. ***
*** Bug 286220 has been marked as a duplicate of this bug. ***
*** Bug 287662 has been marked as a duplicate of this bug. ***
Created attachment 66324 [details] New crash information added by DrKonqi digikam (2.1.1) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4 - What I was doing when the application crashed: I was importing pictures from an SD card scrolling down to see more thumbnails crashes every time -- Backtrace (Reduced): #8 0x083d86f0 in size (this=0xb848dc8) at /usr/include/i386-linux-gnu/bits/string3.h:52 #9 appendTo (out=<synthetic pointer>, a=...) at /usr/include/qt4/QtCore/qstringbuilder.h:213 #10 appendTo (out=<synthetic pointer>, p=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:293 #11 operator QString (this=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:108 #12 Digikam::CameraIconView::findItem (this=0xb71ae08, folder=..., filename=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292
Created attachment 66326 [details] New crash information added by DrKonqi digikam (2.1.1) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4 - What I was doing when the application crashed: import pictures scrolling down to see more thumbnails, I deleted big .mov files (>100 Mb) and now opens with no problem. It seems that is a problem with big files. -- Backtrace (Reduced): #8 0x083d86f0 in size (this=0xbe18f68) at /usr/include/i386-linux-gnu/bits/string3.h:52 #9 appendTo (out=<synthetic pointer>, a=...) at /usr/include/qt4/QtCore/qstringbuilder.h:213 #10 appendTo (out=<synthetic pointer>, p=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:293 #11 operator QString (this=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:108 #12 Digikam::CameraIconView::findItem (this=0xbaa85f8, folder=..., filename=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292
*** Bug 288627 has been marked as a duplicate of this bug. ***
*** Bug 288982 has been marked as a duplicate of this bug. ***
*** Bug 289285 has been marked as a duplicate of this bug. ***
Created attachment 67807 [details] New crash information added by DrKonqi digikam (2.1.1) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4 - What I was doing when the application crashed: Scrolling down Picture Import Screen. Crashes every time before you reach the end. -- Backtrace (Reduced): #8 0x083d86f0 in size (this=0xba04d18) at /usr/include/i386-linux-gnu/bits/string3.h:52 #9 appendTo (out=<synthetic pointer>, a=...) at /usr/include/qt4/QtCore/qstringbuilder.h:213 #10 appendTo (out=<synthetic pointer>, p=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:293 #11 operator QString (this=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:108 #12 Digikam::CameraIconView::findItem (this=0xb895bc8, folder=..., filename=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292
Created attachment 67808 [details] New crash information added by DrKonqi digikam (2.1.1) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4 - What I was doing when the application crashed: Scrolling down Picture Import Screen. Crashes every time before you reach the end. -- Backtrace (Reduced): #8 0x083d86f0 in size (this=0xba04d18) at /usr/include/i386-linux-gnu/bits/string3.h:52 #9 appendTo (out=<synthetic pointer>, a=...) at /usr/include/qt4/QtCore/qstringbuilder.h:213 #10 appendTo (out=<synthetic pointer>, p=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:293 #11 operator QString (this=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:108 #12 Digikam::CameraIconView::findItem (this=0xb895bc8, folder=..., filename=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292
Created attachment 67809 [details] New crash information added by DrKonqi digikam (2.1.1) on KDE Platform 4.7.3 (4.7.3) using Qt 4.7.4 - What I was doing when the application crashed: Scrolling down Picture Import Screen. Crashes every time before you reach the end. -- Backtrace (Reduced): #8 0x083d86f0 in size (this=0xba04d18) at /usr/include/i386-linux-gnu/bits/string3.h:52 #9 appendTo (out=<synthetic pointer>, a=...) at /usr/include/qt4/QtCore/qstringbuilder.h:213 #10 appendTo (out=<synthetic pointer>, p=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:293 #11 operator QString (this=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:108 #12 Digikam::CameraIconView::findItem (this=0xb895bc8, folder=..., filename=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292
*** Bug 292108 has been marked as a duplicate of this bug. ***
*** Bug 294309 has been marked as a duplicate of this bug. ***
*** Bug 295897 has been marked as a duplicate of this bug. ***
*** Bug 296282 has been marked as a duplicate of this bug. ***
*** Bug 297231 has been marked as a duplicate of this bug. ***
Created attachment 70078 [details] New crash information added by DrKonqi digikam (2.1.1) on KDE Platform 4.7.4 (4.7.4) using Qt 4.7.4 - What I was doing when the application crashed: Scrolling through the thumnails on the import screen -- Backtrace (Reduced): #8 0x083d86f0 in size (this=0xae76108) at /usr/include/i386-linux-gnu/bits/string3.h:52 #9 appendTo (out=<synthetic pointer>, a=...) at /usr/include/qt4/QtCore/qstringbuilder.h:213 #10 appendTo (out=<synthetic pointer>, p=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:293 #11 operator QString (this=<optimized out>) at /usr/include/qt4/QtCore/qstringbuilder.h:108 #12 Digikam::CameraIconView::findItem (this=0xad3c140, folder=..., filename=...) at /build/buildd/digikam-2.1.1/core/utilities/cameragui/views/cameraiconview.cpp:292
*** Bug 298111 has been marked as a duplicate of this bug. ***
*** Bug 298187 has been marked as a duplicate of this bug. ***
For anyone on Ubuntu 11.10 (Oneiric), I've built a package that fixes just this bug by applying the patch fix, here: https://launchpad.net/~davidf/+archive/ppa/+sourcepub/2519530/+listing-archive-extra
*** Bug 305850 has been marked as a duplicate of this bug. ***