Summary: | Crash when importing my picture and video collection | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Martin <mrb74> |
Component: | Metadata-Engine | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ahuggel, caulier.gilles, moabi2000 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.10.0 | |
Sentry Crash Report: |
Description
Martin
2008-08-28 08:25:28 UTC
Martin, The backtrace is not suitable. there is no debug symbol available. Gilles Caulier Maybe this is a duplicate of http://bugs.kde.org/show_bug.cgi?id=169641 ? Martin, is this problem still present in the newest SVN checkout? If you don't / can't use SVN you might also want to wait one more day, we will release the 0.10-beta3 tarball today. It somehow looks like this is a duplicate of bug #169641 as I mentioned above. For me the crash is fixed now. So please give us an update here if possible. Andi I get this problem with 0.10.0-0.5.beta4.fc9 from kde-redhat. best M. I installed the debuginfo packages for digikam, qt and kdelibs. The backtrace is below. There are still some symbols missions. If I need to add other debuginfo packages please let me know which (but beware I am on a very slow connection). Application: digiKam (digikam), signal SIGSEGV [Thread debugging using libthread_db enabled] [New Thread 0xb7fcb770 (LWP 21167)] [New Thread 0xb69e5b90 (LWP 21174)] [KCrash handler] #6 0x04d3b231 in Exiv2::ValueType<unsigned short>::toLong () from /usr/lib/libexiv2.so.2 #7 0x01379d3f in KExiv2Iface::KExiv2::getExifTagVariant () from /usr/lib/libkexiv2.so.7 #8 0x0043c587 in Digikam::DMetadata::fromExifOrXmp (this=0xb69e497c, exifTagName=0x0, xmpTagName=0x5bd4b3 "Xmp.exif.ISOSpeedRatings") at /usr/src/debug/digikam-0.10.0-beta4/libs/dmetadata/dmetadata.cpp:616 #9 0x0043a506 in Digikam::DMetadata::getMetadataField (this=0xb69e497c, field=Digikam::MetadataInfo::Sensitivity) at /usr/src/debug/digikam-0.10.0-beta4/libs/dmetadata/dmetadata.cpp:781 #10 0x0043b0f7 in Digikam::DMetadata::getMetadataFields (this=0xb69e497c, fields=@0xb69e48e0) at /usr/src/debug/digikam-0.10.0-beta4/libs/dmetadata/dmetadata.cpp:915 #11 0x00160653 in Digikam::ImageScanner::scanImageMetadata (this=0xb69e4974) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/imagescanner.cpp:301 #12 0x00162136 in Digikam::ImageScanner::scanFile (this=0xb69e4974) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/imagescanner.cpp:146 #13 0x00162275 in Digikam::ImageScanner::newFile (this=0xb69e4974, albumId=171) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/imagescanner.cpp:89 #14 0x00155dea in Digikam::CollectionScanner::scanNewFile (this=0xb69e52a4, info=@0xb5b2bad4, albumId=171) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:556 #15 0x00157827 in Digikam::CollectionScanner::scanAlbum (this=0xb69e52a4, location=@0x8d2d0e0, album=@0xb69e4c18) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:509 #16 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb69e52a4, location=@0x8d2d0e0, album=@0xb69e4d68) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #17 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb69e52a4, location=@0x8d2d0e0, album=@0xb69e4eb8) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #18 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb69e52a4, location=@0x8d2d0e0, album=@0xb69e5008) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #19 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb69e52a4, location=@0x8d2d0e0, album=@0xb69e5158) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #20 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb69e52a4, location=@0x8d2d0e0, album=@0xb69e51d4) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #21 0x00158207 in Digikam::CollectionScanner::scanAlbumRoot (this=0xb69e52a4, location=@0x8d2d0e0) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:318 #22 0x00158499 in Digikam::CollectionScanner::completeScan (this=0xb69e52a4) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:195 #23 0x08289a77 in Digikam::ScanController::run (this=0x8ba15c8) at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:364 #24 0x05792232 in ?? () from /usr/lib/libQtCore.so.4 #25 0x0085932f in start_thread () from /lib/libpthread.so.0 #26 0x084ab20e in clone () from /lib/libc.so.6 Thread 1 (Thread 0xb7fcb770 (LWP 21167)): #0 0x00110416 in __kernel_vsyscall () #1 0x0085cba5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0x05793272 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4 #3 0x057923d3 in QThread::wait () from /usr/lib/libQtCore.so.4 #4 0x082896be in Digikam::ScanController::shutDown (this=0x8ba15c8) at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:224 #5 0x0828c4b1 in ~ScanController (this=0x8ba15c8) at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:207 #6 0x0828c65a in destroy () at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:161 #7 0x083fab39 in exit () from /lib/libc.so.6 #8 0x044cd4db in ?? () from /usr/lib/libQtGui.so.4 #9 0x0115ff0a in KApplication::xioErrhandler (this=0xbff0319c, dpy=0x8b05dc0) at /usr/src/debug/kdelibs-4.1.2/kdeui/kernel/kapplication.cpp:417 #10 0x0115ff46 in kde_xio_errhandler (dpy=0x8b05dc0) at /usr/src/debug/kdelibs-4.1.2/kdeui/kernel/kapplication.cpp:130 #11 0x01501bb2 in _XIOError () from /usr/lib/libX11.so.6 #12 0x01509c15 in ?? () from /usr/lib/libX11.so.6 #13 0x0150a435 in _XEventsQueued () from /usr/lib/libX11.so.6 #14 0x014f249f in XEventsQueued () from /usr/lib/libX11.so.6 #15 0x04505f5d in ?? () from /usr/lib/libQtGui.so.4 #16 0x05119c18 in g_main_context_check () from /lib/libglib-2.0.so.0 #17 0x0511a59d in ?? () from /lib/libglib-2.0.so.0 #18 0x0511a871 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #19 0x058acec7 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #20 0x04505d95 in ?? () from /usr/lib/libQtGui.so.4 #21 0x05880e1a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #22 0x05880fda in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #23 0x08289533 in Digikam::ScanController::completeCollectionScan ( this=0x8ba15c8, splash=0x8b9b208) at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:286 #24 0x0824b42a in DigikamApp (this=0x8b96e50) at /usr/src/debug/digikam-0.10.0-beta4/digikam/digikamapp.cpp:158 #25 0x0827b664 in main (argc=1, argv=0xbff03504) at /usr/src/debug/digikam-0.10.0-beta4/digikam/main.cpp:158 Ah backtrace is better now. Sound like the crash appears from Exiv2 shared library. Please install debug package for Exiv2 and libkexiv2 Thanks in advance Gilles Caulier And please, can you attach to this file an image taken from your camera to test... Gilles Caulier #6 0x04d3b231 in Exiv2::ValueType<unsigned short>::toLong () from /usr/lib/libexiv2.so.2 #7 0x01379d3f in KExiv2Iface::KExiv2::getExifTagVariant () from /usr/lib/libkexiv2.so.7 #8 0x0043c587 in Digikam::DMetadata::fromExifOrXmp (this=0xb69e497c, exifTagName=0x0, xmpTagName=0x5bd4b3 "Xmp.exif.ISOSpeedRatings") The usual cause for this is that toLong() is called for an empty value. Does the calling function check for this? ( Something like "if (value.count() > 0) { l = value.toLong(); }" ) Martin, If you can identify the file which causes the problem, please attach/send it. Thanks, Andreas Please test with this commit to libkexiv2. r869654 | mwiesweg | 2008-10-09 18:15:49 +0200 (Do, 09. Okt 2008) | 3 lines Add checks for count() of ExifDatum to be greater than component for toLong and toRational. Should fix crash with empty value. Ouf! That pulled in gcc-debuginfo which was huge. Still, the revised backtrace is below. How can I get digikam to tell me which file caused the problem? Is there a 'verbose' option? (My collection has over 20k images, so hard to find the offending one manually.) Please note I am not the OP and his backtrace was slightly different even though the symptoms were the same so there may be more than one bug. Cheers Application: digiKam (digikam), signal SIGSEGV [Thread debugging using libthread_db enabled] [New Thread 0xb809f770 (LWP 28589)] [New Thread 0xb6ab9b90 (LWP 28590)] [KCrash handler] #6 Exiv2::ValueType<unsigned short>::toLong (this=) at value.hpp:1534 #7 0x084a4d3f in KExiv2Iface::KExiv2::getExifTagVariant () from /usr/lib/libkexiv2.so.7 #8 0x0043c587 in Digikam::DMetadata::fromExifOrXmp (this=0xb6ab897c, exifTagName=0x0, xmpTagName=0x5bd4b3 "Xmp.exif.ISOSpeedRatings") at /usr/src/debug/digikam-0.10.0-beta4/libs/dmetadata/dmetadata.cpp:616 #9 0x0043a506 in Digikam::DMetadata::getMetadataField (this=0xb6ab897c, field=Digikam::MetadataInfo::Sensitivity) at /usr/src/debug/digikam-0.10.0-beta4/libs/dmetadata/dmetadata.cpp:781 #10 0x0043b0f7 in Digikam::DMetadata::getMetadataFields (this=0xb6ab897c, fields=@0xb6ab88e0) at /usr/src/debug/digikam-0.10.0-beta4/libs/dmetadata/dmetadata.cpp:915 #11 0x00160653 in Digikam::ImageScanner::scanImageMetadata (this=0xb6ab8974) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/imagescanner.cpp:301 #12 0x00162136 in Digikam::ImageScanner::scanFile (this=0xb6ab8974) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/imagescanner.cpp:146 #13 0x00162275 in Digikam::ImageScanner::newFile (this=0xb6ab8974, albumId=171) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/imagescanner.cpp:89 #14 0x00155dea in Digikam::CollectionScanner::scanNewFile (this=0xb6ab92a4, info=@0xb59313ec, albumId=171) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:556 #15 0x00157827 in Digikam::CollectionScanner::scanAlbum (this=0xb6ab92a4, location=@0xb5f00f20, album=@0xb6ab8c18) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:509 #16 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb6ab92a4, location=@0xb5f00f20, album=@0xb6ab8d68) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #17 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb6ab92a4, location=@0xb5f00f20, album=@0xb6ab8eb8) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #18 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb6ab92a4, location=@0xb5f00f20, album=@0xb6ab9008) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #19 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb6ab92a4, location=@0xb5f00f20, album=@0xb6ab9158) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #20 0x00157746 in Digikam::CollectionScanner::scanAlbum (this=0xb6ab92a4, location=@0xb5f00f20, album=@0xb6ab91d4) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:520 #21 0x00158207 in Digikam::CollectionScanner::scanAlbumRoot (this=0xb6ab92a4, location=@0xb5f00f20) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:318 #22 0x00158499 in Digikam::CollectionScanner::completeScan (this=0xb6ab92a4) at /usr/src/debug/digikam-0.10.0-beta4/libs/database/collectionscanner.cpp:195 #23 0x08289a77 in Digikam::ScanController::run (this=0x8e19bc8) at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:364 #24 0x05792232 in ?? () from /usr/lib/libQtCore.so.4 #25 0x0085932f in start_thread (arg=<value optimized out>) at pthread_create.c:297 #26 0x0186920e in clone () from /lib/libc.so.6 Thread 1 (Thread 0xb809f770 (LWP 28589)): #0 0x00110416 in __kernel_vsyscall () #1 0x0085cba5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0x05793272 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4 #3 0x057923d3 in QThread::wait () from /usr/lib/libQtCore.so.4 #4 0x082896be in Digikam::ScanController::shutDown (this=0x8e19bc8) at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:224 #5 0x0828c4b1 in ~ScanController (this=0x8e19bc8) at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:207 #6 0x0828c65a in destroy () at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:161 #7 0x017b8b39 in exit (status=<value optimized out>) at exit.c:75 #8 0x0217d4db in ?? () from /usr/lib/libQtGui.so.4 #9 0x0115ff0a in KApplication::xioErrhandler (this=0xbfbd73dc, dpy=0x8d7ddc0) at /usr/src/debug/kdelibs-4.1.2/kdeui/kernel/kapplication.cpp:417 #10 0x0115ff46 in kde_xio_errhandler (dpy=0x8d7ddc0) at /usr/src/debug/kdelibs-4.1.2/kdeui/kernel/kapplication.cpp:130 #11 0x047eebb2 in _XIOError (dpy=<value optimized out>) at XlibInt.c:2940 #12 0x047f6c15 in process_responses (dpy=<value optimized out>, wait_for_first_event=<value optimized out>, current_error=<value optimized out>, current_request=<value optimized out>) at xcb_io.c:180 #13 0x047f7435 in _XEventsQueued (dpy=<value optimized out>, mode=<value optimized out>) at xcb_io.c:197 #14 0x047df49f in XEventsQueued (dpy=<value optimized out>, mode=<value optimized out>) at Pending.c:44 #15 0x021b5f5d in ?? () from /usr/lib/libQtGui.so.4 #16 0x05119c18 in g_main_context_check () from /lib/libglib-2.0.so.0 #17 0x0511a59d in ?? () from /lib/libglib-2.0.so.0 #18 0x0511a871 in g_main_context_iteration () from /lib/libglib-2.0.so.0 #19 0x058acec7 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #20 0x021b5d95 in ?? () from /usr/lib/libQtGui.so.4 #21 0x05880e1a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #22 0x05880fda in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #23 0x08289533 in Digikam::ScanController::completeCollectionScan ( this=0x8e19bc8, splash=0x8fcc0a8) at /usr/src/debug/digikam-0.10.0-beta4/digikam/scancontroller.cpp:286 #24 0x0824b42a in DigikamApp (this=0x8ec6878) at /usr/src/debug/digikam-0.10.0-beta4/digikam/digikamapp.cpp:158 #25 0x0827b664 in main (argc=1, argv=0xbfbd7744) at /usr/src/debug/digikam-0.10.0-beta4/digikam/main.cpp:158 I updated to latest kdegraphics from kde-redhat (which I am told includes libkexiv now) and this problem is resolved. Thanks! Thanks for the feedback. I close this file now. Gilles Caulier |