Bug 331679 - Crash on startup
Summary: Crash on startup
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Video (show other bugs)
Version: 3.5.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-03-02 13:33 UTC by kozaki
Modified: 2017-08-11 07:13 UTC (History)
3 users (show)

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


Attachments
Full Crash report (as per http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports ) (188.20 KB, text/plain)
2014-03-02 13:45 UTC, kozaki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kozaki 2014-03-02 13:33:04 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.12.2
Qt Version: 4.8.5
Operating System: Linux 3.12.13-1-ck x86_64
Distribution: "Arch Linux"

-- Information about the crash:
- What I was doing when the application crashed:
Booted the system, then opened Firefox, then started Digikam.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Aborted
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/kozaki/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/kozaki/.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 0x7fd7634f3980 (LWP 1133))]

Thread 5 (Thread 0x7fd73736f700 (LWP 1137)):
[KCrash Handler]
#5  0x00007fd75ce07389 in raise () from /usr/lib/libc.so.6
#6  0x00007fd75ce08788 in abort () from /usr/lib/libc.so.6
#7  0x00007fd75ce45204 in __libc_message () from /usr/lib/libc.so.6
#8  0x00007fd75ce4a9ae in malloc_printerr () from /usr/lib/libc.so.6
#9  0x00007fd75ce4b6b6 in _int_free () from /usr/lib/libc.so.6
#10 0x00007fd759024b1d in Exiv2::RiffVideo::infoTagsHandler() () from /usr/lib/libexiv2.so.13
#11 0x00007fd75902cf2f in Exiv2::RiffVideo::decodeBlock() () from /usr/lib/libexiv2.so.13
#12 0x00007fd75902cb78 in Exiv2::RiffVideo::tagDecoder(Exiv2::DataBuf&, unsigned long) () from /usr/lib/libexiv2.so.13
#13 0x00007fd75902cf2f in Exiv2::RiffVideo::decodeBlock() () from /usr/lib/libexiv2.so.13
#14 0x00007fd75902d320 in Exiv2::RiffVideo::readMetadata() () from /usr/lib/libexiv2.so.13
#15 0x00007fd7611f4be5 in KExiv2Iface::KExiv2::load(QString const&) const () from /usr/lib/libkexiv2.so.11
#16 0x00007fd760afdbb6 in Digikam::DMetadata::load(QString const&) const () from /usr/lib/libdigikamcore.so.3
#17 0x00007fd76054118f in Digikam::ImageScanner::loadFromDisk() () from /usr/lib/libdigikamdatabase.so.3
#18 0x00007fd760541370 in Digikam::ImageScanner::newFile(int) () from /usr/lib/libdigikamdatabase.so.3
#19 0x00007fd7604da066 in Digikam::CollectionScanner::scanNewFile(QFileInfo const&, int) () from /usr/lib/libdigikamdatabase.so.3
#20 0x00007fd7604dd1df in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () from /usr/lib/libdigikamdatabase.so.3
#21 0x00007fd7604dd097 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () from /usr/lib/libdigikamdatabase.so.3
#22 0x00007fd7604dd097 in Digikam::CollectionScanner::scanAlbum(Digikam::CollectionLocation const&, QString const&) () from /usr/lib/libdigikamdatabase.so.3
#23 0x00007fd7604ddaa3 in Digikam::CollectionScanner::scanAlbumRoot(Digikam::CollectionLocation const&) () from /usr/lib/libdigikamdatabase.so.3
#24 0x00007fd7604de67d in Digikam::CollectionScanner::completeScan() () from /usr/lib/libdigikamdatabase.so.3
#25 0x00000000005d5b0f in ?? ()
#26 0x00007fd75d989d8f in ?? () from /usr/lib/libQtCore.so.4
#27 0x00007fd75abec0a2 in start_thread () from /usr/lib/libpthread.so.0
#28 0x00007fd75ceb7d1d in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7fd736b6e700 (LWP 1138)):
#0  0x00007fd75abee2c7 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
#1  0x00007fd7555ca271 in g_mutex_lock () from /usr/lib/libglib-2.0.so.0
#2  0x00007fd755589c39 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#3  0x00007fd75558a4a3 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007fd75558a68c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007fd75dab6b46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fd75da88b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007fd75da88e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007fd75d9876ef in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0x00007fd75da6a2c3 in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007fd75d989d8f in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007fd75abec0a2 in start_thread () from /usr/lib/libpthread.so.0
#12 0x00007fd75ceb7d1d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fd71eb16700 (LWP 1179)):
#0  0x00007fd755589b86 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#1  0x00007fd75558a4a3 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fd75558a68c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fd75dab6b46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007fd75da88b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fd75da88e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fd760b77c63 in ?? () from /usr/lib/libdigikamcore.so.3
#7  0x00007fd75d97d84e in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007fd75d989d8f in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fd75abec0a2 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007fd75ceb7d1d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fd71d726700 (LWP 1180)):
#0  0x00007fd75abf03f8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fd75d98a244 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fd760b24db8 in Digikam::DatabaseCoreBackendPrivate::checkRetrySQLiteLockError(int) () from /usr/lib/libdigikamcore.so.3
#3  0x00007fd760b258c0 in Digikam::DatabaseCoreBackend::queryErrorHandling(Digikam::SqlQuery&, int) () from /usr/lib/libdigikamcore.so.3
#4  0x00007fd760b25b35 in Digikam::DatabaseCoreBackend::exec(Digikam::SqlQuery&) () from /usr/lib/libdigikamcore.so.3
#5  0x00007fd760b25bcc in Digikam::DatabaseCoreBackend::execQuery(Digikam::SqlQuery&, QVariant const&) () from /usr/lib/libdigikamcore.so.3
#6  0x00007fd760b26c70 in Digikam::DatabaseCoreBackend::execQuery(QString const&, QVariant const&) () from /usr/lib/libdigikamcore.so.3
#7  0x00007fd760b26cb9 in Digikam::DatabaseCoreBackend::execSql(QString const&, QVariant const&, QList<QVariant>*, QVariant*) () from /usr/lib/libdigikamcore.so.3
#8  0x00007fd7604bd880 in Digikam::AlbumDB::getItemTagIDs(long long) () from /usr/lib/libdigikamdatabase.so.3
#9  0x00007fd760508687 in Digikam::ImageInfo::tagIds() const () from /usr/lib/libdigikamdatabase.so.3
#10 0x00007fd7605a252e in Digikam::VersionImageFilterSettings::matches(Digikam::ImageInfo const&) const () from /usr/lib/libdigikamdatabase.so.3
#11 0x00007fd76059e4ad in Digikam::ImageFilterModelFilterer::process(Digikam::ImageFilterModelTodoPackage) () from /usr/lib/libdigikamdatabase.so.3
#12 0x00007fd76059c94e in ?? () from /usr/lib/libdigikamdatabase.so.3
#13 0x00007fd75daa1efe in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#14 0x00007fd75e4890dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#15 0x00007fd75e48f6a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007fd75f1a877a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#17 0x00007fd75da89ebd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#18 0x00007fd75da8cf0f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#19 0x00007fd75dab7263 in ?? () from /usr/lib/libQtCore.so.4
#20 0x00007fd75558a296 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#21 0x00007fd75558a5e8 in ?? () from /usr/lib/libglib-2.0.so.0
#22 0x00007fd75558a68c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#23 0x00007fd75dab6b46 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0x00007fd75da88b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0x00007fd75da88e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0x00007fd760b77c63 in ?? () from /usr/lib/libdigikamcore.so.3
#27 0x00007fd75d97d84e in ?? () from /usr/lib/libQtCore.so.4
#28 0x00007fd75d989d8f in ?? () from /usr/lib/libQtCore.so.4
#29 0x00007fd75abec0a2 in start_thread () from /usr/lib/libpthread.so.0
#30 0x00007fd75ceb7d1d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fd7634f3980 (LWP 1133)):
#0  0x00007fd75abf004f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fd75d98a266 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007fd75d97d262 in ?? () from /usr/lib/libQtCore.so.4
#3  0x00007fd75d97e605 in QThreadPool::~QThreadPool() () from /usr/lib/libQtCore.so.4
#4  0x00007fd75d97e639 in QThreadPool::~QThreadPool() () from /usr/lib/libQtCore.so.4
#5  0x00007fd75daa0438 in QObjectPrivate::deleteChildren() () from /usr/lib/libQtCore.so.4
#6  0x00007fd75daa29df in QObject::~QObject() () from /usr/lib/libQtCore.so.4
#7  0x00007fd760b77557 in ?? () from /usr/lib/libdigikamcore.so.3
#8  0x00007fd75ce09e69 in __run_exit_handlers () from /usr/lib/libc.so.6
#9  0x00007fd75ce09eb5 in exit () from /usr/lib/libc.so.6
#10 0x00007fd74c921ca4 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#11 0x00007fd75f1a7330 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#12 0x00007fd75b18527e in _XIOError () from /usr/lib/libX11.so.6
#13 0x00007fd75b182c6d in _XEventsQueued () from /usr/lib/libX11.so.6
#14 0x00007fd75b174d3b in XEventsQueued () from /usr/lib/libX11.so.6
#15 0x00007fd75e525c8c in ?? () from /usr/lib/libQtGui.so.4
#16 0x00007fd75558a001 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#17 0x00007fd75558a51b in ?? () from /usr/lib/libglib-2.0.so.0
#18 0x00007fd75558a68c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#19 0x00007fd75dab6b25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#20 0x00007fd75e526216 in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007fd75da88b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#22 0x00007fd75da88e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0x00000000005d1809 in ?? ()
#24 0x000000000051937a in ?? ()
#25 0x00007fd75daa1efe in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#26 0x00007fd75e4890dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0x00007fd75e48f6a0 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#28 0x00007fd75f1a877a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#29 0x00007fd75da89ebd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#30 0x00007fd75da8cf0f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#31 0x00007fd75dab7263 in ?? () from /usr/lib/libQtCore.so.4
#32 0x00007fd75558a296 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0x00007fd75558a5e8 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0x00007fd75558a68c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0x00007fd75dab6b25 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#36 0x00007fd75e526216 in ?? () from /usr/lib/libQtGui.so.4
#37 0x00007fd75da88b1f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0x00007fd75da88e15 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0x00007fd75da8df4b in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#40 0x0000000000491ed3 in ?? ()
#41 0x00007fd75cdf3b05 in __libc_start_main () from /usr/lib/libc.so.6
#42 0x00000000004944cf in _start ()

The reporter indicates this bug may be a duplicate of or related to bug 320953.

Reported using DrKonqi
Comment 1 kozaki 2014-03-02 13:45:15 UTC
Created attachment 85383 [details]
Full Crash report (as per http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports )

Moving the thumbnail DB before starting Digikam does not change the issue: keep crashin. i.e. not like for the previous bug (suggested as a link).

Last things I did before Digikam started to consistently crash on startup yesterday: 
- I copied / added / removed a few pics from both within Digikam and from the file manager ; maybe one of the (photo library's) directories too
- I tagged a few pics
- I edited and saved a few pics 
- and made a couple of researches from within Digikam (this realy is the last thing I did.

Am a long time Digikam user (ten years or something :))
Comment 2 caulier.gilles 2014-03-02 13:48:04 UTC
Crash appears in Exiv2 shared lib about video file metadata parser.

Please report this problem to Exiv2 project

Gilles Caulier
Comment 3 kozaki 2014-03-02 16:17:49 UTC
Thank you Gilles Caulier
Digikam runs fine if I move the videos folder out of the library.
Comment 4 caulier.gilles 2014-06-05 05:04:27 UTC
*** Bug 335816 has been marked as a duplicate of this bug. ***
Comment 5 caulier.gilles 2014-06-11 20:52:25 UTC
Git commit 8a8dc535d504b70776677b933ac761bba0f7a4ae by Gilles Caulier.
Committed on 11/06/2014 at 20:51.
Pushed by cgilles into branch 'master'.

use a better C++ exception wrapper to handle non Exiv2 exceptions (as pure C++ one)
FIXED-IN: 4.1.0

M  +7    -7    CMakeLists.txt
M  +1    -1    libkexiv2/CMakeLists.txt
M  +14   -1    libkexiv2/kexiv2.cpp
M  +19   -1    libkexiv2/kexiv2_p.cpp
M  +1    -1    libkexiv2/kexiv2_p.h
M  +6    -2    libkexiv2/kexiv2comments.cpp
M  +1    -1    libkexiv2/kexiv2data.h
M  +110  -2    libkexiv2/kexiv2exif.cpp
M  +25   -1    libkexiv2/kexiv2gps.cpp
M  +45   -1    libkexiv2/kexiv2image.cpp
M  +84   -0    libkexiv2/kexiv2iptc.cpp
M  +14   -1    libkexiv2/kexiv2previews.cpp
M  +1    -1    libkexiv2/kexiv2previews.h
M  +93   -1    libkexiv2/kexiv2xmp.cpp

http://commits.kde.org/libkexiv2/8a8dc535d504b70776677b933ac761bba0f7a4ae
Comment 6 caulier.gilles 2014-06-11 20:56:36 UTC
See Exiv2 bug report here :

http://dev.exiv2.org/issues/961

Gilles Caulier