Bug 387515

Summary: Crash on start-up
Product: [Applications] digikam Reporter: Victor Engmark <kde.org>
Component: Metadata-EngineAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, hamhenrik, metzpinguin
Priority: NOR    
Version: 5.7.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 7.1.0
Sentry Crash Report:

Description Victor Engmark 2017-12-01 20:56:55 UTC
Digikam crashed, as it does about once every 10 times I save a file during editing. After that crash I can't start it at all anymore, so I guess it's corrupted the database or something.

I can send a core dump but the form says the size limit is 4000 KB.
Comment 1 Maik Qualmann 2017-12-01 21:45:59 UTC
Please send the core dump to my private email.

Maik
Comment 2 Maik Qualmann 2017-12-01 22:29:25 UTC
The core dump is unfortunately not helpful. If you can reproduce the bug, use digiKam with gdb. Instructions here:

https://www.digikam.org/contribute/

Maik
Comment 3 Victor Engmark 2017-12-01 23:03:21 UTC
(gdb) bt
#0  0x00007fffec3fa186 in Exiv2::IptcData::printStructure(std::ostream&, unsigned char const*, unsigned long, unsigned int) () at /usr/lib/libexiv2.so.26
#1  0x00007fffec3f4a20 in Exiv2::Image::printIFDStructure(Exiv2::BasicIo&, std::ostream&, Exiv2::PrintStructureOption, unsigned int, bool, char, int) ()
    at /usr/lib/libexiv2.so.26
#2  0x00007fffec3f6558 in Exiv2::Image::printTiffStructure(Exiv2::BasicIo&, std::ostream&, Exiv2::PrintStructureOption, int, unsigned long) () at /usr/lib/libexiv2.so.26
#3  0x00007fffec473115 in Exiv2::TiffImage::printStructure(std::ostream&, Exiv2::PrintStructureOption, int) () at /usr/lib/libexiv2.so.26
#4  0x00007fffec474bdb in Exiv2::TiffImage::readMetadata() ()
    at /usr/lib/libexiv2.so.26
#5  0x00007ffff640492e in Digikam::MetaEngine::load(QString const&) const ()
    at /usr/lib/libdigikamcore.so.5.7.0
#6  0x00007ffff64566a8 in Digikam::DMetadata::load(QString const&) const ()
    at /usr/lib/libdigikamcore.so.5.7.0
#7  0x00007ffff6456735 in Digikam::DMetadata::DMetadata(QString const&) ()
    at /usr/lib/libdigikamcore.so.5.7.0
#8  0x00007ffff64c38d4 in Digikam::ThumbnailCreator::createThumbnail(Digikam::ThumbnailInfo const&, QRect const&) const () at /usr/lib/libdigikamcore.so.5.7.0
#9  0x00007ffff64c66c3 in Digikam::ThumbnailCreator::load(Digikam::ThumbnailIdentifier const&, QRect const&, bool) const () at /usr/lib/libdigikamcore.so.5.7.0
#10 0x00007ffff64c722e in Digikam::ThumbnailCreator::pregenerate(Digikam::ThumbnailIdentifier const&) const () at /usr/lib/libdigikamcore.so.5.7.0
#11 0x00007ffff64d56bd in  () at /usr/lib/libdigikamcore.so.5.7.0
#12 0x00007ffff64a5267 in Digikam::LoadSaveThread::run() ()
    at /usr/lib/libdigikamcore.so.5.7.0
#13 0x00007ffff64f3e20 in Digikam::DynamicThread::DynamicThreadPriv::run() ()
    at /usr/lib/libdigikamcore.so.5.7.0
#14 0x00007ffff3e07212 in  () at /usr/lib/libQt5Core.so.5
#15 0x00007ffff3e0a1cb in  () at /usr/lib/libQt5Core.so.5
#16 0x00007fffecf2108a in start_thread () at /usr/lib/libpthread.so.0
#17 0x00007ffff310347f in clone () at /usr/lib/libc.so.6
Comment 4 Maik Qualmann 2017-12-02 09:22:40 UTC
Your database is not damaged. It crashes in Exiv2 while reading the metadata from a TIFF image. You have to remove these TIFF images from the directory.

Maik
Comment 5 Maik Qualmann 2017-12-02 09:28:07 UTC
I would be interested in the TIFF image, if you can identify it, which triggers the crash. I would like to test the current Exiv2 from Git Hub.

Maik
Comment 6 Maik Qualmann 2017-12-04 07:50:30 UTC
Thanks for the TIFF image. I can not reproduce the crash with the TIFF image. I use also libexiv2-0.26. Can you try the AppImage?

https://files.kde.org/digikam/

Maik
Comment 7 Victor Engmark 2017-12-04 08:36:36 UTC
(In reply to Maik Qualmann from comment #6)
> Can you try the AppImage?

It doesn't crash on startup, but does crash when trying to preview the TIFF. GDB results are unhelpful:

/tmp/.mount_ri2nTf/AppRun: line 73: 28397 Segmentation fault      (core dumped) digikam $@
[Inferior 1 (process 28381) exited with code 0213]
(gdb) bt
No stack.

I've sent a core dump.
Comment 8 Maik Qualmann 2018-02-16 20:49:32 UTC
*** Bug 390580 has been marked as a duplicate of this bug. ***
Comment 9 caulier.gilles 2018-04-29 10:41:43 UTC

*** This bug has been marked as a duplicate of bug 393635 ***
Comment 10 caulier.gilles 2020-07-26 08:09:13 UTC
Fixed with #393635