Bug 375562 - Digikam crashes while scanning images into sqlite database
Summary: Digikam crashes while scanning images into sqlite database
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Video (show other bugs)
Version: 5.4.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-25 19:43 UTC by nomasteryoda
Modified: 2018-02-28 12:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0
Sentry Crash Report:


Attachments
KDE Bug report (28.78 KB, text/plain)
2017-01-25 19:43 UTC, nomasteryoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nomasteryoda 2017-01-25 19:43:03 UTC
Created attachment 103640 [details]
KDE Bug report

New digikam installation - wiped old database and digikamrc file to be sure it was ready for the new QT5 and hit a snag. Every time I have it scan my images, it crashes. Bug report attached.
Comment 1 caulier.gilles 2017-01-25 21:23:35 UTC
From your trace :

Thread 4 (Thread 0x7f541ccc9700 (LWP 28718)):
[KCrash Handler]
#6  0x00007f545e61e04f in raise () at /usr/lib/libc.so.6
#7  0x00007f545e61f47a in abort () at /usr/lib/libc.so.6
#8  0x00007f545e65bc50 in __libc_message () at /usr/lib/libc.so.6
#9  0x00007f545e661fe6 in malloc_printerr () at /usr/lib/libc.so.6
#10 0x00007f545e6627de in _int_free () at /usr/lib/libc.so.6
#11 0x00007f54584c2544 in Exiv2::QuickTimeVideo::userDataDecoder(unsigned long) () at /usr/lib/libexiv2.so.14
#12 0x00007f54584c125b in Exiv2::QuickTimeVideo::tagDecoder(Exiv2::DataBuf&, unsigned long) () at /usr/lib/libexiv2.so.14
#13 0x00007f54584c1588 in Exiv2::QuickTimeVideo::decodeBlock() () at /usr/lib/libexiv2.so.14
#14 0x00007f54584c1895 in Exiv2::QuickTimeVideo::readMetadata() () at /usr/lib/libexiv2.so.14
#15 0x00007f54619709ce in Digikam::MetaEngine::load(QString const&) const () at /usr/lib/libdigikamcore.so.5.4.0
#16 0x00007f54619c0206 in Digikam::DMetadata::load(QString const&) const () at /usr/lib/libdigikamcore.so.5.4.0
#17 0x00007f545f05cf37 in Digikam::ImageScanner::loadFromDisk() () at /usr/lib/libdigikamdatabase.so.5.4.0
#18 0x00007f545f05d0b0 in Digikam::ImageScanner::newFile(int) () at /usr/lib/libdigikamdatabase.so.5.4.0
#19 0x00007f545ef8723c in Digikam::CollectionScanner::scanNewFile(QFileInfo const&, int) () at /usr/lib/libdigikamdatabase.so.5.4.0
#20 0x00007f545ef8941a in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () at /usr/lib/libdigikamdatabase.so.5.4.0
#21 0x00007f545ef890c9 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () at /usr/lib/libdigikamdatabase.so.5.4.0
#22 0x00007f545ef89789 in Digikam::CollectionScanner::scanAlbumRoot(Digikam::CollectionLocation const&) () at /usr/lib/libdigikamdatabase.so.5.4.0
#23 0x00007f545ef899d3 in Digikam::CollectionScanner::completeScan() () at /usr/lib/libdigikamdatabase.so.5.4.0
#24 0x00007f54627903d5 in Digikam::ScanController::run() () at /usr/lib/libdigikamgui.so.5.4.0
#25 0x00007f545f3d0ce8 in  () at /usr/lib/libQt5Core.so.5
#26 0x00007f5458f22454 in start_thread () at /usr/lib/libpthread.so.0
#27 0x00007f545e6d37df in clone () at /usr/lib/libc.so.6

This is a crash in Exiv2 0.25 with a MOV like video file.

Report this problem to Exiv2 team...

Gilles Caulier
Comment 2 caulier.gilles 2018-02-28 12:37:39 UTC
With 6.0.0, we have now a FFMpeg low level metadata parser based on libav C API
for video files database registration.

The Exiv2 video support is not used anymore as this code is buggous and nobody
sound motivated in Exiv2 to finalize the code.

The original post for this file must be fixed now and video metadata support
with ffmpeg must be enough to populate database entries.

Gilles Caulier