Bug 329091 - MySQL : needs to set "max-allowed-packet" server settings from 4.096 to 16.777.216 to prevent Maintenance tool crash
Summary: MySQL : needs to set "max-allowed-packet" server settings from 4.096 to 16.77...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-Database (show other bugs)
Version: 5.0.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-12-21 19:42 UTC by uwe.haider
Modified: 2018-10-10 20:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description uwe.haider 2013-12-21 19:42:18 UTC
Application: digikam (3.5.0)
KDE Platform Version: 4.12.0 (Compiled from sources)
Qt Version: 4.8.5
Operating System: Linux 3.10.17-gentooy x86_64
Distribution: "Gentoo Base System release 2.2"

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

I've migrated from SQLite to mariadb. Now I try to maintenance the data within digikam. I have some albums marked for maintenance. The process runs well until making preview-thumbnails. While doing so, digikam crashes. This happens every time I try. It happens also if I mark "all albums" for maintenance.
I'm running Gentoo with e17.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:164
[Current thread is 1 (Thread 0x7f3038429800 (LWP 1779))]

Thread 10 (Thread 0x7f30173cb700 (LWP 1781)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:164
#1  0x00007f3032b4c853 in wait (time=18446744073709551615, this=0xf3fd90) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xf3fc98, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00000000005df739 in Digikam::ScanController::run (this=0xf3fa30) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/digikam/database/scancontroller.cpp:725
#4  0x00007f3032b4c2bc in QThreadPrivate::start (arg=0xf3fa30) at thread/qthread_unix.cpp:338
#5  0x00007f302fcaf01a in start_thread (arg=0x7f30173cb700) at pthread_create.c:308
#6  0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 9 (Thread 0x7f3016bca700 (LWP 1782)):
#0  __GI___pthread_mutex_lock (mutex=0x7f3008000a60) at pthread_mutex_lock.c:67
#1  0x00007f302a80a8d1 in g_mutex_lock (mutex=mutex@entry=0x7f30080009a0) at /var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gthread-posix.c:210
#2  0x00007f302a7ca7d9 in g_main_context_prepare (context=context@entry=0x7f30080009a0, priority=priority@entry=0x7f3016bc9c58) at /var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3330
#3  0x00007f302a7cb01e in g_main_context_iterate (context=context@entry=0x7f30080009a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3681
#4  0x00007f302a7cb22c in g_main_context_iteration (context=0x7f30080009a0, may_block=1) at /var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3762
#5  0x00007f3032c766ce in QEventDispatcherGlib::processEvents (this=0x7f30080008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#6  0x00007f3032c4684f in QEventLoop::processEvents (this=this@entry=0x7f3016bc9dc0, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f3032c46b30 in QEventLoop::exec (this=0x7f3016bc9dc0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f3032b49b60 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:536
#9  0x00007f3032c2863f in QInotifyFileSystemWatcherEngine::run (this=0xf78eb0) at io/qfilesystemwatcher_inotify.cpp:256
#10 0x00007f3032b4c2bc in QThreadPrivate::start (arg=0xf78eb0) at thread/qthread_unix.cpp:338
#11 0x00007f302fcaf01a in start_thread (arg=0x7f3016bca700) at pthread_create.c:308
#12 0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 8 (Thread 0x7f30163c9700 (LWP 1919)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:164
#1  0x00007f3032b4c853 in wait (time=18446744073709551615, this=0xf89a00) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xe38be8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3035a80a99 in Digikam::ParkingThread::run (this=0xe38bd0) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threads/threadmanager.cpp:119
#4  0x00007f3032b4c2bc in QThreadPrivate::start (arg=0xe38bd0) at thread/qthread_unix.cpp:338
#5  0x00007f302fcaf01a in start_thread (arg=0x7f30163c9700) at pthread_create.c:308
#6  0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 7 (Thread 0x7f2ff9f95700 (LWP 2331)):
#0  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007f3032b4adcc in _q_futex (timeout=0x0, val=2, op=0, addr=0xde09fb0, addr2=<optimized out>, val2=<optimized out>) at thread/qmutex_unix.cpp:99
#2  QMutexPrivate::wait (this=0xde09fb0, timeout=<optimized out>) at thread/qmutex_unix.cpp:113
#3  0x00007f3032b470b5 in QMutex::lockInternal (this=<optimized out>) at thread/qmutex.cpp:450
#4  0x00007f3035a74109 in lockInline (this=0xde09bd0) at /usr/include/qt4/QtCore/qmutex.h:190
#5  QMutexLocker (m=0xde09bd0, this=<optimized out>) at /usr/include/qt4/QtCore/qmutex.h:109
#6  Digikam::ThumbnailImageCatcher::slotThumbnailLoaded (this=0xde09ed0, description=..., image=...) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:1135
#7  0x00007f3032c5c45f in QMetaObject::activate (sender=0x2087690, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7f2ff9f94aa0) at kernel/qobject.cpp:3547
#8  0x00007f3035a5530a in Digikam::LoadSaveThread::signalThumbnailLoaded (this=<optimized out>, _t1=..., _t2=...) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0_build/digikam/loadsavethread.moc:174
#9  0x00007f3035a751db in Digikam::ThumbnailLoadThread::thumbnailLoaded (this=0x2087690, loadingDescription=..., img=...) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:684
#10 0x00007f3035a7c057 in Digikam::ThumbnailLoadingTask::execute (this=0x7f2b8cd02e50) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailtask.cpp:229
#11 0x00007f3035a55de6 in Digikam::LoadSaveThread::run (this=0x2087690) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/loadsavethread.cpp:136
#12 0x00007f3035a82ace in Digikam::DynamicThread::DynamicThreadPriv::run (this=0x2082120) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threads/dynamicthread.cpp:186
#13 0x00007f3032b3fd9b in QThreadPoolThread::run (this=0x29bb6d0) at concurrent/qthreadpool.cpp:107
#14 0x00007f3032b4c2bc in QThreadPrivate::start (arg=0x29bb6d0) at thread/qthread_unix.cpp:338
#15 0x00007f302fcaf01a in start_thread (arg=0x7f2ff9f95700) at pthread_create.c:308
#16 0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 6 (Thread 0x7f2fa3fff700 (LWP 2347)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:164
#1  0x00007f3032b4c853 in wait (time=18446744073709551615, this=0xb6de990) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xaf1d940, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3035eda907 in KDcrawIface::RActionThreadBase::run (this=0xaf3ac60) at /var/tmp/portage/kde-base/libkdcraw-4.12.49.9999/work/libkdcraw-4.12.49.9999/libkdcraw/ractionthreadbase.cpp:138
#4  0x00007f3032b4c2bc in QThreadPrivate::start (arg=0xaf3ac60) at thread/qthread_unix.cpp:338
#5  0x00007f302fcaf01a in start_thread (arg=0x7f2fa3fff700) at pthread_create.c:308
#6  0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 5 (Thread 0x7f301546c700 (LWP 2348)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:164
#1  0x00007f3032b4c853 in wait (time=18446744073709551615, this=0xde0a800) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xde0a3f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3035a73864 in Digikam::ThumbnailImageCatcher::waitForThumbnails (this=0xde0a6f0) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:1187
#4  0x0000000000525d86 in Digikam::ThumbsTask::run (this=0xde0a570) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/utilities/maintenance/thumbstask.cpp:84
#5  0x00007f3036a8591c in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f301546bd90, th=th@entry=0x7f2f900199e0, job=job@entry=0xde0a570) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Job.cpp:106
#6  0x00007f3036a85a91 in ThreadWeaver::Job::execute (this=0xde0a570, th=0x7f2f900199e0) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Job.cpp:135
#7  0x00007f3036a87b7b in ThreadWeaver::JobCollectionJobRunner::execute (this=0xde0aa60, t=0x7f2f900199e0) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/JobCollection.cpp:82
#8  0x00007f3036a851bb in ThreadWeaver::Thread::run (this=0x7f2f900199e0) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Thread.cpp:108
#9  0x00007f3032b4c2bc in QThreadPrivate::start (arg=0x7f2f900199e0) at thread/qthread_unix.cpp:338
#10 0x00007f302fcaf01a in start_thread (arg=0x7f301546c700) at pthread_create.c:308
#11 0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 4 (Thread 0x7f2ff7f91700 (LWP 2349)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:164
#1  0x00007f3032b4c853 in wait (time=18446744073709551615, this=0xcc9d020) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xafd4160, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3035a73864 in Digikam::ThumbnailImageCatcher::waitForThumbnails (this=0xb029460) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:1187
#4  0x0000000000525d86 in Digikam::ThumbsTask::run (this=0xb9b57f0) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/utilities/maintenance/thumbstask.cpp:84
#5  0x00007f3036a8591c in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f2ff7f90d90, th=th@entry=0x7f2fe4019110, job=job@entry=0xb9b57f0) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Job.cpp:106
#6  0x00007f3036a85a91 in ThreadWeaver::Job::execute (this=0xb9b57f0, th=0x7f2fe4019110) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Job.cpp:135
#7  0x00007f3036a87b7b in ThreadWeaver::JobCollectionJobRunner::execute (this=0xbae56e0, t=0x7f2fe4019110) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/JobCollection.cpp:82
#8  0x00007f3036a851bb in ThreadWeaver::Thread::run (this=0x7f2fe4019110) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Thread.cpp:108
#9  0x00007f3032b4c2bc in QThreadPrivate::start (arg=0x7f2fe4019110) at thread/qthread_unix.cpp:338
#10 0x00007f302fcaf01a in start_thread (arg=0x7f2ff7f91700) at pthread_create.c:308
#11 0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 3 (Thread 0x7f2ffac71700 (LWP 2350)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:164
#1  0x00007f3032b4c853 in wait (time=18446744073709551615, this=0xcbd8b80) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x20fdba0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3035a73864 in Digikam::ThumbnailImageCatcher::waitForThumbnails (this=0x29bba10) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:1187
#4  0x0000000000525d86 in Digikam::ThumbsTask::run (this=0xcc83370) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/utilities/maintenance/thumbstask.cpp:84
#5  0x00007f3036a8591c in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f2ffac70d90, th=th@entry=0x7f2fe4001220, job=job@entry=0xcc83370) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Job.cpp:106
#6  0x00007f3036a85a91 in ThreadWeaver::Job::execute (this=0xcc83370, th=0x7f2fe4001220) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Job.cpp:135
#7  0x00007f3036a87b7b in ThreadWeaver::JobCollectionJobRunner::execute (this=0xb9b07e0, t=0x7f2fe4001220) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/JobCollection.cpp:82
#8  0x00007f3036a851bb in ThreadWeaver::Thread::run (this=0x7f2fe4001220) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Thread.cpp:108
#9  0x00007f3032b4c2bc in QThreadPrivate::start (arg=0x7f2fe4001220) at thread/qthread_unix.cpp:338
#10 0x00007f302fcaf01a in start_thread (arg=0x7f2ffac71700) at pthread_create.c:308
#11 0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 2 (Thread 0x7f2ff9794700 (LWP 2351)):
[KCrash Handler]
#6  0x00007f3031cba715 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:63
#7  0x00007f3031cbbb87 in __GI_abort () at abort.c:90
#8  0x00007f3031cf8775 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f3031ded158 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:197
#9  0x00007f3031cfe4fd in malloc_printerr (action=3, str=0x7f3031ded2b0 "double free or corruption (out)", ptr=<optimized out>) at malloc.c:4949
#10 0x00007f3035a71e08 in node_destruct (to=0x7f2cd58fbeb8, from=0x7f2cd58efdc8, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:431
#11 QList<Digikam::ThumbnailImageCatcher::Private::CatcherResult>::free (data=0x7f2cd58efdb0, this=<optimized out>) at /usr/include/qt4/QtCore/qlist.h:757
#12 0x00007f3035a7add0 in operator= (l=..., this=0xde09bc8) at /usr/include/qt4/QtCore/qlist.h:443
#13 QList<Digikam::ThumbnailImageCatcher::Private::CatcherResult>::clear (this=0xde09bc8) at /usr/include/qt4/QtCore/qlist.h:766
#14 0x00007f3035a73849 in Digikam::ThumbnailImageCatcher::waitForThumbnails (this=0xde09ed0) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:1182
#15 0x0000000000525d86 in Digikam::ThumbsTask::run (this=0xde09d50) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/utilities/maintenance/thumbstask.cpp:84
#16 0x00007f3036a8591c in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x7f2ff9793d90, th=th@entry=0x7f2fe40121d0, job=job@entry=0xde09d50) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Job.cpp:106
#17 0x00007f3036a85a91 in ThreadWeaver::Job::execute (this=0xde09d50, th=0x7f2fe40121d0) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Job.cpp:135
#18 0x00007f3036a87b7b in ThreadWeaver::JobCollectionJobRunner::execute (this=0xde0a240, t=0x7f2fe40121d0) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/JobCollection.cpp:82
#19 0x00007f3036a851bb in ThreadWeaver::Thread::run (this=0x7f2fe40121d0) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/threadweaver/Weaver/Thread.cpp:108
#20 0x00007f3032b4c2bc in QThreadPrivate::start (arg=0x7f2fe40121d0) at thread/qthread_unix.cpp:338
#21 0x00007f302fcaf01a in start_thread (arg=0x7f2ff9794700) at pthread_create.c:308
#22 0x00007f3031d6be4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:114

Thread 1 (Thread 0x7f3038429800 (LWP 1779)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:164
#1  0x00007f3032b4c853 in wait (time=18446744073709551615, this=0x20821a0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2082150, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3035a820f8 in Digikam::DynamicThread::wait (this=this@entry=0x2087690, locker=...) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threads/dynamicthread.cpp:351
#4  0x00007f3035a822e0 in Digikam::DynamicThread::shutDown (this=0x2087690) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threads/dynamicthread.cpp:222
#5  0x00007f3035a57c50 in Digikam::ManagedLoadSaveThread::shutDown (this=0x2087690) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/managedloadsavethread.cpp:94
#6  0x00007f3035a71b0f in Digikam::ThumbnailLoadThread::~ThumbnailLoadThread (this=0x2087690, __in_chrg=<optimized out>) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:177
#7  0x00007f3035a71c69 in Digikam::ThumbnailLoadThread::~ThumbnailLoadThread (this=0x2087690, __in_chrg=<optimized out>) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/libs/threadimageio/thumbnailloadthread.cpp:180
#8  0x00007f3031cbd289 in __run_exit_handlers (status=1, listp=0x7f30320285c8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:77
#9  0x00007f3031cbd315 in __GI_exit (status=<optimized out>) at exit.c:99
#10 0x00007f30336da5e8 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:772
#11 0x00007f30343a4ac0 in KApplication::xioErrhandler (this=0x7fff5041a4c0, dpy=0xd66940) at /var/tmp/portage/kde-base/kdelibs-4.12.49.9999/work/kdelibs-4.12.49.9999/kdeui/kernel/kapplication.cpp:419
#12 0x00007f303024a3ae in _XIOError (dpy=dpy@entry=0xd66940) at /var/tmp/portage/x11-libs/libX11-1.6.2/work/libX11-1.6.2/src/XlibInt.c:1498
#13 0x00007f3030247ebd in _XEventsQueued (dpy=dpy@entry=0xd66940, mode=mode@entry=2) at /var/tmp/portage/x11-libs/libX11-1.6.2/work/libX11-1.6.2/src/xcb_io.c:366
#14 0x00007f30302394eb in XEventsQueued (dpy=0xd66940, mode=2) at /var/tmp/portage/x11-libs/libX11-1.6.2/work/libX11-1.6.2/src/Pending.c:43
#15 0x00007f303371063c in x11EventSourceCheck (s=0xd63e10) at kernel/qguieventdispatcher_glib.cpp:85
#16 0x00007f302a7cab58 in g_main_context_check (context=context@entry=0xd64270, max_priority=0, fds=fds@entry=0xa747640, n_fds=n_fds@entry=10) at /var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3545
#17 0x00007f302a7cb095 in g_main_context_iterate (context=context@entry=0xd64270, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3698
#18 0x00007f302a7cb22c in g_main_context_iteration (context=0xd64270, may_block=1) at /var/tmp/portage/dev-libs/glib-2.36.4-r1/work/glib-2.36.4/glib/gmain.c:3762
#19 0x00007f3032c766a4 in QEventDispatcherGlib::processEvents (this=0xd5ff20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#20 0x00007f3033710bc6 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#21 0x00007f3032c4684f in QEventLoop::processEvents (this=this@entry=0x7fff50419eb0, flags=...) at kernel/qeventloop.cpp:149
#22 0x00007f3032c46b30 in QEventLoop::exec (this=0x7fff50419eb0, flags=...) at kernel/qeventloop.cpp:204
#23 0x00007f3032c4bde8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#24 0x000000000049a19b in main (argc=5, argv=0x7fff5041a6f8) at /var/tmp/portage/media-gfx/digikam-3.5.0/work/digikam-3.5.0/core/digikam/main/main.cpp:235

Possible duplicates by query: bug 328917, bug 327905, bug 326794, bug 326586, bug 326570.

Reported using DrKonqi
Comment 1 caulier.gilles 2014-05-16 07:30:47 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 2 caulier.gilles 2014-08-08 08:32:11 UTC
We need a fresh feedback using last digiKam 4.2.0

Gilles Caulier
Comment 3 uwe.haider 2014-08-10 20:16:23 UTC
Sorry, can't help your request für testing in digikam 4.2. In Gentoo
repositories digikam 4.2 ships as "unstable" /masked.

As soon as I can update I will do so and report again...

Thanks for your help and interest.

best regards

Uwe Haider

Am Freitag, den 08.08.2014, 08:32 +0000 schrieb Gilles Caulier:
> https://bugs.kde.org/show_bug.cgi?id=329091
> 
> Gilles Caulier <caulier.gilles@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>          Resolution|---                         |WAITINGFORINFO
>              Status|UNCONFIRMED                 |RESOLVED
> 
> --- Comment #2 from Gilles Caulier <caulier.gilles@gmail.com> ---
> We need a fresh feedback using last digiKam 4.2.0
> 
> Gilles Caulier
>
Comment 4 uwe.haider 2014-09-03 20:34:20 UTC
ok, updated to digikam 4.2 and tested again...

First run of maintenance crashed again, but digikam was compiled without USE=debug so there was not enough info for drkonqi. I compiled digikam again with USE=debug and tested again -> no crash?!!
I have started digikam in terminal, so here is the last output:

digikam(21239)/digikam (core) Digikam::ThumbnailCreator::createThumbnail: Cannot create thumbnail for  "/home/uhai/Fotos/Webseiten/backup_1_0_13/templates/rhuk_solarflare_ii/images/header_short.jpg" 
digikam(21239)/digikam (core) Digikam::ThumbnailCreator::load: Thumbnail is null for  "/home/uhai/Fotos/Webseiten/backup_1_0_13/templates/rhuk_solarflare_ii/images/header_short.jpg" 
digikam(21239)/digikam (core) Digikam::DatabaseCoreBackend::prepareQuery: Prepare failed!
digikam(21239)/digikam (core) Digikam::DatabaseCoreBackendPrivate::debugOutputFailedQuery: Failure executing query:
 "SELECT modificationDate, fileSize, uniqueHash FROM Images WHERE id=?;" 
Error messages: "QMYSQL3: Anweisung kann nicht vorbereitet werden" "MySQL server has gone away" 2006 2 
Bound values:  ()
digikam(21239)/digikam (core) Digikam::DatabaseCoreBackend::prepareQuery: Prepare failed!
digikam(21239)/digikam (core) Digikam::DatabaseCoreBackendPrivate::debugOutputFailedQuery: Failure executing query:
 "SELECT id, type, modificationDate, orientationHint, data FROM UniqueHashes    INNER JOIN Thumbnails ON thumbId = id WHERE uniqueHash=? AND fileSize=?;" 
Error messages: "QMYSQL3: Anweisung kann nicht vorbereitet werden" "MySQL server has gone away" 2006 2 
Bound values:  ()
digikam(21239)/digikam (core) Digikam::DatabaseCoreBackend::prepareQuery: Prepare failed!
digikam(21239)/digikam (core) Digikam::DatabaseCoreBackendPrivate::debugOutputFailedQuery: Failure executing query:
 "SELECT modificationDate, fileSize, uniqueHash FROM Images WHERE id=?;" 
Error messages: "QMYSQL3: Anweisung kann nicht vorbereitet werden" "MySQL server has gone away" 2006 2 
Bound values:  ()
digikam(21239)/digikam (core) Digikam::DatabaseCoreBackend::prepareQuery: Prepare failed!
digikam(21239)/digikam (core) Digikam::DatabaseCoreBackendPrivate::debugOutputFailedQuery: Failure executing query:
 "SELECT id, type, modificationDate, orientationHint, data FROM UniqueHashes    INNER JOIN Thumbnails ON thumbId = id WHERE uniqueHash=? AND fileSize=?;" 
Error messages: "QMYSQL3: Anweisung kann nicht vorbereitet werden" "MySQL server has gone away" 2006 2 
Bound values:  ()

Digikam was still running after that and shows no more active jobs...

Two additional infos:

1) My collection is on an external USB-Drive with 320 GB with no space left. I will try a new solution (NAS-Server)
2) Every maintenance-job is running a few hours... It tooks time to test - please stand by :-)
------
This are the components after the update:
digiKam version 4.2.0
Exiv2 kann in JP2 speichern: Ja
Exiv2 kann in JPEG speichern: Ja
Exiv2 kann in PGF speichern: Ja
Exiv2 kann in PNG speichern: Ja
Exiv2 kann in TIFF speichern: Ja
Exiv2 unterstützt XMP-Metadaten: Ja
LibCImg: 130
LibEigen: 3.0.6
LibExiv2: 0.23
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.12.5
LibKExiv2: 2.3.1
LibKGeoMap: 2.0.0
LibKdcraw: 2.4.2
LibLCMS: 2050
LibLensFun: 0.2.8-0
LibPGF: 6.12.27 - Externe gemeinsame Bibliothek
LibPNG: 1.6.12
LibQt: 4.8.5
LibRaw: 0.15.4
LibTIFF: LIBTIFF, Version 4.0.3 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble-Funktion: 0.17.0 (stable version)
Parallelisierte PGF-Codecs: Keine
Parallelisiertes Entfernen von Mosaikmustern: Unbekannt
Prozessorkerne: 4
Unterstützung für Demosaic GPL2: Unbekannt
Unterstützung für Demosaic GPL3: Unbekannt
Unterstützung von RawSpeed-Codec: Unbekannt
Datenbanktreiber: QMYSQL
Interner Datenbank-Server:: Keine
KIPI-Module: 3.5.0
LibGphoto2: 2.5.4
LibKface: 3.0.0
LibKipi: 2.1.0
LibOpenCV: 2.4.5
-----
Some more facts to my collections:
digiKam version 4.2.0
Bilder: 
BMP: 20
GIF: 4036
JP2: 758
JPG: 45679
PCX: 5
PNG: 41745
PPM: 40
RAW-DNG: 2235
RAW-NEF: 8033
TIFF: 3496
XCF: 335
Gesamt: 106382
: 
: 
Videos: 
3GP: 3
AVI: 130
MOV: 178
MP4: 6
MPEG: 26
Gesamt: 343
: 
Audio: 
MP3: 159
OGG: 39
WAV: 24
Gesamt: 222
: 
Gesamtzahl der Einträge: 106947
Alben: 13094
Stichwörter: 656
Datenbanktreiber: QMYSQL
Interner Datenbank-Server:: Keine
-------

Some info to my gentoo (emerge -info)
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentooy x86_64)
=================================================================
System uname: Linux-3.14.14-gentooy-x86_64-AMD_Phenom-tm-_II_X4_945_Processor-with-gentoo-2.2
KiB Mem:    16435256 total,   2520984 free
KiB Swap:   17414456 total,  16775396 free
Timestamp of tree: Wed, 03 Sep 2014 18:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.14.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo kde x-overlay
Installed sets: @kde-4.12
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/kde /usr/local/portage/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi akonadi alsa amd64 apache2 avi berkdb bluetooth branding bzip2 cairo cdda cddb cdr cleartype cli corefonts cracklib crypt cups cxx dbus dga divx dts dv dvd dvdr dvdread emboss encode exif fam fame ffmpeg firefox flac fortran gdbm gif gphoto2 gpm gps gtk gudev iconv introspection ipv6 java java6 javascript jpeg jpeg2k lcms ldap libnotify lm_sensors mad midi mjpeg mmx mng modules mp3 mp4 mpeg msn multilib ncurses networkmanager nls nptl nvidia ogg opengl openmp pam pango pcre pda pdf phonon png policykit ppds python qt3support qt4 quicktime raw readline scanner sdl semantic-desktop session smp spell sql sse sse2 ssl startup-notification subtitles svg syslog systemd tcpd threads tiff timidity truetype type1 udev udisks unicode upower usb v4l v4l2 vcd vorbis wavpack win32codecs wmf wxwidgets x264 xcb xine xml xpm xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

BTW: I got some trouble with my perl-installation. Maybe??
--------
Got some trouble with kipi-plugins
blending to HDR opens many windows, every new blending starts more windows and always with an error "could not safe". In fact the HDR is saved - just curios.

Making panoramas seems to start hugin but gets never to an end. After three days for an panorama with 24 pictures (made with nodal adapter) I stopped it... No idea what's the problem, starting hugin separately works fine.. for this I used my HDD, not the external USB_Drive (without free space).

That's all. If you miss some more detailed infos please don't hesitate to ask. I just don't know what to tell....
Next 10 days I'm on tour. After that I will try maintenance again.

Thanks so much for your help and patience

Uwe
Comment 5 caulier.gilles 2014-12-10 17:53:00 UTC
digiKam 4.5.0 have been released.

Crash still reproducible with this release ?

Gilles Caulier
Comment 6 caulier.gilles 2015-06-25 13:06:10 UTC
New digiKam 4.11.0 is available with official PKG installer for OSX.

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?
Comment 7 uwe.haider 2015-08-11 05:11:25 UTC
With 4.10 the problem still exists. I have updated to 4.12 now and try again today...
Comment 8 caulier.gilles 2016-07-02 18:46:45 UTC
digiKam 5.0.0 will be released soon.

Please test with this version quickly and give us a fresh feedback.
Comment 9 uwe.haider 2016-07-07 05:33:21 UTC
The latest (unstable) release for Gentoo / portage is 4.14.0-r1. The problem still exists with this release. The 5.0.0 isn't available for portage yet...
I will report.....

Just an idea:
Some pictures are tagged with names without a face selected. This is a relict from older releases. Newer pictures are tagged with marked faces. Perhaps this is a problem? Face recognition leads here to a crash too.
Comment 10 uwe.haider 2016-07-27 05:55:00 UTC
ok, I got digikam-5.0.0 now. The problem still exists. I have the stderr from zsh in a file with 622 MB. This are the last lines:
 ---
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.facesengine: detectMultiScale gave  (QRect(298,406 146x146))
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  0
digikam.facesengine: detectMultiScale: image size  226   226  searchIncrement  1.1  grouping  3  flags  0  min size  88   88 

digikam.database: No location could be retrieved for ""
digikam.general: Entry QRect(1301,444 534x535)456overlapsQRect(1301,444 534x535)456, skipping
digikam.facesengine: detectMultiScale gave  (QRect(41,42 145x145))
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  1
digikam.facesengine: detectMultiScale: image size  226   226  searchIncrement  1.1  grouping  3  flags  0  min size  88   88 

digikam.facesengine: detectMultiScale gave  (QRect(39,35 161x161))
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  2
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  3
digikam.facesengine: detectMultiScale: image size  226   226  searchIncrement  1.1  grouping  3  flags  0  min size  88   88 

digikam.facesengine: detectMultiScale gave  ()
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  4
digikam.facesengine: detectMultiScale: image size  226   226  searchIncrement  1.1  grouping  3  flags  0  min size  88   88 

digikam.facesengine: detectMultiScale gave  (QRect(69,39 139x139))
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  5
digikam.facesengine: feature  QRectF(0,0 0.6x0.6) QRect(298,406 146x146) QRect(298,406 88x88)
digikam.facesengine: detectMultiScale: image size  88   88  searchIncrement  1.1  grouping  2  flags  0  min size  15   15 

digikam.facesengine: detectMultiScale gave  (QRect(29,45 26x39))
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  6
digikam.facesengine: feature  QRectF(0.4,0 0.6x0.6) QRect(298,406 146x146) QRect(356,406 88x88)
digikam.facesengine: detectMultiScale: image size  88   88  searchIncrement  1.1  grouping  2  flags  0  min size  15   15 

digikam.facesengine: detectMultiScale gave  (QRect(27,45 26x39))
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  7
digikam.facesengine: feature  QRectF(0.2,0.25 0.6x0.6) QRect(298,406 146x146) QRect(327,443 88x88)
digikam.facesengine: detectMultiScale: image size  88   88  searchIncrement  1.1  grouping  2  flags  0  min size  15   15 

digikam.facesengine: detectMultiScale gave  ()
digikam.facesengine: Verifying face  QRect(298,406 146x146)  using cascade  8
digikam.facesengine: feature  QRectF(0.1,0.4 0.8x0.6) QRect(298,406 146x146) QRect(313,464 117x88)
digikam.facesengine: detectMultiScale: image size  117   88  searchIncrement  1.1  grouping  2  flags  0  min size  15   15 

digikam.facesengine: detectMultiScale gave  ()
digikam.general: Found 1 faces in "2012-04-02 19.17.13.JPG" QSize(1944, 2592) QSize(1944, 2592)
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.general: Entry QRect(1369,290 346x347)456overlapsQRect(1369,290 346x347)456, skipping
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.general: Entry QRect(1557,949 211x211)456overlapsQRect(1557,949 211x211)456, skipping

-------
Do you think, the file will help?

A few problems are new:

- can't change to german
- no right bar in the album view (comment, tags, map etc...)
- no settings for the import, import doesn't work
- only 15 kipiplugins?

starting digikam leads to this message:
"Error message: The database is not valid: the "DBThumbnailsVersion" setting does not exist. The current database schema version cannot be verified. Try to start with an empty database."

This comes since updating to 5.0.0..

Thanks for your support....

uhai
Comment 11 caulier.gilles 2016-07-27 07:19:22 UTC
1/ The crash appears in face engine. Sound a similar problem reported in this file :

https://bugs.kde.org/process_bug.cgi

2/ I18n : install digiKam translations packages.

3/ Install Breeze icon-sets.

4/ Idem 3.

5/ Most of plugins are migrated to digiKam core. It still only Web services tool in kipi-plugins.
Comment 12 uwe.haider 2016-07-27 19:53:17 UTC
(In reply to caulier.gilles from comment #11)
> 1/ The crash appears in face engine. Sound a similar problem reported in
> this file :
> 
> https://bugs.kde.org/process_bug.cgi

Maybe the link is incomplete?
> 
> 2/ I18n : install digiKam translations packages.

I can't find this package in portage. Still looking....
> 
> 3/ Install Breeze icon-sets.
> 
> 4/ Idem 3.

Got it. Thanks for the hint! media-gfx/digikam misses this dependencie
> 
> 5/ Most of plugins are migrated to digiKam core. It still only Web services
> tool in kipi-plugins.

ok, that's fine. makes it easier.

Thanks a lot for the support.

uhai
Comment 13 caulier.gilles 2016-07-28 05:50:27 UTC
This file : https://bugs.kde.org/show_bug.cgi?id=365354
Comment 14 uwe.haider 2016-07-30 18:40:48 UTC
That's it: max-allowed-packet was 4096. I set it to 16.777.216 -> facerecognition works first time ever :-))

But some error messages are still on:

digikam.general: Allowing a cache size of 200 MB
digikam.dbengine: Prepare failed!
digikam.dbengine: Failure executing query:
 "SELECT value FROM ThumbSettings WHERE keyword=?;" 
Error messages: "QMYSQL3: Unable to prepare statement" "Table 'digikam.ThumbSettings' doesn't exist" 1146 2 
Bound values:  ()
digikam.dbengine: Failure executing query:
 "SELECT value FROM ThumbSettings WHERE keyword='DBThumbnailsVersion';" 
Error messages: "QMYSQL: Unable to execute query" "Table 'digikam.ThumbSettings' doesn't exist" 1146 2 
Bound values:  (QVariant(QString, "DBThumbnailsVersion"))
digikam.dbengine: Error while executing DBAction [ "SelectThumbnailSetting" ] Statement [ "SELECT value FROM ThumbSettings WHERE keyword=:keyword;" ]
digikam.thumbsdb: ThumbDB SelectThumbnailSetting val ret =  1
digikam.dbengine: Prepare failed!
digikam.dbengine: Failure executing query:
 "SELECT value FROM ThumbSettings WHERE keyword=?;" 
Error messages: "QMYSQL3: Unable to prepare statement" "Table 'digikam.ThumbSettings' doesn't exist" 1146 2 
Bound values:  ()
digikam.dbengine: Failure executing query:
 "SELECT value FROM ThumbSettings WHERE keyword='DBThumbnailsVersionRequired';" 
Error messages: "QMYSQL: Unable to execute query" "Table 'digikam.ThumbSettings' doesn't exist" 1146 2 
Bound values:  (QVariant(QString, "DBThumbnailsVersionRequired"))
digikam.dbengine: Error while executing DBAction [ "SelectThumbnailSetting" ] Statement [ "SELECT value FROM ThumbSettings WHERE keyword=:keyword;" ]

How can I fix this? Can I set up the tables via phpmyadmin? Is there a doku for the db-structure? And how can I fill this hand made tables?

I will test the other functions of maintenance separatly an give feedback....

uhai
Comment 15 uwe.haider 2016-07-30 18:57:12 UTC
I couldn't solve all of the above mentioned problems:

1 - done
2 - no language pack l18n for digikam in Gentoo??
3 - Breeze icons are installed now, but some icons miss in digikam
4 - same
Comment 16 caulier.gilles 2016-07-30 19:42:26 UTC
>That's it: max-allowed-packet was 4096. I set it to 16.777.216 -> facerecognition works first >time ever :-))

Where do you tune this settings exactly ?

Gilles Caulier
Comment 17 caulier.gilles 2016-07-30 19:45:24 UTC
>How can I fix this? Can I set up the tables via phpmyadmin? Is there a doku for the db->structure? And how can I fill this hand made tables?

The errors come from Thumbnail database which can be broken due to previous crash. This database only contain wavelets compressed thumbs. You can drop it and recreate the database in mysql as at init. The database contents will be recreated automatically.

Gilles  Caulier
Comment 18 caulier.gilles 2016-07-30 19:47:16 UTC
> no language pack l18n for digikam in Gentoo??

No idea. No Gentoo here.

At least, digiKam is released with whole translations pack. After, each packager make packages following distro rules...

Gilles Caulier
Comment 19 uwe.haider 2016-07-30 20:49:13 UTC
(In reply to caulier.gilles from comment #16)
> >That's it: max-allowed-packet was 4096. I set it to 16.777.216 -> facerecognition works first >time ever :-))
> 
> Where do you tune this settings exactly ?
> 
> Gilles Caulier

in mariadb via phpmyadmin. (settings - max-allowed-packets) works fine.

maintenance thumbnails & fingerprints work - now testing duplicates....

uhai
Comment 20 uwe.haider 2016-08-04 05:39:15 UTC
I have finished  testing the maintenance modules:

- searching duplicates ok
- rebuild fingerprints ok
- searching new items ok
- thumbnails ok
- quality sort ok (but very slow - 2 days?)
- synchronizing metadata (both directions) leads to segementation vault & crash

Sorry, I can't see any error message for the segementation vault in the shell (zsh). How can I get the informations you need?

uhai
Comment 21 caulier.gilles 2016-08-04 09:47:27 UTC
- quality sort ok (but very slow - 2 days?) ==> yes this part have never been optimized from algorithm side.

- synchronizing metadata (both directions) leads to segmentation vault & crash : probably some non re-entrancy with Exiv2 shared library. Did you use at least 0.25 release and disable multi-core support. Just to be sure. There are a lots of reports about this problem in bugzilla...

Gilles Caulier
Comment 22 caulier.gilles 2016-08-04 09:51:51 UTC
Swati,

1/ We need to fix internal Mysql configuration file include with digiKam to set right value of "max-allowed-packet".

2/ In Remote Mysql Setup page Requirements, we need to add some words about this settings to be sure that end user will configure fine the server.

Gilles Caulier
Comment 23 caulier.gilles 2016-08-04 09:54:31 UTC
> I can't see any error message for the segmentation vault in the shell (zsh). How can I get the informations you need?

Very simple. from a console, just run digiKam in gdb as explained here :

https://www.digikam.org/contrib

When it crash, the backtrace will be reported by GDB "bt" command.

Note : digiKam must be compiled with debug symbols.

Gilles Caulier
Comment 24 uwe.haider 2016-08-04 17:59:32 UTC
Thanks for your patience. I will build digikam with USE=debug today and test again.

This is my exiv2:
---------
media-gfx/exiv2
     Verfügbare Versionen:   0.24-r1(0/13) ~0.25-r1(0/14) 0.25-r2(0/14)[1] {contrib doc examples nls png static-libs webready xmp zlib ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" LINGUAS="bs de es fi fr gl ms pl pt ru sk sv ug uk vi"}                                                                                                                                                            
     Installierte Versionen: 0.25-r2(0/14)(16:57:49 14.02.2016)(nls png xmp -doc -examples -webready ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" LINGUAS="de -bs -es -fi -fr -gl -ms -pl -pt -ru -sk -sv -ug -uk -vi")                                                                                                                                                                        
     Startseite:             http://www.exiv2.org/
     Beschreibung:           EXIF, IPTC and XMP metadata C++ library and command line utility
-----

I don't know if it is build with multi-core support. I wil research...

uhai
Comment 25 uwe.haider 2016-08-05 03:33:47 UTC
ok, here we go:

-----
digikam.metaengine: ""  ==> Title:  QMap()
digikam.metaengine: ""  ==> Comment:  QMap(("x-default", CaptionValues::caption: "Copyright 2011 by Uwe Haider        ", CaptionValues::author: "", CaptionValues::date: QDateTime( Qt::TimeSpec(LocalTime)) ) ) 
digikam.metaengine: ""  ==> Pick Label:  0
digikam.metaengine: ""  ==> Color Label:  0
digikam.metaengine: Rating value to write is out of range!
digikam.general: Writting tags
digikam.general: Delete all keywords
digikam.metaengine: ""  ==> Read Iptc Keywords:  ()
digikam.metaengine: ""  ==> New Iptc Keywords:  ()
digikam.metaengine: xmlACDSee "<Categories></Categories>"
digikam.metaengine: Failed to apply changes: file path is empty!
digikam.general: One job is done
digikam.general: One job is done
digikam.general: No write to baloo +++++++++++++++++++++++++++++++++++++
digikam.general: One job is done
digikam.general: One job is done
[Switching to Thread 0x7fff4f319700 (LWP 1393)]
Catchpoint 1 (exception thrown), __cxxabiv1::__cxa_throw (obj=0x7ffe96ba72a0, tinfo=0x7ffff71aa480 <typeinfo for Exiv2::BasicError<char>>, dest=0x7ffff682a8e0 <Exiv2::BasicError<char>::~BasicError()>)
    at /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc:63
63      /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc: Datei oder Verzeichnis nicht gefunden.
---------

And here is the backtrace:

(gdb) bt
#0  __cxxabiv1::__cxa_throw (obj=0x7ffe96ba72a0, tinfo=0x7ffff71aa480 <typeinfo for Exiv2::BasicError<char>>, dest=0x7ffff682a8e0 <Exiv2::BasicError<char>::~BasicError()>)
    at /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc:63
#1  0x00007ffff01eb865 in Exiv2::ImageFactory::open (path="/home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf", useCurl=useCurl@entry=true)
    at /var/tmp/portage/media-gfx/exiv2-0.25-r2/work/exiv2-0.25/src/image.cpp:478
#2  0x00007ffff680a880 in Digikam::MetaEngine::load (this=this@entry=0x7fff4f318be0, filePath=...) at /var/tmp/portage/media-gfx/digikam-5.0.0/work/digikam-5.0.0/core/libs/dmetadata/metaengine.cpp:278
#3  0x00007ffff68561d6 in Digikam::DMetadata::load (this=this@entry=0x7fff4f318be0, filePath=...) at /var/tmp/portage/media-gfx/digikam-5.0.0/work/digikam-5.0.0/core/libs/dmetadata/dmetadata.cpp:100
#4  0x00007ffff6856272 in Digikam::DMetadata::DMetadata (this=0x7fff4f318be0, filePath=...) at /var/tmp/portage/media-gfx/digikam-5.0.0/work/digikam-5.0.0/core/libs/dmetadata/dmetadata.cpp:67
#5  0x00007ffff76e7a9e in Digikam::MetadataHub::write (this=this@entry=0x7fff4f318c60, filePath=..., writeMode=writeMode@entry=..., ignoreLazySync=ignoreLazySync@entry=true, settings=...)
    at /var/tmp/portage/media-gfx/digikam-5.0.0/work/digikam-5.0.0/core/libs/fileactionmanager/metadatahub.cpp:373
#6  0x00007ffff7626869 in Digikam::MetadataTask::run (this=0x1c3ac8480) at /var/tmp/portage/media-gfx/digikam-5.0.0/work/digikam-5.0.0/core/utilities/maintenance/metadatatask.cpp:103
#7  0x00007ffff426aa8d in QThreadPoolThread::run (this=0x7fff14097820) at thread/qthreadpool.cpp:93
#8  0x00007ffff426e52a in QThreadPrivate::start (arg=0x7fff14097820) at thread/qthread_unix.cpp:341
#9  0x00007ffff5fd45e6 in start_thread (arg=0x7fff4f319700) at pthread_create.c:334
#10 0x00007ffff399c9ad in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

-------------

Is this helpful for you? gdb is still running for further information....

uhai
Comment 26 uwe.haider 2016-08-05 04:44:17 UTC
ok, I have news for the exiv2 usage:

the gentoo package media-gfx/exiv2 isn't able for multi-core support. a friendly soul has checked the code :-) (thank s to firefly)

So the only way to multi.core support is the switch in digikams maintenance dialog - right? I don't use the switch because I have to work while digikam makes the maintenance....

Is this informaiton what you need?

Uhai
Comment 27 uwe.haider 2016-08-05 18:18:45 UTC
Oops! got some more:

-----
(gdb) cont
Continuing.
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
digikam.general: One job is done
"Keine derartige Schnittstelle »org.freedesktop.DBus.Properties« des Objekts im Pfad /org/freedesktop/NetworkManager/ActiveConnection/2"
"Keine derartige Schnittstelle »org.freedesktop.DBus.Properties« des Objekts im Pfad /org/freedesktop/NetworkManager/ActiveConnection/2"
digikam.general: One job is done
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf: The file contains data of an unknown image type
digikam.general: One job is done
digikam.general: One job is done
digikam.metaengine: "/home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf"  ==> Title:  QMap()
digikam.metaengine: "/home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf"  ==> Comment:  QMap()
digikam.metaengine: "/home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf"  ==> Pick Label:  0
digikam.metaengine: "/home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf"  ==> Color Label:  0
digikam.metaengine: Rating value to write is out of range!
digikam.general: Writting tags
digikam.general: Delete all keywords
digikam.metaengine: "/home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf"  ==> Read Iptc Keywords:  ()
digikam.metaengine: "/home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf"  ==> New Iptc Keywords:  ()
digikam.metaengine: xmlACDSee "<Categories></Categories>"
digikam.metaengine: MetaEngine::metadataWritingMode 2
digikam.metaengine: Will write Metadata to file "/home/uhai/Bilder_alt/08-11-23 Hd Hausansicht.xcf"
digikam.general: One job is done
Catchpoint 1 (exception thrown), __cxxabiv1::__cxa_throw (obj=0x7ffe96ba72a0, tinfo=0x7ffff71aa480 <typeinfo for Exiv2::BasicError<char>>, dest=0x7ffff682a8e0 <Exiv2::BasicError<char>::~BasicError()>)
    at /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc:63
63      in /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc
(gdb)cont
[....]
digikam.metaengine: "/home/uhai/Bilder_alt/avatar.png"  ==> Read Iptc Keywords:  ()
digikam.metaengine: "/home/uhai/Bilder_alt/avatar.png"  ==> New Iptc Keywords:  ()
digikam.metaengine: xmlACDSee "<Categories></Categories>"
digikam.metaengine: MetaEngine::metadataWritingMode 2
digikam.metaengine: Will write Metadata to file "/home/uhai/Bilder_alt/avatar.png"
digikam.metaengine: wroteComment:  true
digikam.metaengine: wroteEXIF:  true
digikam.metaengine: wroteIPTC:  true
digikam.metaengine: wroteXMP:  true
digikam.metaengine: Metadata for file "avatar.png" written to file.
digikam.metaengine: Will write XMP sidecar for file "avatar.png"
digikam.metaengine: wroteComment:  false
digikam.metaengine: wroteEXIF:  true
digikam.metaengine: wroteIPTC:  true
digikam.metaengine: wroteXMP:  true
digikam.metaengine: Metadata for file ' "avatar.png" ' written to XMP sidecar.
digikam.general: No write to baloo +++++++++++++++++++++++++++++++++++++
Catchpoint 1 (exception thrown), __cxxabiv1::__cxa_throw (obj=0x7ffee26b3220, tinfo=0x7ffff71aa480 <typeinfo for Exiv2::BasicError<char>>, dest=0x7ffff682a8e0 <Exiv2::BasicError<char>::~BasicError()>)
    at /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc:63
63      in /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc
(gdb) cont
Continuing.
digikam.metaengine: Cannot load metadata from file   (Error # 11 :  /home/uhai/Bilder_alt/bag5.jpg: The file contains data of an unknown image type
digikam.general: One job is done
digikam.metaengine: "/home/uhai/Bilder_alt/bag5.jpg"  ==> Title:  QMap()
digikam.metaengine: "/home/uhai/Bilder_alt/bag5.jpg"  ==> Comment:  QMap()
digikam.metaengine: "/home/uhai/Bilder_alt/bag5.jpg"  ==> Pick Label:  0
digikam.metaengine: "/home/uhai/Bilder_alt/bag5.jpg"  ==> Color Label:  0
digikam.metaengine: Rating value to write is out of range!
digikam.general: Writting tags
digikam.general: Delete all keywords
digikam.metaengine: "/home/uhai/Bilder_alt/bag5.jpg"  ==> Read Iptc Keywords:  ()
digikam.metaengine: "/home/uhai/Bilder_alt/bag5.jpg"  ==> New Iptc Keywords:  ()
digikam.metaengine: xmlACDSee "<Categories></Categories>"
digikam.metaengine: MetaEngine::metadataWritingMode 2
digikam.metaengine: Will write Metadata to file "/home/uhai/Bilder_alt/bag5.jpg"
Catchpoint 1 (exception thrown), __cxxabiv1::__cxa_throw (obj=0x7ffef20c0530, tinfo=0x7ffff71aa480 <typeinfo for Exiv2::BasicError<char>>, dest=0x7ffff682a8e0 <Exiv2::BasicError<char>::~BasicError()>)
    at /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc:63
63      in /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc
[....
-------

still running. Now I know "cont" :-)

uhai
Comment 28 uwe.haider 2016-08-05 19:37:30 UTC
That's it:

-------------
igikam.metaengine: "/home/uhai/Bilder_alt/Urlaub Pfingsten 2011/2011-06-21T17-24-14.png"  ==> Title:  QMap()
digikam.metaengine: "/home/uhai/Bilder_alt/Urlaub Pfingsten 2011/2011-06-21T17-24-14.png"  ==> Comment:  QMap()
digikam.general: One job is done
digikam.metaengine: "/home/uhai/Bilder_alt/Urlaub Pfingsten 2011/2011-06-21T17-24-14.png"  ==> Pick Label:  3
digikam.metaengine: "/home/uhai/Bilder_alt/Urlaub Pfingsten 2011/2011-06-21T17-24-14.png"  ==> Color Label:  0
digikam.metaengine: Rating value to write is out of range!
digikam.general: Writting tags
digikam.general: Delete all keywords
digikam.metaengine: "/home/uhai/Bilder_alt/Urlaub Pfingsten 2011/2011-06-21T17-24-14.png"  ==> Read Iptc Keywords:  ()
digikam.metaengine: "/home/uhai/Bilder_alt/Urlaub Pfingsten 2011/2011-06-21T17-24-14.png"  ==> New Iptc Keywords:  ()
digikam.metaengine: xmlACDSee "<Categories></Categories>"
digikam.metaengine: MetaEngine::metadataWritingMode 2
digikam.metaengine: Will write Metadata to file "/home/uhai/Bilder_alt/Urlaub Pfingsten 2011/2011-06-21T17-24-14.png"
digikam.metaengine: Exiv2 ( 3 ) :  Directory Casio2: Next pointer is out of bounds; ignored.

digikam.metaengine: wroteComment:  true
digikam.metaengine: wroteEXIF:  true
digikam.metaengine: wroteIPTC:  true
digikam.metaengine: wroteXMP:  true

Program received signal SIGSEGV, Segmentation fault.
Exiv2::Internal::TiffComponent::addPath (this=0x0, tag=tag@entry=2, tiffPath=std::stack wrapping: std::deque with 2 elements = {...}, pRoot=0x7ffeb3ac35a0, object=...)
    at /var/tmp/portage/media-gfx/exiv2-0.25-r2/work/exiv2-0.25/src/tiffcomposite.cpp:634
634     /var/tmp/portage/media-gfx/exiv2-0.25-r2/work/exiv2-0.25/src/tiffcomposite.cpp: Datei oder Verzeichnis nicht gefunden.
(gdb) cont
Continuing.
[Thread 0x7fff4eb18700 (LWP 6703) exited]
[Thread 0x7fff0effd700 (LWP 1038) exited]
[Thread 0x7fffd2105700 (LWP 8136) exited]
[Thread 0x7fffdadff8c0 (LWP 7847) exited]
[Thread 0x7fff4f319700 (LWP 1393) exited]
[Thread 0x7fffc8e3c700 (LWP 9969) exited]
[Thread 0x7ffefd5eb700 (LWP 8218) exited]
[Thread 0x7ffefddec700 (LWP 8217) exited]
[Thread 0x7ffefe5ed700 (LWP 8216) exited]
[Thread 0x7ffefedee700 (LWP 8215) exited]
[Thread 0x7fffca837700 (LWP 8175) exited]
[Thread 0x7fffcb7fe700 (LWP 8173) exited]
[Thread 0x7fffcbfff700 (LWP 8138) exited]
[Thread 0x7fffd0fdd700 (LWP 8137) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
----------
But no Backtrace:
-----
(gdb) bt
No stack.
------

uhai
Comment 29 caulier.gilles 2016-08-06 09:12:59 UTC
Thanks Uwe,

All backtraces indicate a problem with Exiv2 multicore/Multi-threads processing. This use case problem must be reported to Exiv2 bugzilla. There is no reason for these kind of dysfunctions while Exiv2 read or write from/to image files metadata.

>the gentoo package media-gfx/exiv2 isn't able for multi-core support. a friendly soul has checked the code :-) (thank s to firefly)

How this information have been verified exactly ?

So the only way to multi.core support is the switch in digikams maintenance dialog - right? I don't use the switch because I have to work while digikam makes the maintenance....

Yes. Disabling multicore support will run maintenance tools in a single CPU. It will be interesting to see if the Exiv2 dysfunctions are reproducible in this case.

Of course, One single core to run maintenance tools will be slower, as expected.

Gilles Caulier
Comment 30 caulier.gilles 2016-08-06 09:54:58 UTC
Git commit abe510108e827ad3f2f1946a5651cda85cb071f0 by Swati Lodha.
Committed on 06/08/2016 at 09:39.
Pushed by swatil into branch 'master'.

Change MySQL configuration file

M  +1    -1    data/database/mysql-global.conf
M  +3    -1    libs/database/utils/dbsettingswidget.cpp

http://commits.kde.org/digikam/abe510108e827ad3f2f1946a5651cda85cb071f0
Comment 31 caulier.gilles 2016-08-06 13:46:31 UTC
Git commit c8e7c3260cacc6ebf422efe15d703a7188cd132c by Gilles Caulier.
Committed on 06/08/2016 at 13:44.
Pushed by cgilles into branch 'master'.

Due to some limitation in Exiv2 with multithreads/multi-core CPU (even with last Exiv2 0.25), limit metatdate synchronizer maintenenace tool to one CPU for the moment.

M  +1    -1    utilities/maintenance/maintenancedlg.cpp
M  +3    -2    utilities/maintenance/maintenancemngr.cpp

http://commits.kde.org/digikam/c8e7c3260cacc6ebf422efe15d703a7188cd132c
Comment 32 caulier.gilles 2016-08-06 13:54:35 UTC
Uwe,

Metadata synchronizer maintenance tool will always use one cpu core now.

Please confirm that fix crash on you computer.

Also, we must have a real feedback from Exiv2 team about muticore cpu support in this library. Please report this problem into Exiv2 bugzilla as well.

Thanks in advance

Gilles Caulier
Comment 33 uwe.haider 2016-08-13 08:12:39 UTC
Tested now with gdb and digikam-5.1.0 (with german trasnlation!):
New crash with face-search - sorry no backtrace:

------------
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffecdffb700 (LWP 11679)]
operator== (s1=..., s2=...) at tools/qstring.cpp:2686
2686    tools/qstring.cpp: Datei oder Verzeichnis nicht gefunden.

-----------------
The multicore-option was NOT set. But I found this in gdb-Output:
------
digikam.general: Using  4  CPU core to run threads
[New Thread 0x7ffee7ff7700 (LWP 32609)]
digikam.general: Action Thread run  1  new jobs
digikam.database: " ( ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) ) "
digikam.database: Search query:
 "SELECT DISTINCT Images.id, Images.name, Images.album,        Albums.albumRoot,        ImageInformation.rating, Images.category,        ImageInformation.format, ImageInformation.creationDate,        Images.modificationDate, Images.fileSize,        ImageInformation.width,  ImageInformation.height,        ImageTagProperties.value, ImageTagProperties.property, ImageTagProperties.tagid  FROM Images        INNER JOIN ImageTagProperties ON ImageTagProperties.imageid=Images.id        LEFT JOIN ImageInformation ON Images.id=ImageInformation.imageid        INNER JOIN Albums           ON Albums.id=Images.album WHERE Images.status=1 AND (  ( ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) OR ( (ImageTagProperties.tagid=? OR ImageTagProperties.tagid IN (SELECT id FROM TagsTree WHERE pid=?)) AND ImageTagProperties.property=?  ) )  );" 
 (QVariant(int, 1111), QVariant(int, 1111), QVariant(QString, "autodetectedFace"), QVariant(int, 1111), QVariant(int, 1111), QVariant(QString, "tagRegion"))
-------

digikam uses 4 cores, maintenance not??

This are the used components:
digikam version 5.1.0
CPU cores: 4
Eigen: 3.2.8
Exiv2: 0.25
Exiv2 can write to Jp2: Ja (yes)
Exiv2 can write to Jpeg: Ja (yes)
Exiv2 can write to Pgf: Ja (yes)
Exiv2 can write to Png: Ja (yes)
Exiv2 can write to Tiff: Ja (yes)
Exiv2 supports XMP metadata: Ja (yes)
KDE: 5.25.0
LensFun: 0.3.2-0
LibCImg: 130
LibJPEG: 62
LibJasper: 1.900.1
LibLCMS: 2060
LibLqr support: Ja (yes)
LibPGF: 7.15.32
LibPNG: 1.6.21+apng
LibRaw: 0.18.0-201604
LibTIFF: LIBTIFF, Version 4.0.6 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc.
Marble: 0.24.1 (stable release)
Parallelized demosaicing: Ja (yes)
Qt: 5.6.1
RawSpeed codec support: Keine (no)
DBus support: Ja  (yes)
Datenbanktreiber: QMYSQL
Interner Datenbank-Server:: Keine (no)
KIPI-Module: 5.1.0
LibGphoto2: 2.5.10
LibKipi: 5.1.0
LibOpenCV: 3.1.0
Unterstützung für Baloo: Ja (yes)
Unterstützung für Calender: Nein (no)
Unterstützung für Panorama: Ja  (yes)
Unterstützung für QtMultimedia: Ja (yes)
Unterstützung von Akonadi-Kontakten: Nein (no)

Your question for multicore functionality in exiv2: firefly has searched the source-code for fork or threads and hasn't found something like this. This output is gdb-output using only one core for maintenacce (face-detection only):
------------
digikam.general: Use Exif/IPTC preview extraction. Size of image:  1280 x 851
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.facesengine: detectMultiScale gave  ()
digikam.general: Found 0 faces in "20141017T143010.png" QSize(3264, 4928) QSize(3264, 4928)
digikam.general: Use Exif/IPTC preview extraction. Size of image:  1280 x 851
digikam.general: Check for finish:  51 packages, 0 infos to filter, hasFinished() false
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.general: Use Exif/IPTC preview extraction. Size of image:  1280 x 851
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.general: Use Exif/IPTC preview extraction. Size of image:  1280 x 851
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.general: Use Exif/IPTC preview extraction. Size of image:  1280 x 851
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.metaengine: Orientation => Exif.Image.Orientation =>  6
digikam.general: Use Exif/IPTC preview extraction. Size of image:  1280 x 851
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.general: Use Exif/IPTC preview extraction. Size of image:  1280 x 851
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.dimg: "/home/uhai/Dokumente/CFotobuch/Carla 18/Kopie von SabineHaider2006-06-22_10-16-46D50.JPG"  : JPEG file identified
digikam.metaengine: Orientation => Exif.Image.Orientation =>  1
digikam.dimg: "/home/uhai/Bilder_alt/2014/2014-10-17/20141017T143011_v1.png"  : PNG file identified
digikam.dimg: "/home/uhai/Dokumente/CFotobuch/Carla 18/Kopie von SabineHaider2006-06-22_10-16-46D50.JPG"  : JPEG file identified
[Switching to Thread 0x7ffee7ff7700 (LWP 6946)]
Catchpoint 1 (exception thrown), __cxxabiv1::__cxa_throw (obj=0x7ffeec27dd40, tinfo=0x7ffff71a8340 <typeinfo for Exiv2::BasicError<char>>, dest=0x7ffff6818ce0 <Exiv2::BasicError<char>::~BasicError()>)
    at /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc:63
63      in /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc
--------
seems the "exiv2"-break appears with even one core....

Hope it helps. If you need more infos, don't hesitate to ask. I'm glad to help....

uhai
Comment 34 caulier.gilles 2016-08-13 08:25:09 UTC
[Switching to Thread 0x7ffee7ff7700 (LWP 6946)]
Catchpoint 1 (exception thrown), __cxxabiv1::__cxa_throw (obj=0x7ffeec27dd40, tinfo=0x7ffff71a8340 <typeinfo for Exiv2::BasicError<char>>, dest=0x7ffff6818ce0 <Exiv2::BasicError<char>::~BasicError()>)
    at /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc:63
63      in /var/tmp/portage/sys-devel/gcc-4.9.3/work/gcc-4.9.3/libstdc++-v3/libsupc++/eh_throw.cc
--------
seems the "exiv2"-break appears with even one core....

==> I think you are right. Please  report this problem to Exiv2 bugzilla, at least to know if tests in this conditions have been done on this library...

Gilles Caulier
Comment 35 uwe.haider 2016-08-13 12:41:35 UTC
Done.
Here it can be found: http://dev.exiv2.org/issues/1207

uhai
Comment 36 caulier.gilles 2017-04-16 20:33:20 UTC
new 5.6.0 pre-release as bundle is available here :

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM

Please check if this problem still reproducible with these versions.

Thanks in advance

Gilles Caulier
Comment 37 Maik Qualmann 2017-12-17 19:49:34 UTC
Git commit 6a9fd9891a3ff341dc42fe36158cbf0101d513b6 by Maik Qualmann.
Committed on 17/12/2017 at 19:20.
Pushed by mqualmann into branch 'master'.

delete threads from memory when they are finished
Related: bug 375317, bug 375035, bug 321784, bug 325712, bug 328732, bug 330227, bug 331912, bug 344661, bug 345395, bug 350549, bug 381877, bug 338249, bug 329651, bug 387821, bug 381222

M  +2    -1    NEWS
M  +25   -0    libs/database/dbjobs/dbjobsmanager.cpp
M  +35   -0    libs/iojobs/iojobsmanager.cpp

https://commits.kde.org/digikam/6a9fd9891a3ff341dc42fe36158cbf0101d513b6
Comment 38 caulier.gilles 2017-12-17 20:03:04 UTC
Following this commit:

https://commits.kde.org/digikam/6a9fd9891a3ff341dc42fe36158cbf0101d513b6

... the approach to fix this problem is under way and new digiKam 5.8.0 pre-release bundles will be compiled tonight to lets a chance to end-users to give a feedback about this fix before the 5.8.0 official release planed before Christmas 2017.

The bundles will be available in 2 hours at this url:

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

Please do not waste time to test if this file is always valid for next 5.8.0.

Thanks in advance

Gilles Caulier
Comment 39 caulier.gilles 2018-08-17 21:27:53 UTC
Can you reproduce the dysfunction using digiKam 6.0.0 pre-release bundle available here :

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

Gilles Caulier
Comment 40 Maik Qualmann 2018-10-10 20:21:04 UTC
This issue is no longer reproducible since the commit from Comment 37. I close the bug now, if necessary open again.

Maik