Bug 331506

Summary: digikam crashes on startup
Product: [Applications] digikam Reporter: kde-bugs
Component: Metadata-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, tpr
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 6.0.0

Description kde-bugs 2014-02-25 20:43:18 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.12.2
Qt Version: 4.8.5
Operating System: Linux 3.13.4-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
I can' t start digikam anymore since it crashes when it scans my collection.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Floating point exception
Using host libthread_db library "/usr/lib/libthread_db.so.1".
To enable execution of this file add
	add-auto-load-safe-path /usr/lib/libstdc++.so.6.0.19-gdb.py
line to your configuration file "/home/stefan/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/stefan/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
[Current thread is 1 (Thread 0x7fbe69a5f980 (LWP 5602))]

Thread 4 (Thread 0x7fbe44997700 (LWP 5603)):
#0  0x00007fbe6340835d in poll () from /usr/lib/libc.so.6
#1  0x00007fbe4a039918 in ?? () from /usr/lib/libusb-1.0.so.0
#2  0x00007fbe611450a2 in start_thread () from /usr/lib/libpthread.so.0
#3  0x00007fbe63410d1d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fbe3ed0c700 (LWP 5604)):
[KCrash Handler]
#5  0x00007fbe5f5777d5 in Exiv2::QuickTimeVideo::movieHeaderDecoder(unsigned long) () from /usr/lib/libexiv2.so.13
#6  0x00007fbe5f578d9b in Exiv2::QuickTimeVideo::tagDecoder(Exiv2::DataBuf&, unsigned long) () from /usr/lib/libexiv2.so.13
#7  0x00007fbe5f5791a0 in Exiv2::QuickTimeVideo::decodeBlock() () from /usr/lib/libexiv2.so.13
#8  0x00007fbe5f578d40 in Exiv2::QuickTimeVideo::tagDecoder(Exiv2::DataBuf&, unsigned long) () from /usr/lib/libexiv2.so.13
#9  0x00007fbe5f5791a0 in Exiv2::QuickTimeVideo::decodeBlock() () from /usr/lib/libexiv2.so.13
#10 0x00007fbe5f5793d5 in Exiv2::QuickTimeVideo::readMetadata() () from /usr/lib/libexiv2.so.13
#11 0x00007fbe6774dbe5 in KExiv2Iface::KExiv2::load(QString const&) const () from /usr/lib/libkexiv2.so.11
#12 0x00007fbe67056bb6 in Digikam::DMetadata::load(QString const&) const () from /usr/lib/libdigikamcore.so.3
#13 0x00007fbe66a9a18f in Digikam::ImageScanner::loadFromDisk() () from /usr/lib/libdigikamdatabase.so.3
#14 0x00007fbe66a9a370 in Digikam::ImageScanner::newFile(int) () from /usr/lib/libdigikamdatabase.so.3
#15 0x00007fbe66a33066 in Digikam::CollectionScanner::scanNewFile(QFileInfo const&, int) () from /usr/lib/libdigikamdatabase.so.3
#16 0x00007fbe66a361df in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () from /usr/lib/libdigikamdatabase.so.3
#17 0x00007fbe66a36097 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () from /usr/lib/libdigikamdatabase.so.3
#18 0x00007fbe66a36097 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () from /usr/lib/libdigikamdatabase.so.3
#19 0x00007fbe66a36097 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () from /usr/lib/libdigikamdatabase.so.3
#20 0x00007fbe66a36aa3 in Digikam::CollectionScanner::scanAlbumRoot(Digikam::CollectionLocation const&) () from /usr/lib/libdigikamdatabase.so.3
#21 0x00007fbe66a3767d in Digikam::CollectionScanner::completeScan() () from /usr/lib/libdigikamdatabase.so.3
#22 0x00000000005d5b0f in ?? ()
#23 0x00007fbe63ee2d8f in ?? () from /usr/lib/libQtCore.so.4
#24 0x00007fbe611450a2 in start_thread () from /usr/lib/libpthread.so.0
#25 0x00007fbe63410d1d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fbe3e50b700 (LWP 5605)):
#0  0x00007fbe6340835d in poll () from /usr/lib/libc.so.6
#1  0x00007fbe5bae3584 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbe5bae368c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbe6400fb46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007fbe63fe1b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fbe63fe1e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fbe63ee06ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007fbe63fc32c3 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007fbe63ee2d8f in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fbe611450a2 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007fbe63410d1d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fbe69a5f980 (LWP 5602)):
#0  0x00007fbe6114904f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbe63ee3266 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fbe63ee295e in QThread::wait(unsigned long) () from /usr/lib/libQtCore.so.4
#3  0x00000000005d419b in ?? ()
#4  0x00000000005d4317 in ?? ()
#5  0x00007fbe63362e69 in __run_exit_handlers () from /usr/lib/libc.so.6
#6  0x00007fbe63362eb5 in exit () from /usr/lib/libc.so.6
#7  0x00007fbe64a48888 in ?? () from /usr/lib/libQtGui.so.4
#8  0x00007fbe65700330 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#9  0x00007fbe616de27e in _XIOError () from /usr/lib/libX11.so.6
#10 0x00007fbe616dbc6d in _XEventsQueued () from /usr/lib/libX11.so.6
#11 0x00007fbe616cdd3b in XEventsQueued () from /usr/lib/libX11.so.6
#12 0x00007fbe64a7ece7 in ?? () from /usr/lib/libQtGui.so.4
#13 0x00007fbe5bae2c2d in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#14 0x00007fbe5bae34a3 in ?? () from /usr/lib/libglib-2.0.so.0
#15 0x00007fbe5bae368c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#16 0x00007fbe6400fb25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#17 0x00007fbe64a7f216 in ?? () from /usr/lib/libQtGui.so.4
#18 0x00007fbe63fe1b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#19 0x00007fbe63fe1e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0x00000000005d1809 in ?? ()
#21 0x000000000051937a in ?? ()
#22 0x00007fbe63ffaefe in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#23 0x00007fbe649e20dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#24 0x00007fbe649e86a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007fbe6570177a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#26 0x00007fbe63fe2ebd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#27 0x00007fbe63fe5f0f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#28 0x00007fbe64010263 in ?? () from /usr/lib/libQtCore.so.4
#29 0x00007fbe5bae3296 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#30 0x00007fbe5bae35e8 in ?? () from /usr/lib/libglib-2.0.so.0
#31 0x00007fbe5bae368c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#32 0x00007fbe6400fb25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#33 0x00007fbe64a7f216 in ?? () from /usr/lib/libQtGui.so.4
#34 0x00007fbe63fe1b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#35 0x00007fbe63fe1e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007fbe63fe6f4b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#37 0x0000000000491ed3 in ?? ()
#38 0x00007fbe6334cb05 in __libc_start_main () from /usr/lib/libc.so.6
#39 0x00000000004944cf in _start ()

Possible duplicates by query: bug 331450.

Reported using DrKonqi
Comment 1 Teemu Rytilahti 2014-02-25 21:15:29 UTC

*** This bug has been marked as a duplicate of bug 331450 ***
Comment 2 caulier.gilles 2018-02-28 11:04:44 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.