Bug 285250

Summary: Digikam crashed after saving changed file
Product: [Applications] digikam Reporter: Kornel.Benko
Component: Database-ModelsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: 0815jo, asala, broucek, caulier.gilles, d.guiraud, denis.germa, dilfridge, efelthauser, franz.sengschmied, kamikaze.tnt, leggis, luc, matthias.mendler, mostro620, sschweizer089, walter, wildrainis
Priority: NOR    
Version: 3.1.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.0.0
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description Kornel.Benko 2011-10-29 12:09:37 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-12-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
Select picture manipulation (f4) # sorry translating from German
	select Graduation
		change some values
		select ok
	select next picture
#now you will be asked how to proceed with the changed picture
select save
	==> crash
# but save as ... works ok

The crash can be reproduced some of the time.

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

Thread 7 (Thread 0x7f19ccfd5700 (LWP 11474)):
#0  0x00007f19ea1d5773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f19e3d59f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19e3d5a792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19d9d0c516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f19e3d7f2b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f19e5c7cefc in start_thread (arg=0x7f19ccfd5700) at pthread_create.c:304
#6  0x00007f19ea1e189d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

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

Thread 5 (Thread 0x7f19c32dc700 (LWP 11476)):
#0  0x00007f19ea1d5773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f19e3d59f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19e3d5a429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19eb050f3e in QEventDispatcherGlib::processEvents (this=0x2ebf0f0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f19eb024cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f19eb024ef7 in QEventLoop::exec (this=0x7f19c32dbb30, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f19eaf3c27f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f19eb007cbf in QInotifyFileSystemWatcherEngine::run (this=0x2ebe380) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f19eaf3ed05 in QThreadPrivate::start (arg=0x2ebe380) at thread/qthread_unix.cpp:331
#9  0x00007f19e5c7cefc in start_thread (arg=0x7f19c32dc700) at pthread_create.c:304
#10 0x00007f19ea1e189d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f19c2adb700 (LWP 11479)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f19eaf3f1ab in wait (time=18446744073709551615, this=0x3724e20) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x37249a8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007f19ede83737 in Digikam::ParkingThread::run (this=0x3724990) at /build/buildd/digikam-2.1.1/core/libs/threads/threadmanager.cpp:119
#4  0x00007f19eaf3ed05 in QThreadPrivate::start (arg=0x3724990) at thread/qthread_unix.cpp:331
#5  0x00007f19e5c7cefc in start_thread (arg=0x7f19c2adb700) at pthread_create.c:304
#6  0x00007f19ea1e189d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f19c02f6700 (LWP 11481)):
#0  0x00007f19ea1d5773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f19e3d59f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f19e3d5a429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f19eb050f3e in QEventDispatcherGlib::processEvents (this=0x38e4660, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f19eb024cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f19eb024ef7 in QEventLoop::exec (this=0x7f19c02f5b30, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f19eaf3c27f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007f19eb007cbf in QInotifyFileSystemWatcherEngine::run (this=0x38e38f0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f19eaf3ed05 in QThreadPrivate::start (arg=0x38e38f0) at thread/qthread_unix.cpp:331
#9  0x00007f19e5c7cefc in start_thread (arg=0x7f19c02f6700) at pthread_create.c:304
#10 0x00007f19ea1e189d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f19a49b7700 (LWP 11529)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f19eaf3f1ab in wait (time=18446744073709551615, this=0x520cc50) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x520ca38, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000006d1b29 in Digikam::ActionThread::run (this=0x520c7c0) at /build/buildd/digikam-2.1.1/core/utilities/queuemanager/manager/actionthread.cpp:163
#4  0x00007f19eaf3ed05 in QThreadPrivate::start (arg=0x520c7c0) at thread/qthread_unix.cpp:331
#5  0x00007f19e5c7cefc in start_thread (arg=0x7f19a49b7700) at pthread_create.c:304
#6  0x00007f19ea1e189d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f19f05aaa20 (LWP 11471)):
[KCrash Handler]
#6  QSortFilterProxyModelPrivate::proxy_to_source (this=0x575d790, proxy_index=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:369
#7  0x00007f19ebfb533d in QSortFilterProxyModel::mapToSource (this=<optimized out>, proxyIndex=<optimized out>) at itemviews/qsortfilterproxymodel.cpp:2500
#8  0x00007f19ed892066 in Digikam::ImageSortFilterModel::mapToSourceImageModel (this=0x575d760, index=<optimized out>) at /build/buildd/digikam-2.1.1/core/libs/models/imagefiltermodel.cpp:126
#9  0x00007f19ed8922ec in Digikam::ImageSortFilterModel::imageInfo (this=0x575d760, index=<optimized out>) at /build/buildd/digikam-2.1.1/core/libs/models/imagefiltermodel.cpp:173
#10 0x000000000048daab in Digikam::ImageWindow::loadIndex (this=<optimized out>, index=...) at /build/buildd/digikam-2.1.1/core/utilities/imageeditor/editor/imagewindow.cpp:755
#11 0x000000000048dd3d in Digikam::ImageWindow::slotForward (this=0x53c23e0) at /build/buildd/digikam-2.1.1/core/utilities/imageeditor/editor/imagewindow.cpp:761
#12 0x000000000049120f in Digikam::ImageWindow::qt_metacall (this=0x53c23e0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffc6c875e0) at /build/buildd/digikam-2.1.1/obj-x86_64-linux-gnu/core/digikam/imagewindow.moc:147
#13 0x00007f19eb038eba in QMetaObject::activate (sender=0x576d930, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffc6c875e0) at kernel/qobject.cpp:3278
#14 0x00007f19eba1fb62 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#15 0x00007f19eba1fd4f in QAction::activate (this=0x576d930, event=<optimized out>) at kernel/qaction.cpp:1257
#16 0x00007f19ebdde43a in QAbstractButtonPrivate::click (this=0x57c85d0) at widgets/qabstractbutton.cpp:528
#17 0x00007f19ebdde6ec in QAbstractButton::mouseReleaseEvent (this=0x53e6140, e=0x7fffc6c87d00) at widgets/qabstractbutton.cpp:1121
#18 0x00007f19ebe9b2da in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:721
#19 0x00007f19eba76c9a in QWidget::event (this=0x53e6140, event=0x7fffc6c87d00) at kernel/qwidget.cpp:8295
#20 0x00007f19eba26424 in notify_helper (e=0x7fffc6c87d00, receiver=0x53e6140, this=0x2b50080) at kernel/qapplication.cpp:4486
#21 QApplicationPrivate::notify_helper (this=0x2b50080, receiver=0x53e6140, e=0x7fffc6c87d00) at kernel/qapplication.cpp:4458
#22 0x00007f19eba2bc6b in QApplication::notify (this=<optimized out>, receiver=0x53e6140, e=0x7fffc6c87d00) at kernel/qapplication.cpp:4047
#23 0x00007f19ec73a126 in KApplication::notify (this=0x7fffc6c88a70, receiver=0x53e6140, event=0x7fffc6c87d00) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007f19eb025afc in QCoreApplication::notifyInternal (this=0x7fffc6c88a70, receiver=0x53e6140, event=0x7fffc6c87d00) at kernel/qcoreapplication.cpp:787
#25 0x00007f19eba273f2 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QApplicationPrivate::sendMouseEvent (receiver=0x53e6140, event=0x7fffc6c87d00, alienWidget=0x53e6140, nativeWidget=0x57b6b80, buttonDown=0x53e6140, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3146
#27 0x00007f19ebaa6945 in QETWidget::translateMouseEvent (this=0x57b6b80, event=<optimized out>) at kernel/qapplication_x11.cpp:4568
#28 0x00007f19ebaa58be in QApplication::x11ProcessEvent (this=0x7fffc6c88a70, event=0x7fffc6c88520) at kernel/qapplication_x11.cpp:3690
#29 0x00007f19ebace412 in x11EventSourceDispatch (s=0x2b59f70, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007f19e3d59a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f19e3d5a258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f19e3d5a429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f19eb050ed6 in QEventDispatcherGlib::processEvents (this=0x2af3470, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#34 0x00007f19ebace07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#35 0x00007f19eb024cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#36 0x00007f19eb024ef7 in QEventLoop::exec (this=0x7fffc6c888f0, flags=...) at kernel/qeventloop.cpp:201
#37 0x00007f19eb029789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#38 0x00000000004893fd in main (argc=1, argv=<optimized out>) at /build/buildd/digikam-2.1.1/core/digikam/main/main.cpp:232

Reported using DrKonqi
Comment 1 caulier.gilles 2011-10-30 09:11:00 UTC
This crash is fixed in next 2.3.0, following fixes from Marcel in editor, through report #280540

Gilles Caulier
Comment 2 caulier.gilles 2011-11-27 19:25:23 UTC
*** Bug 287700 has been marked as a duplicate of this bug. ***
Comment 3 caulier.gilles 2011-12-20 16:28:36 UTC
*** Bug 289389 has been marked as a duplicate of this bug. ***
Comment 4 caulier.gilles 2012-01-07 15:54:54 UTC
*** Bug 290889 has been marked as a duplicate of this bug. ***
Comment 5 caulier.gilles 2012-03-10 22:59:28 UTC
*** Bug 295724 has been marked as a duplicate of this bug. ***
Comment 6 caulier.gilles 2012-04-28 13:09:17 UTC
*** Bug 298953 has been marked as a duplicate of this bug. ***
Comment 7 rob s 2012-06-10 16:17:18 UTC
Created attachment 71703 [details]
New crash information added by DrKonqi

digikam (2.5.0) on KDE Platform 4.8.3 (4.8.3) using Qt 4.8.1

- What I was doing when the application crashed:
I modified the size of an image, and chose Save As, then digiKam crashed.
This crash is reproductible every time I do the same thing.

-- Backtrace (Reduced):
#7  size (this=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qvector.h:137
#8  QSortFilterProxyModelPrivate::proxy_to_source (this=0xa5e91e8, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:370
#9  0xb571d333 in QSortFilterProxyModel::mapToSource (this=0xa5e91d0, proxyIndex=...) at itemviews/qsortfilterproxymodel.cpp:2502
#10 0xb6635e03 in Digikam::ImageSortFilterModel::mapToSourceImageModel (this=0xa5e91d0, index=...) at /build/buildd/digikam-2.5.0/core/libs/models/imagefiltermodel.cpp:127
#11 0xb663614e in Digikam::ImageSortFilterModel::imageInfo (this=0xa5e91d0, index=...) at /build/buildd/digikam-2.5.0/core/libs/models/imagefiltermodel.cpp:174
Comment 8 caulier.gilles 2012-07-22 15:27:29 UTC
*** Bug 303174 has been marked as a duplicate of this bug. ***
Comment 9 Belomir 2012-08-08 11:47:19 UTC
Created attachment 73046 [details]
New crash information added by DrKonqi

digikam (2.5.0) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.1

- What I was doing when the application crashed:

Make some changes like soft rotating and saveing photo after that.
This bug is still appears.

-- Backtrace (Reduced):
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0xb65e420, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:370
#8  0xb5706343 in QSortFilterProxyModel::mapToSource (this=0xb981358, proxyIndex=...) at itemviews/qsortfilterproxymodel.cpp:2502
#9  0xb6621e03 in Digikam::ImageSortFilterModel::mapToSourceImageModel (this=0xb981358, index=...) at /build/buildd/digikam-2.5.0/core/libs/models/imagefiltermodel.cpp:127
#10 0xb662214e in Digikam::ImageSortFilterModel::imageInfo (this=0xb981358, index=...) at /build/buildd/digikam-2.5.0/core/libs/models/imagefiltermodel.cpp:174
#11 0x080bb534 in Digikam::ImageWindow::loadIndex (this=0xb6a0f70, index=...) at /build/buildd/digikam-2.5.0/core/utilities/imageeditor/editor/imagewindow.cpp:768
Comment 10 Andreas K. Huettel 2012-08-20 21:05:59 UTC
Gilles, if we have tons of duplicates of this in 2.5.0 and 2.6.0 it can't be fixed in 2.3.0 ...
Comment 11 caulier.gilles 2012-09-02 15:57:27 UTC
*** Bug 306162 has been marked as a duplicate of this bug. ***
Comment 12 Warren Werner 2012-09-08 11:40:18 UTC
Created attachment 73741 [details]
New crash information added by DrKonqi

digikam (2.5.0) on KDE Platform 4.8.4 (4.8.4) using Qt 4.8.1

- What I was doing when the application crashed:

Start Digikam
Enter Tag-View (on the left)
Choose a tag (so that all images with this tag are shown)
choose an image
press F4
press CTRL+Shift+B (automatic correcion)
edit the image
click OK
so to the next Image
choose Save Image

it begins to save and then crashes.

I mamaged to reproduce this

-- Backtrace (Reduced):
#7  QSortFilterProxyModelPrivate::proxy_to_source (this=0xbe89a18, proxy_index=...) at itemviews/qsortfilterproxymodel.cpp:369
#8  0x02ff2343 in QSortFilterProxyModel::mapToSource (this=0xbe89a00, proxyIndex=...) at itemviews/qsortfilterproxymodel.cpp:2502
#9  0x006b6e03 in Digikam::ImageSortFilterModel::mapToSourceImageModel (this=0xbe89a00, index=...) at /build/buildd/digikam-2.5.0/core/libs/models/imagefiltermodel.cpp:127
#10 0x006b714e in Digikam::ImageSortFilterModel::imageInfo (this=0xbe89a00, index=...) at /build/buildd/digikam-2.5.0/core/libs/models/imagefiltermodel.cpp:174
#11 0x080bb534 in Digikam::ImageWindow::loadIndex (this=0xbc8b070, index=...) at /build/buildd/digikam-2.5.0/core/utilities/imageeditor/editor/imagewindow.cpp:768
Comment 13 caulier.gilles 2012-09-25 19:34:05 UTC
*** Bug 307398 has been marked as a duplicate of this bug. ***
Comment 14 Marcel Wiesweg 2012-10-06 20:58:55 UTC
Code changed for 3.0. If anyone can reproduce with upcoming 3.0 or current git (not beta1), we'd need a new backtrace.
Comment 15 A. Sala 2012-12-07 00:50:40 UTC
I am using the kubuntu-ppa version 2.8.0 (with kde 4.9.4): digikam freezes and I have to kill it.
The file gets actually saved, but digikam freezes one every three saves (roughly).
Workflow gets quite difficult.
Comment 16 caulier.gilles 2012-12-07 06:19:38 UTC
As it's annoted in comment #14, problem is fixed in next 3.0.0 release...

Gilles Caulier
Comment 17 caulier.gilles 2013-02-24 08:19:18 UTC
*** Bug 315709 has been marked as a duplicate of this bug. ***
Comment 18 caulier.gilles 2013-04-01 08:41:31 UTC
*** Bug 317670 has been marked as a duplicate of this bug. ***
Comment 19 caulier.gilles 2013-05-12 21:45:47 UTC
*** Bug 319745 has been marked as a duplicate of this bug. ***
Comment 20 caulier.gilles 2013-05-12 21:47:46 UTC
Marcel, 

With bug #319745 this problem is back into 3.1.0...

Gilles Caulier
Comment 21 caulier.gilles 2013-05-17 17:56:04 UTC
*** Bug 319948 has been marked as a duplicate of this bug. ***
Comment 22 caulier.gilles 2013-10-31 07:52:45 UTC
digiKam 3.5.0 is out.

Can you give a fresh feedback about your report ? Crash still reproducible ?

Thanks in advance

Gilles Caulier
Comment 23 Kornel.Benko 2013-10-31 12:05:48 UTC
I tried again with my installed version (2.5.0), but could not crash it.
In the last year since my report I did not observe any crash.
Sorry for not giving feedback earlier.
Comment 24 Kornel.Benko 2013-10-31 12:58:24 UTC
Am Donnerstag, 31. Oktober 2013 um 07:52:45, schrieb Gilles Caulier <caulier.gilles@gmail.com>
> https://bugs.kde.org/show_bug.cgi?id=285250
> 
> --- Comment #22 from Gilles Caulier <caulier.gilles@gmail.com> ---
> digiKam 3.5.0 is out.
> 
> Can you give a fresh feedback about your report ? Crash still reproducible ?
> 
> Thanks in advance
> 
> Gilles Caulier


I am resending this, this time hopefully without the html part.

I tried again with my installed version (2.5.0), but could not crash it.
In the last year since my report I did not observe any crash.
Sorry for not giving feedback earlier.

	Kornel
Comment 25 caulier.gilles 2013-10-31 13:09:32 UTC
Thanks for the feedback. I close this file now.

Gilles Caulier