[Digikam-devel] [Bug 141980] New: digikam crash when rescan certain files exiv2

Geoff King gsking1 at yahoo.com
Tue Feb 20 14:26:27 GMT 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=141980         
           Summary: digikam crash when rescan certain files exiv2
           Product: digikam
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: digikam-devel kde org
        ReportedBy: gsking1 yahoo com


Version:           0.9.1-rc1 (using KDE 3.5.6, Kubuntu (edgy) 4:3.5.6-0ubuntu1~edgy1)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.17.14-ubuntu1

I'm getting constant crashes whenever digikam rescans albums with certain JPG files. An example is:  
Run digikam with a few "good" files.  Add a "bad" JPG.  The "bad" file is not updated so I click "rescan" in tool bar.  Then it crashes. 
I believe this is due to exiv2. (I have verified version 0.12 and libkexiv2)

I will attach a troublesome file. 

I used exiv2 rm <filename> to remove metadata from this file and it solved the problem. But this is not a solution, because I have many files that are causing this error and I want to keep the metadata.

Example of crash when re-opening database with "bad" files:
digikam: ScanLib: Finding non-existing Albums: 4 ms
digikam: value.cpp:203: virtual long int Exiv2::StringValueBase::copy(Exiv2::byte*, Exiv2::ByteOrder) const: Assertion `buf != 0' failed.
KCrash: Application 'digikam' crashing...

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1246005584 (LWP 26779)]
[KCrash handler]
#6  0xffffe410 in __kernel_vsyscall ()
#7  0xb5c1b770 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb5c1cef3 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb5c14dbb in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#10 0xb74574fd in Exiv2::StringValueBase::copy (this=0x8185fb8, 
    buf=0x689b <Address 0x689b out of bounds>) at value.cpp:203
#11 0xb741def8 in Exiv2::Iptcdatum::copy (this=0x819035c, buf=0x0, 
    byteOrder=Exiv2::bigEndian) at iptc.hpp:128
#12 0xb74a8661 in KExiv2Iface::KExiv2::getIptcTagData ()
   from /usr/lib/libkexiv2.so.0
#13 0xb7f13d81 in Digikam::DMetadata::getImageRating ()
   from /usr/lib/libdigikam.so.0
#14 0xb7d56c6c in Digikam::ScanLib::storeItemInDatabase ()
   from /usr/lib/libdigikam.so.0
#15 0xb7d575a8 in Digikam::ScanLib::allFiles () from /usr/lib/libdigikam.so.0
#16 0xb7d57556 in Digikam::ScanLib::allFiles () from /usr/lib/libdigikam.so.0
#17 0xb7d57de9 in Digikam::ScanLib::findMissingItems ()
   from /usr/lib/libdigikam.so.0
#18 0xb7d5981f in Digikam::ScanLib::startScan () from /usr/lib/libdigikam.so.0
#19 0xb7d0ac0f in Digikam::AlbumManager::setLibraryPath ()
   from /usr/lib/libdigikam.so.0
#20 0x0804aac9 in main ()



More information about the Digikam-devel mailing list