OK, I tracked the problem down to a single image. Whenever I copy this to a 
digikam-managed path, digikam crashes.
I can open the image just fine using feh or gimp, and can also read the exif 
information. Only exiftags(1) complains about "exiftags: unknown TIFF field 
type; discarding (Unknown)", but displays the rest of the exif info.

** Summary changed:

- digikam crashes on startup with a SIGABRT
+ digikam crashes on a certain image with wrong exif fields

** Description changed:

  Binary package hint: digikam
+ 
+ UPDATE: I tracked this problem down to a specific image. I left the
+ description below intact, because the crash log may help someone tracing
+ the problem down further.
  
  Whenever I start digikam, it crashes with a SIGABRT. The issue is 100%
  reproducible.
  
  The output on the terminal is:
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/aktionen/Kinderkonferenz/INFO.doc: The file 
contains data of an unknown image type)
  Warning: Makernote: Pointer to next IFD is out of bounds; ignored.
  Warning: Makernote: Pointer to next IFD is out of bounds; ignored.
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/aktionen/wien-radeltour/edited/wien-bilder.tar.bz2: 
The file contains data of an unknown image type)
  Cannot load metadata using Exiv2 (/home/thomas/bilder/photos/db/jurope 
2/dscs0184.jpg: The file contains data of an unknown image type)
  Cannot load metadata using Exiv2 (/home/thomas/bilder/photos/db/jurope 
2/dscs0197.jpg: The file contains data of an unknown image type)
  Cannot load metadata using Exiv2 (/home/thomas/bilder/photos/digicam/0.jpg: 
The file contains data of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/digicam/200502/dscs0418.jpg: The file contains data 
of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/familie/portrait.xcf.gz: The file contains data of 
an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/familie/portrait2.xcf.gz: The file contains data of 
an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/natur/löwen/lion.xcf.bz2: The file contains data of 
an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/natur/löwen/Loewe.GIF: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/natur/seagull.bmp: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/photocase/bearbeitet/die tür.xcf: The file contains 
data of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/photocase/bearbeitet/die tür2.xcf: The file 
contains data of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/photocase/bearbeitet/ist es liebe 1.xcf.gz: The 
file contains data of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/photocase/bearbeitet/ist es liebe 2.xcf.gz: The 
file contains data of an unknown image type)
  Warning: Failed to read Makernote, rc = 2
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/photocase/bearbeitet/you-shine.xcf.gz: The file 
contains data of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/photocase/download: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/photocase/download2: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/bluecross1.xcf.bz2: The file contains data 
of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/bluecross2.gif: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/bluecross2.xcf.bz2: The file contains data 
of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/bluecross4.xcf.bz2: The file contains data 
of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/bluecross5.xcf.bz2: The file contains data 
of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/bluecross6.bmp: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/brnpaws.gif: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/brownpaws.gif: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/buchhandlung-zuercher.gif: The file contains 
data of an unknown image type)
  Cannot load metadata using Exiv2 (/home/thomas/bilder/photos/profil/bulb.gif: 
The file contains data of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/cross1.xcf.bz2: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/fotos1/mavica.htm: The file contains data of 
an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/fotos2/mavica.htm: The file contains data of 
an unknown image type)
  Cannot load metadata using Exiv2 (/home/thomas/bilder/photos/profil/grey 
paws.xcf.bz2: The file contains data of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/gruppenfoto-imagemap: The file contains data 
of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/grypaws.gif: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/jesus.gif: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/links/oben.gif: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 (/home/thomas/bilder/photos/profil/logo.GIF: 
The file contains data of an unknown image type)
  Cannot load metadata using Exiv2 (/home/thomas/bilder/photos/profil/logo.gif: 
The file contains data of an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/logo.xcf.bz2: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/logo2.xcf.bz2: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/logo3.xcf.bz2: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/logo4.xcf.bz2: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/profil.xcf.bz2: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/profil1.xcf.bz2: The file contains data of 
an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/profil2.xcf.bz2: The file contains data of 
an unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/profil3.gif: The file contains data of an 
unknown image type)
  Cannot load metadata using Exiv2 
(/home/thomas/bilder/photos/profil/profil3.xcf.bz2: The file contains data of 
an unknown image type)
  Error: Directory Iop with 40960 entries considered invalid; not read.
  Error: Directory Iop with 12336 entries considered invalid; not read.
  Error: Directory Iop with 19188 entries considered invalid; not read.
  Error: Directory Iop with 11317 entries considered invalid; not read.
  Error: Directory Iop with 750 entries considered invalid; not read.
  Error: Directory Iop with 750 entries considered invalid; not read.
  Error: Directory Iop with 40960 entries considered invalid; not read.
  Error: Directory Iop with 750 entries considered invalid; not read.
  Warning: Iop: Pointer to next IFD is out of bounds; ignored.
  Warning: Iop tag 0x0000 has invalid Exif type 12592; using 7 (undefined).
  Warning: Iop tag 0x0000 has invalid Exif type 1024; using 7 (undefined).
  Warning: Iop tag 0x0000 has invalid Exif type 768; using 7 (undefined).
  terminate called after throwing an instance of 'std::bad_alloc'
    what():  St9bad_alloc
  KCrash: Application 'digikam' crashing...
  
  
  The output from the crashmanager is:
  Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
  [Thread debugging using libthread_db enabled]
  [New Thread -1247242544 (LWP 9006)]
  [KCrash handler]
  #6  0xffffe410 in __kernel_vsyscall ()
  #7  0xb5af0df0 in raise () from /lib/tls/i686/cmov/libc.so.6
  #8  0xb5af2641 in abort () from /lib/tls/i686/cmov/libc.so.6
  #9  0xb5ce7270 in __gnu_cxx::__verbose_terminate_handler ()
     from /usr/lib/libstdc++.so.6
  #10 0xb5ce4ca5 in ?? () from /usr/lib/libstdc++.so.6
  #11 0xb5ce4ce2 in std::terminate () from /usr/lib/libstdc++.so.6
  #12 0xb5ce4e1a in __cxa_throw () from /usr/lib/libstdc++.so.6
  #13 0xb5ce525e in operator new () from /usr/lib/libstdc++.so.6
  #14 0xb73c39ea in std::vector<unsigned char, std::allocator<unsigned char> 
>::_M_assign_aux<unsigned char const*> () from /usr/lib/libexiv2-0.12.so
  #15 0xb73c03f4 in Exiv2::DataValue::read () from /usr/lib/libexiv2-0.12.so
  #16 0xb737101e in Exiv2::Exifdatum::setValue () from /usr/lib/libexiv2-0.12.so
  #17 0xb7371100 in Exiv2::Exifdatum::Exifdatum ()
     from /usr/lib/libexiv2-0.12.so
  #18 0xb7375934 in Exiv2::ExifData::add () from /usr/lib/libexiv2-0.12.so
  #19 0xb7375f55 in Exiv2::ExifData::load () from /usr/lib/libexiv2-0.12.so
  #20 0xb738b2f5 in Exiv2::JpegBase::readMetadata ()
     from /usr/lib/libexiv2-0.12.so
  #21 0xb74077cb in KExiv2Iface::KExiv2::load () from /usr/lib/libkexiv2.so.0
  #22 0xb7e8587c in Digikam::DMetadata::load (this=0xbff9758c, 
      [EMAIL PROTECTED])
      at /build/buildd/digikam-0.9.1/./digikam/libs/dmetadata/dmetadata.cpp:52
  #23 0xb7e858ec in DMetadata (this=0xbff9758c, [EMAIL PROTECTED])
      at /build/buildd/digikam-0.9.1/./digikam/libs/dmetadata/dmetadata.cpp:40
  #24 0xb7cd1e88 in Digikam::ScanLib::storeItemInDatabase (this=0xbff97994, 
      [EMAIL PROTECTED], [EMAIL PROTECTED], albumID=43)
      at /build/buildd/digikam-0.9.1/./digikam/digikam/scanlib.cpp:408
  #25 0xb7ce4978 in Digikam::ScanLib::allFiles (this=0xbff97994, 
      [EMAIL PROTECTED])
      at /build/buildd/digikam-0.9.1/./digikam/digikam/scanlib.cpp:367
  #26 0xb7ce4926 in Digikam::ScanLib::allFiles (this=0xbff97994, 
      [EMAIL PROTECTED])
      at /build/buildd/digikam-0.9.1/./digikam/digikam/scanlib.cpp:372
  #27 0xb7ce51b9 in Digikam::ScanLib::findMissingItems (this=0xbff97994)
      at /build/buildd/digikam-0.9.1/./digikam/digikam/scanlib.cpp:207
  #28 0xb7ce544f in Digikam::ScanLib::startScan (this=0xbff97994)
      at /build/buildd/digikam-0.9.1/./digikam/digikam/scanlib.cpp:100
  #29 0xb7d00337 in Digikam::AlbumManager::setLibraryPath (this=0x809a6a0, 
      [EMAIL PROTECTED])
      at /build/buildd/digikam-0.9.1/./digikam/digikam/albummanager.cpp:289
  #30 0x0804ab79 in main (argc=1, argv=0xbff97cb4)
      at /build/buildd/digikam-0.9.1/./digikam/digikam/main.cpp:276
  
  This is on an up-to-date Feisty system, digikam version 2:0.9.1-1ubuntu3.
  I had used digikam a long time ago (2 years?), so maybe it crashes on an old 
database still lying around?
  I can provide more info if needed.

** Attachment added: "Crash.jpg"
   http://librarian.launchpad.net/7321978/Crash.jpg

-- 
digikam crashes on a certain image with wrong exif fields
https://bugs.launchpad.net/bugs/106118
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[EMAIL PROTECTED]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to