Bug 289389

Summary: DigiKam crash upon saving changes to images
Product: [Applications] digikam Reporter: kamikaze.tnt
Component: Database-ModelsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 2.1.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 7.4.0

Description kamikaze.tnt 2011-12-19 22:50:57 UTC
Application: digikam (2.1.1)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-14-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed: I cropped or otherwise edited a picture and then I tried to save it, confirmed "overwrite" and the program crashed, repeatedly. Rebooting didn't help. The program crashed upon every "save" command. The actual "save" operation is, however, always successful. I discovered the problem today, haven't got any idea it there was some update of the program recently, I haven't used it for a while.

The crash can be reproduced every time.

-- Backtrace:
Application: digiKam (digikam), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fee699b9a20 (LWP 2821))]

Thread 5 (Thread 0x7fee4667a700 (LWP 2823)):
#0  __pthread_getspecific (key=2) at pthread_getspecific.c:58
#1  0x00007fee5d1733dd in g_thread_self () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fee5d14b610 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fee5d14cd81 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fee5d14d792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fee533f5516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007fee5d1722b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fee5f06fefc in start_thread (arg=0x7fee4667a700) at pthread_create.c:304
#8  0x00007fee635d489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fee3d690700 (LWP 2824)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fee643321ab in wait (time=18446744073709551615, this=0x2638390) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x2638238, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005c2e20 in Digikam::ScanController::run (this=0x2637f20) at /build/buildd/digikam-2.1.1/core/digikam/database/scancontroller.cpp:647
#4  0x00007fee64331d05 in QThreadPrivate::start (arg=0x2637f20) at thread/qthread_unix.cpp:331
#5  0x00007fee5f06fefc in start_thread (arg=0x7fee3d690700) at pthread_create.c:304
#6  0x00007fee635d489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fee3ce8f700 (LWP 2825)):
#0  0x00007fee635c8773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fee5d14cf68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fee5d14d429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fee64443f3e in QEventDispatcherGlib::processEvents (this=0x2629130, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fee64417cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fee64417ef7 in QEventLoop::exec (this=0x7fee3ce8eb30, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007fee6432f27f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007fee643facbf in QInotifyFileSystemWatcherEngine::run (this=0x26283b0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fee64331d05 in QThreadPrivate::start (arg=0x26283b0) at thread/qthread_unix.cpp:331
#9  0x00007fee5f06fefc in start_thread (arg=0x7fee3ce8f700) at pthread_create.c:304
#10 0x00007fee635d489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fee3c68e700 (LWP 2827)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fee643321ab in wait (time=18446744073709551615, this=0x7fee40052030) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7fee4023fa68, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fee67276737 in Digikam::ParkingThread::run (this=0x7fee4023fa50) at /build/buildd/digikam-2.1.1/core/libs/threads/threadmanager.cpp:119
#4  0x00007fee64331d05 in QThreadPrivate::start (arg=0x7fee4023fa50) at thread/qthread_unix.cpp:331
#5  0x00007fee5f06fefc in start_thread (arg=0x7fee3c68e700) at pthread_create.c:304
#6  0x00007fee635d489d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fee699b9a20 (LWP 2821)):
[KCrash Handler]
#6  size (this=0x690074006c006f) at ../../include/QtCore/../../src/corelib/tools/qvector.h:124
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0x7fee40700fb0, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:369
#8  0x00007fee653a833d in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:2500
#9  0x00007fee66c85066 in Digikam::ImageSortFilterModel::mapToSourceImageModel (this=0x7fee40700f80, index=<optimized out>) at /build/buildd/digikam-2.1.1/core/libs/models/imagefiltermodel.cpp:126
#10 0x00007fee66c852ec in Digikam::ImageSortFilterModel::imageInfo (this=0x7fee40700f80, index=<optimized out>) at /build/buildd/digikam-2.1.1/core/libs/models/imagefiltermodel.cpp:173
#11 0x000000000048daab in Digikam::ImageWindow::loadIndex (this=<optimized out>, index=...) at /build/buildd/digikam-2.1.1/core/utilities/imageeditor/editor/imagewindow.cpp:755
#12 0x000000000048dd3d in Digikam::ImageWindow::slotForward (this=0x3c26880) at /build/buildd/digikam-2.1.1/core/utilities/imageeditor/editor/imagewindow.cpp:761
#13 0x000000000049120f in Digikam::ImageWindow::qt_metacall (this=0x3c26880, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff9cc862c0) at /build/buildd/digikam-2.1.1/obj-x86_64-linux-gnu/core/digikam/imagewindow.moc:147
#14 0x00007fee6442beba in QMetaObject::activate (sender=0x7fee40710490, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff9cc862c0) at kernel/qobject.cpp:3278
#15 0x00007fee64e12b62 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#16 0x00007fee64e12d4f in QAction::activate (this=0x7fee40710490, event=<optimized out>) at kernel/qaction.cpp:1257
#17 0x00007fee64e12ebf in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#18 0x00007fee65a4686a in KAction::event (this=<optimized out>, event=0x7fff9cc86750) at ../../kdeui/actions/kaction.cpp:131
#19 0x00007fee64e19424 in notify_helper (e=0x7fff9cc86750, receiver=0x7fee40710490, this=0x2324dc0) at kernel/qapplication.cpp:4486
#20 QApplicationPrivate::notify_helper (this=0x2324dc0, receiver=0x7fee40710490, e=0x7fff9cc86750) at kernel/qapplication.cpp:4458
#21 0x00007fee64e1e291 in QApplication::notify (this=0x7fff9cc87af0, receiver=0x7fee40710490, e=0x7fff9cc86750) at kernel/qapplication.cpp:4365
#22 0x00007fee65b2d126 in KApplication::notify (this=0x7fff9cc87af0, receiver=0x7fee40710490, event=0x7fff9cc86750) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007fee64418afc in QCoreApplication::notifyInternal (this=0x7fff9cc87af0, receiver=0x7fee40710490, event=0x7fff9cc86750) at kernel/qcoreapplication.cpp:787
#24 0x00007fee64e4b499 in sendEvent (event=0x7fff9cc86750, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#25 QShortcutMap::dispatchEvent (this=<optimized out>, e=0x7fff9cc86b60) at kernel/qshortcutmap.cpp:879
#26 0x00007fee64e4c96a in QShortcutMap::tryShortcutEvent (this=0x2324ee8, o=<optimized out>, e=0x7fff9cc86b60) at kernel/qshortcutmap.cpp:364
#27 0x00007fee64e1fb12 in QApplication::notify (this=0x7fff9cc87af0, receiver=0x3c71610, e=0x7fff9cc86b60) at kernel/qapplication.cpp:3928
#28 0x00007fee65b2d126 in KApplication::notify (this=0x7fff9cc87af0, receiver=0x3c71610, event=0x7fff9cc86b60) at ../../kdeui/kernel/kapplication.cpp:311
#29 0x00007fee64418afc in QCoreApplication::notifyInternal (this=0x7fff9cc87af0, receiver=0x3c71610, event=0x7fff9cc86b60) at kernel/qcoreapplication.cpp:787
#30 0x00007fee64ebcf99 in QKeyMapper::sendKeyEvent (keyWidget=0x3c71610, grab=<optimized out>, type=QEvent::KeyPress, code=32, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=65, nativeVirtualKey=32, nativeModifiers=16) at kernel/qkeymapper_x11.cpp:1866
#31 0x00007fee64ebd40b in QKeyMapperPrivate::translateKeyEvent (this=0x235f970, keyWidget=0x3c71610, event=0x7fff9cc875a0, grab=false) at kernel/qkeymapper_x11.cpp:1836
#32 0x00007fee64e98347 in QApplication::x11ProcessEvent (this=0x7fff9cc87af0, event=0x7fff9cc875a0) at kernel/qapplication_x11.cpp:3583
#33 0x00007fee64ec1412 in x11EventSourceDispatch (s=0x2328a70, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x00007fee5d14ca5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fee5d14d258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fee5d14d429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007fee64443ed6 in QEventDispatcherGlib::processEvents (this=0x22ca490, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#38 0x00007fee64ec107e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007fee64417cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007fee64417ef7 in QEventLoop::exec (this=0x7fff9cc87970, flags=...) at kernel/qeventloop.cpp:201
#41 0x00007fee6441c789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#42 0x00000000004893fd in main (argc=1, argv=<optimized out>) at /build/buildd/digikam-2.1.1/core/digikam/main/main.cpp:232

Possible duplicates by query: bug 259161.

Reported using DrKonqi
Comment 1 caulier.gilles 2011-12-20 16:28:36 UTC

*** This bug has been marked as a duplicate of bug 285250 ***
Comment 2 caulier.gilles 2021-08-26 11:33:21 UTC
Fixed with #285250