Bug 226157

Summary: digiKam crashes when applying keyword changes.
Product: [Applications] digikam Reporter: terri.bugs
Component: Tags-KeywordsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles, marcel.wiesweg
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Sentry Crash Report:

Description terri.bugs 2010-02-10 16:32:01 UTC
Application that crashed: digikam
Version of the application: 1.2.0 (rev.: 1086154)
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-17-generic x86_64
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
I changed some tags applied to image (added and removed a few) using the right sidepanel. Some keywords were also created and then added to the image. Application crahes when the Apply -button is pressed or one answers yes to the question about applying the changes to the images. I'm trying to modify only one image's metadata at a time.

 -- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f1085a03750 (LWP 6729))]

Thread 17 (Thread 0x7f106f45d910 (LWP 6730)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f10805a14fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00000000006ebec6 in Digikam::ScanController::run (this=0x1c129c0) at /home/terri/graphics/digikam/digikam/scancontroller.cpp:502
#3  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7f106bb5d910 (LWP 6732)):
#0  0x00007f1078d4d31a in ?? () from /lib/libglib-2.0.so.0
#1  0x00007f1078d4d6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#2  0x00007f10806af1fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#3  0x00007f1080685532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f1080685904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f108059d6cb in QThread::exec() () from /usr/lib/libQtCore.so.4
#6  0x00007f1082530c8a in Digikam::ImageFilterModelWorker::Thread::run (this=0x1dede00) at /home/terri/graphics/build/digikam/digikam/../../../digikam/libs/models/imagefiltermodelthreads.h:66
#7  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 15 (Thread 0x7f106b2d0910 (LWP 6733)):
#0  0x00007f107e9e53c3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f1078d4d37c in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f1078d4d6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f10806af1fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f1080685532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f1080685904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f108059d6cb in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f1082530c8a in Digikam::ImageFilterModelWorker::Thread::run (this=0x1e00b80) at /home/terri/graphics/build/digikam/digikam/../../../digikam/libs/models/imagefiltermodelthreads.h:66
#8  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7f106aa4f910 (LWP 6734)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f10805a14fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f10829fabdc in Digikam::LoadSaveThread::run (this=0x1f548f0) at /home/terri/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 13 (Thread 0x7f106a24e910 (LWP 6735)):
#0  0x00007f107e9e53c3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f1078d4d37c in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f1078d4d6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f10806af1fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f1080685532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f1080685904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f108059d6cb in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00000000006e233a in Digikam::MetadataManagerWorker::Thread::run (this=0x1fa5fe0) at /home/terri/graphics/build/digikam/digikam/../../../digikam/digikam/metadatamanager_p.h:143
#8  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 12 (Thread 0x7f1069a4d910 (LWP 6736)):
#0  0x00007f107e9e53c3 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f1078d4d37c in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f1078d4d6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007f10806af1fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f1080685532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f1080685904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f108059d6cb in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00000000006e233a in Digikam::MetadataManagerWorker::Thread::run (this=0x1fa6500) at /home/terri/graphics/build/digikam/digikam/../../../digikam/digikam/metadatamanager_p.h:143
#8  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 11 (Thread 0x7f106924c910 (LWP 6737)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f10805a14fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f10829fabdc in Digikam::LoadSaveThread::run (this=0x1fbc7f0) at /home/terri/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f105ecab910 (LWP 6738)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f1062bd9c91 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 9 (Thread 0x7f105cb26910 (LWP 6739)):
#0  0x00007f107e9ea412 in select () from /lib/libc.so.6
#1  0x00007f1062c02725 in xine_usec_sleep () from /usr/lib/libxine.so.1
#2  0x00007f1062be77e9 in ?? () from /usr/lib/libxine.so.1
#3  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f105c325910 (LWP 6740)):
#0  0x00007f107d78e6dd in __pthread_mutex_unlock_usercnt (mutex=0x2518498) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x2518498) at pthread_mutex_unlock.c:289
#2  0x00007f1078d49a12 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#3  0x00007f1078d4d598 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007f1078d4d6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x00007f10806af1fe in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f1080685532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007f1080685904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#8  0x00007f108059d6cb in QThread::exec() () from /usr/lib/libQtCore.so.4
#9  0x00007f1062e3456e in ?? () from /usr/lib/qt4/plugins/phonon_backend/phonon_xine.so
#10 0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#11 0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#12 0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 7 (Thread 0x7f1056710910 (LWP 6755)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f10805a14fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f10829fabdc in Digikam::LoadSaveThread::run (this=0x27826f0) at /home/terri/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f1057712910 (LWP 6762)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f10805a14fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f10829fabdc in Digikam::LoadSaveThread::run (this=0x2b91ad0) at /home/terri/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 5 (Thread 0x7f105ad0c910 (LWP 6763)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f10805a14fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f10829fabdc in Digikam::LoadSaveThread::run (this=0x2e8d3c0) at /home/terri/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f1056f11910 (LWP 6764)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f1062bea983 in ?? () from /usr/lib/libxine.so.1
#2  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f105b50d910 (LWP 6784)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f10805a14fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f10829fabdc in Digikam::LoadSaveThread::run (this=0x511ec90) at /home/terri/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f10477fe910 (LWP 6785)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f10805a14fb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#2  0x00007f10829fabdc in Digikam::LoadSaveThread::run (this=0x4d0cb90) at /home/terri/graphics/digikam/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007f10805a0445 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007f107d78aa04 in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f107e9f180d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1085a03750 (LWP 6729)):
[KCrash Handler]
#5  0x0000000000610ade in Digikam::Album::isRoot (this=0x666e6f632e6863) at /home/terri/graphics/digikam/digikam/album.cpp:230
#6  0x000000000061232b in Digikam::TAlbum::tagPath (this=0x666e6f632e6863, leadingSlash=false) at /home/terri/graphics/digikam/digikam/album.cpp:394
#7  0x00000000006123a0 in Digikam::TAlbum::tagPath (this=0x3da9090, leadingSlash=false) at /home/terri/graphics/digikam/digikam/album.cpp:401
#8  0x00000000006da3fe in Digikam::MetadataHub::write (this=0x7fff73222670, metadata=..., writeMode=Digikam::MetadataHub::FullWrite, settings=...)
    at /home/terri/graphics/digikam/digikam/metadatahub.cpp:625
#9  0x00000000006da75d in Digikam::MetadataHub::write (this=0x7fff73222670, filePath=..., writeMode=Digikam::MetadataHub::FullWrite, settings=...)
    at /home/terri/graphics/digikam/digikam/metadatahub.cpp:656
#10 0x000000000049ce4b in Digikam::ImageDescEditTab::slotApplyAllChanges (this=0x2a7d900) at /home/terri/graphics/digikam/libs/imageproperties/imagedescedittab.cpp:541
#11 0x0000000000496b2f in Digikam::ImageDescEditTab::qt_metacall (this=0x2a7d900, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff73222810)
    at /home/terri/graphics/build/digikam/digikam/imagedescedittab.moc:119
#12 0x00007f108069bddc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#13 0x00007f107fbce8e7 in QAbstractButton::clicked(bool) () from /usr/lib/libQtGui.so.4
#14 0x00007f107f93041b in ?? () from /usr/lib/libQtGui.so.4
#15 0x00007f107f93202b in ?? () from /usr/lib/libQtGui.so.4
#16 0x00007f107f932275 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#17 0x00007f107f61b9c0 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x00007f107f5ccefc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x00007f107f5d4011 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0x00007f10814f2ab6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#21 0x00007f1080686c2c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#22 0x00007f107f5d38e0 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&) () from /usr/lib/libQtGui.so.4
#23 0x00007f107f639a0e in ?? () from /usr/lib/libQtGui.so.4
#24 0x00007f107f638aa9 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#25 0x00007f107f661d0c in ?? () from /usr/lib/libQtGui.so.4
#26 0x00007f1078d49bce in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#27 0x00007f1078d4d598 in ?? () from /lib/libglib-2.0.so.0
#28 0x00007f1078d4d6c0 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#29 0x00007f10806af1a6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#30 0x00007f107f6614be in ?? () from /usr/lib/libQtGui.so.4
#31 0x00007f1080685532 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#32 0x00007f1080685904 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#33 0x00007f1080687ab9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#34 0x0000000000783c44 in main (argc=1, argv=0x7fff73225498) at /home/terri/graphics/digikam/digikam/main.cpp:195
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 caulier.gilles 2010-02-10 20:08:00 UTC
Marcel, Johannes,

It's not already fixed in svn trunk ?

Gilles caulier
Comment 2 Johannes Wienke 2010-02-11 11:51:02 UTC
This doesn't seem to be directly related to model view porting. There's no new class involved in this. Seems to be valid.
Comment 3 Marcel Wiesweg 2010-02-11 20:31:15 UTC
It's probably the same problem

*** This bug has been marked as a duplicate of bug 214340 ***
Comment 4 caulier.gilles 2022-01-22 14:15:47 UTC
Fixed with https://bugs.kde.org/show_bug.cgi?id=214340