Bug 333356

Summary: crash on attemp to change modified date to created date
Product: [Applications] digikam Reporter: Jan Baarda <j.baarda1>
Component: Database-VersioningAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR Keywords: drkonqi
Version: 3.4.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.3.0
Sentry Crash Report:

Description Jan Baarda 2014-04-12 18:04:22 UTC
Application: digikam (3.4.0)
KDE Platform Version: 4.11.5
Qt Version: 4.8.4
Operating System: Linux 3.11.0-19-generic x86_64
Distribution: Ubuntu 13.10

-- Information about the crash:
- What I was doing when the application crashed:

trying to change for about 800+ pictures the modified date by using ádjust time & date. OS WAS uBUNTU 13.10

- Unusual behavior I noticed:
digiKam project frame went grey.

The crash can be reproduced sometimes.

-- Backtrace:
Application: digiKam (digikam), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
[Current thread is 1 (Thread 0x7ff0931cba80 (LWP 6827))]

Thread 10 (Thread 0x7ff0701a5700 (LWP 6831)):
#0  0x00007ff08cb22f7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ff075c5b198 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#2  0x00007ff087e7bf6e in start_thread (arg=0x7ff0701a5700) at pthread_create.c:311
#3  0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 9 (Thread 0x7ff06b4a7700 (LWP 6832)):
#0  0x00007ff08cb22f7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ff08544e6a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff08544eb0a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff076fbab66 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ff0854730f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff087e7bf6e in start_thread (arg=0x7ff06b4a7700) at pthread_create.c:311
#6  0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 8 (Thread 0x7ff06a3c1700 (LWP 6833)):
#0  0x00007ff08cb216bd in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ff08548d670 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff08544e1cc in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff08544e63b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff08544e7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff08544e7f9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007ff0854730f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007ff087e7bf6e in start_thread (arg=0x7ff06a3c1700) at pthread_create.c:311
#8  0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7ff0596aa700 (LWP 6837)):
[KCrash Handler]
#5  0x00007ff08ca6bf77 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#6  0x00007ff08ca6f5e8 in __GI_abort () at abort.c:90
#7  0x00007ff08d906912 in qt_message_output(QtMsgType, char const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007ff08d906c79 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ff08d907484 in qFatal(char const*, ...) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ff0905be41f in Digikam::DImageHistory::DImageHistory() () from /usr/lib/digikam/libdigikamcore.so.3
#11 0x00007ff0905c209e in Digikam::DImageHistory::fromXml(QString const&) () from /usr/lib/digikam/libdigikamcore.so.3
#12 0x00007ff09017c9d4 in Digikam::ImageScanner::resolveImageHistory(long long, QString const&, QList<long long>*) () from /usr/lib/digikam/libdigikamdatabase.so.3
#13 0x00007ff09017cdcf in Digikam::ImageScanner::resolveImageHistory(long long, QList<long long>*) () from /usr/lib/digikam/libdigikamdatabase.so.3
#14 0x00007ff090119b05 in Digikam::CollectionScanner::historyScanningStage2(QList<long long> const&) () from /usr/lib/digikam/libdigikamdatabase.so.3
#15 0x00007ff090119de1 in Digikam::CollectionScanner::finishHistoryScanning() () from /usr/lib/digikam/libdigikamdatabase.so.3
#16 0x00007ff090120245 in Digikam::CollectionScanner::partialScan(QString const&, QString const&) () from /usr/lib/digikam/libdigikamdatabase.so.3
#17 0x00007ff09012073c in Digikam::CollectionScanner::partialScan(QString const&) () from /usr/lib/digikam/libdigikamdatabase.so.3
#18 0x00000000005d5bb9 in ?? ()
#19 0x00007ff08d910f2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007ff087e7bf6e in start_thread (arg=0x7ff0596aa700) at pthread_create.c:311
#21 0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7ff058ea9700 (LWP 6838)):
#0  0x00007ff08548e0ed in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ff08548e399 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff08544dc17 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff08544e5c3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff08544e7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff08da3da76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007ff08da0f5ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007ff08da0f8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007ff08d90e88f in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ff08d9f0d13 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ff08d910f2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007ff087e7bf6e in start_thread (arg=0x7ff058ea9700) at pthread_create.c:311
#12 0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7ff03adb9700 (LWP 6894)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ff08d911406 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007ff090bdc5b1 in KDcrawIface::RActionThreadBase::run() () from /usr/lib/libkdcraw.so.22
#3  0x00007ff08d910f2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007ff087e7bf6e in start_thread (arg=0x7ff03adb9700) at pthread_create.c:311
#5  0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7fefeb61b700 (LWP 6895)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ff08d911406 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007ff091838e6c in ?? () from /usr/lib/libthreadweaver.so.4
#3  0x00007ff09183b903 in ?? () from /usr/lib/libthreadweaver.so.4
#4  0x00007ff09183a61f in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#5  0x00007ff08d910f2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007ff087e7bf6e in start_thread (arg=0x7fefeb61b700) at pthread_create.c:311
#7  0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7ff03dd79700 (LWP 6897)):
#0  0x00007ff08544dd54 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ff08544e5c3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff08544e7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff08da3da76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007ff08da0f5ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007ff08da0f8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007ff09078a813 in ?? () from /usr/lib/digikam/libdigikamcore.so.3
#7  0x00007ff08d9047ae in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007ff08d910f2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ff087e7bf6e in start_thread (arg=0x7ff03dd79700) at pthread_create.c:311
#10 0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7ff069bc0700 (LWP 6918)):
#0  0x00007ff087e7e044 in __GI___pthread_mutex_lock (mutex=0x7feffc026cf0) at pthread_mutex_lock.c:92
#1  0x00007ff08548e3a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff08544d7f0 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff08544e565 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff08544e7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ff08da3da76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007ff08da0f5ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007ff08da0f8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007ff09078a813 in ?? () from /usr/lib/digikam/libdigikamcore.so.3
#9  0x00007ff08d9047ae in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007ff08d910f2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007ff087e7bf6e in start_thread (arg=0x7ff069bc0700) at pthread_create.c:311
#12 0x00007ff08cb2f9cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7ff0931cba80 (LWP 6827)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ff08d911406 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007ff08d9041c2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007ff08d905565 in QThreadPool::~QThreadPool() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007ff08d905599 in QThreadPool::~QThreadPool() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007ff08da27308 in QObjectPrivate::deleteChildren() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007ff08da298af in QObject::~QObject() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007ff09078a107 in ?? () from /usr/lib/digikam/libdigikamcore.so.3
#8  0x00007ff08ca71071 in __run_exit_handlers (status=1, listp=0x7ff08cdf66a8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#9  0x00007ff08ca710f5 in __GI_exit (status=<optimized out>) at exit.c:99
#10 0x00007ff07d0582e4 in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#11 0x00007ff08f10a620 in KApplication::xioErrhandler(_XDisplay*) () from /usr/lib/libkdeui.so.5
#12 0x00007ff08b02964e in _XIOError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#13 0x00007ff08b0277c5 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#14 0x00007ff08b01db05 in XQueryPointer () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007ff08e4844f8 in QCursor::pos() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007ff08e900fe2 in QAbstractItemView::verticalScrollbarValueChanged(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007ff08da24a58 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ff08ea4fbce in QAbstractSlider::valueChanged(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007ff08e93db2a in QTreeView::scrollTo(QModelIndex const&, QAbstractItemView::ScrollHint) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007ff08e8fb8f2 in QAbstractItemView::currentChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#21 0x00007ff08e9418f6 in QTreeView::currentChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007ff08da24a58 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007ff08e949c7a in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#24 0x00007ff08e949d5d in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007ff08e8f5cca in QAbstractItemView::setCurrentIndex(QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007ff08e969596 in QTreeWidget::setCurrentItem(QTreeWidgetItem*, int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x0000000000732862 in ?? ()
#28 0x00000000007100d3 in ?? ()
#29 0x00000000007104a3 in ?? ()
#30 0x0000000000713b81 in ?? ()
#31 0x00007ff08da24a58 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x0000000000714ffb in ?? ()
#33 0x00007ff08da28dce in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#34 0x00007ff08e401dfc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007ff08e408470 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#36 0x00007ff08f10ba6a in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#37 0x00007ff08da108bd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#38 0x00007ff08da13e1f in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#39 0x00007ff08da3e073 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#40 0x00007ff08544e3b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007ff08544e708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007ff08544e7ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007ff08da3da55 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#44 0x00007ff08e4a39d6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#45 0x00007ff08da0f5ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#46 0x00007ff08da0f8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#47 0x00007ff08da14e5b in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#48 0x0000000000491ef3 in ?? ()
#49 0x00007ff08ca56de5 in __libc_start_main (main=0x490ca0, argc=5, ubp_av=0x7fff7e202168, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff7e202158) at libc-start.c:260
#50 0x00000000004944ef in _start ()

Possible duplicates by query: bug 300277.

Reported using DrKonqi
Comment 1 Marcel Wiesweg 2014-04-18 13:30:09 UTC
Having the line numbers (installing the -debug packages with debug information) and output of the qFatal() on the console may be helpful.
Assuming the location in thread 7 is indeed the constructor without arguments

DImageHistory::DImageHistory()
    : d(*imageHistoryPrivSharedNull)
{
}

I dont have too many ideas what could go wrong
Comment 2 caulier.gilles 2014-05-16 07:29:52 UTC
digiKam 4.0.0 is out :

http://www.digikam.org/node/713

Please check if this entry still valid with this new version.

Thanks in advance

Gilles Caulier
Comment 3 caulier.gilles 2014-08-30 22:25:05 UTC
Jan,

This file still valid using last digiKam 4.2.0 ?

Gilles Caulier
Comment 4 Jan Baarda 2014-08-31 16:32:01 UTC
Gilles,

I think it's solved. could not reproduce error anymore

Thanks,
Jan Baarda

Op 31-08-14 om 00:25 schreef Gilles Caulier:
> https://bugs.kde.org/show_bug.cgi?id=333356
>
> Gilles Caulier <caulier.gilles@gmail.com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|---                         |WAITINGFORINFO
>               Status|UNCONFIRMED                 |RESOLVED
>
> --- Comment #3 from Gilles Caulier <caulier.gilles@gmail.com> ---
> Jan,
>
> This file still valid using last digiKam 4.2.0 ?
>
> Gilles Caulier
>