Bug 274199 - Digikam crashed when using "inpainting" tool
Summary: Digikam crashed when using "inpainting" tool
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-GmicQt (show other bugs)
Version: 2.0.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 15:34 UTC by gutheory
Modified: 2023-03-23 09:41 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.8.0


Attachments
New crash information added by DrKonqi (15.89 KB, text/plain)
2011-08-03 19:48 UTC, PJR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gutheory 2011-05-26 15:34:46 UTC
Application: digikam (2.0.0-beta5)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
I was on working on a tiff file in Digikam.
Using "inpainting" tool at the time. 

No other actions outside of Digikam at that particular time.

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

Thread 5 (Thread 0x7facd9f16700 (LWP 14805)):
#0  0x00007face9d41081 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007face9d419f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007face4b9cc44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#3  0x00007face9d683e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007facef90dd8c in start_thread (arg=0x7facd9f16700) at pthread_create.c:304
#5  0x00007facefc0b04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7faccb4b8700 (LWP 14807)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007facf0c3682b in wait (this=<value optimized out>, mutex=0x216bf08, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x216bf08, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005bf1f8 in Digikam::ScanController::run (this=0x216bc00) at /build/buildd/digikam2-2.0.0~beta5/core/digikam/database/scancontroller.cpp:602
#4  0x00007facf0c36175 in QThreadPrivate::start (arg=0x216bc00) at thread/qthread_unix.cpp:320
#5  0x00007facef90dd8c in start_thread (arg=0x7faccb4b8700) at pthread_create.c:304
#6  0x00007facefc0b04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7faccacb7700 (LWP 14808)):
#0  __pthread_mutex_lock (mutex=0x2170638) at pthread_mutex_lock.c:127
#1  0x00007face9d400d3 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007face9d40f9d in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007face9d41639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007facf0d48446 in QEventDispatcherGlib::processEvents (this=0x2170170, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007facf0d1c882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007facf0d1cabc in QEventLoop::exec (this=0x7faccacb6b30, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007facf0c33924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007facf0cfec2f in QInotifyFileSystemWatcherEngine::run (this=0x216e920) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007facf0c36175 in QThreadPrivate::start (arg=0x216e920) at thread/qthread_unix.cpp:320
#10 0x00007facef90dd8c in start_thread (arg=0x7faccacb7700) at pthread_create.c:304
#11 0x00007facefc0b04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7facca4b6700 (LWP 14810)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007facf0c3682b in wait (this=<value optimized out>, mutex=0x22efd68, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x22efd68, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007facf5094db7 in Digikam::ParkingThread::run (this=0x22efd50) at /build/buildd/digikam2-2.0.0~beta5/core/libs/threads/threadmanager.cpp:119
#4  0x00007facf0c36175 in QThreadPrivate::start (arg=0x22efd50) at thread/qthread_unix.cpp:320
#5  0x00007facef90dd8c in start_thread (arg=0x7facca4b6700) at pthread_create.c:304
#6  0x00007facefc0b04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7facf8588a20 (LWP 14803)):
[KCrash Handler]
#6  0x00007facb72a45a1 in DigikamEnhanceImagePlugin::InPaintingTool::putFinalData (this=0x33c2620) at /build/buildd/digikam2-2.0.0~beta5/core/imageplugins/enhance/inpaintingtool.cpp:460
#7  0x00007facf5176327 in Digikam::EditorToolThreaded::slotFilterFinished (this=0x33c2620, success=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/core/utilities/imageeditor/editor/editortool.cpp:480
#8  0x00007facf5175851 in Digikam::EditorToolThreaded::slotOk (this=0x33c2620) at /build/buildd/digikam2-2.0.0~beta5/core/utilities/imageeditor/editor/editortool.cpp:548
#9  0x00007facf5176681 in Digikam::EditorToolThreaded::qt_metacall (this=0x33c2620, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff332708d0) at /build/buildd/digikam2-2.0.0~beta5/obj-x86_64-linux-gnu/core/digikam/editortool.moc:195
#10 0x00007facb72a4450 in DigikamEnhanceImagePlugin::InPaintingTool::qt_metacall (this=0x33c2620, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff332708d0) at /build/buildd/digikam2-2.0.0~beta5/obj-x86_64-linux-gnu/core/imageplugins/enhance/inpaintingtool.moc:74
#11 0x00007facf0d325f8 in QMetaObject::activate (sender=0x36c1e90, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#12 0x00007facf517803c in Digikam::EditorToolSettings::qt_metacall (this=0x36c1e90, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at /build/buildd/digikam2-2.0.0~beta5/obj-x86_64-linux-gnu/core/digikam/editortoolsettings.moc:85
#13 0x00007facf0d325f8 in QMetaObject::activate (sender=0x31b1610, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff33270a10) at kernel/qobject.cpp:3287
#14 0x00007facf1faa252 in QAbstractButton::clicked (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#15 0x00007facf1cf383e in QAbstractButtonPrivate::emitClicked (this=0x3a81fe0) at widgets/qabstractbutton.cpp:546
#16 0x00007facf1cf4dbb in QAbstractButtonPrivate::click (this=0x3a81fe0) at widgets/qabstractbutton.cpp:539
#17 0x00007facf1cf502c in QAbstractButton::mouseReleaseEvent (this=0x31b1610, e=0x7fff33271350) at widgets/qabstractbutton.cpp:1121
#18 0x00007facf1985cb8 in QWidget::event (this=0x31b1610, event=0x7fff33271350) at kernel/qwidget.cpp:8259
#19 0x00007facf19349e4 in QApplicationPrivate::notify_helper (this=0x1f26c40, receiver=0x31b1610, e=0x7fff33271350) at kernel/qapplication.cpp:4462
#20 0x00007facf1939db3 in QApplication::notify (this=<value optimized out>, receiver=0x31b1610, e=0x7fff33271350) at kernel/qapplication.cpp:4023
#21 0x00007facf2653866 in KApplication::notify (this=0x7fff33272150, receiver=0x31b1610, event=0x7fff33271350) at ../../kdeui/kernel/kapplication.cpp:311
#22 0x00007facf0d1d49c in QCoreApplication::notifyInternal (this=0x7fff33272150, receiver=0x31b1610, event=0x7fff33271350) at kernel/qcoreapplication.cpp:731
#23 0x00007facf1935a0d in sendEvent (receiver=0x31b1610, event=0x7fff33271350, alienWidget=0x31b1610, nativeWidget=0x36c1e90, buttonDown=0x7facf2415218, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#24 QApplicationPrivate::sendMouseEvent (receiver=0x31b1610, event=0x7fff33271350, alienWidget=0x31b1610, nativeWidget=0x36c1e90, buttonDown=0x7facf2415218, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#25 0x00007facf19b5600 in QETWidget::translateMouseEvent (this=0x36c1e90, event=<value optimized out>) at kernel/qapplication_x11.cpp:4556
#26 0x00007facf19b404a in QApplication::x11ProcessEvent (this=0x7fff33272150, event=0x7fff33271ca0) at kernel/qapplication_x11.cpp:3678
#27 0x00007facf19dc162 in x11EventSourceDispatch (s=0x1f2a4b0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00007face9d40bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007face9d413a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007face9d41639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007facf0d483ef in QEventDispatcherGlib::processEvents (this=0x1ea23d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#32 0x00007facf19dbdfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007facf0d1c882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007facf0d1cabc in QEventLoop::exec (this=0x7fff33271fa0, flags=...) at kernel/qeventloop.cpp:201
#35 0x00007facf0d20ecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#36 0x0000000000693484 in main (argc=5, argv=0x7fff33272998) at /build/buildd/digikam2-2.0.0~beta5/core/digikam/main/main.cpp:232

Reported using DrKonqi
Comment 1 caulier.gilles 2011-07-02 18:36:01 UTC
*** Bug 276962 has been marked as a duplicate of this bug. ***
Comment 2 caulier.gilles 2011-07-31 14:34:10 UTC
*** Bug 278941 has been marked as a duplicate of this bug. ***
Comment 3 caulier.gilles 2011-07-31 14:34:40 UTC
*** Bug 277739 has been marked as a duplicate of this bug. ***
Comment 4 PJR 2011-08-03 19:48:50 UTC
Created attachment 62517 [details]
New crash information added by DrKonqi

digikam (2.0.0) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2

Used inpainting for a PEF file. Nothing else.

-- Backtrace (Reduced):
#6  0x00007f96d8603711 in DigikamEnhanceImagePlugin::InPaintingTool::putFinalData (this=0x3b47980) at /build/buildd/digikam2-2.0.0/core/imageplugins/enhance/inpaintingtool.cpp:460
#7  0x00007f9722b2ff37 in Digikam::EditorToolThreaded::slotFilterFinished (this=0x3b47980, success=<value optimized out>) at /build/buildd/digikam2-2.0.0/core/utilities/imageeditor/editor/editortool.cpp:480
#8  0x00007f9722b2f461 in Digikam::EditorToolThreaded::slotOk (this=0x3b47980) at /build/buildd/digikam2-2.0.0/core/utilities/imageeditor/editor/editortool.cpp:548
#9  0x00007f9722b30291 in Digikam::EditorToolThreaded::qt_metacall (this=0x3b47980, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa3868b30) at /build/buildd/digikam2-2.0.0/obj-x86_64-linux-gnu/core/digikam/editortool.moc:195
#10 0x00007f96d86035c0 in DigikamEnhanceImagePlugin::InPaintingTool::qt_metacall (this=0x3b47980, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffa3868b30) at /build/buildd/digikam2-2.0.0/obj-x86_64-linux-gnu/core/imageplugins/enhance/inpaintingtool.moc:74
Comment 5 PJR 2011-08-03 20:18:53 UTC
Tried with jpg with the same result (crash) every time.
Comment 6 Marcel Wiesweg 2011-08-06 13:54:21 UTC
Git commit 5d4f516eae5bc7a3c66caaf14a40b8987da95648 by Marcel Wiesweg.
Committed on 06/08/2011 at 15:53.
Pushed by mwiesweg into branch 'master'.

Fix crash: The filter reuses the preview result if available. In that case, filter() is null.

BUG: 274199

M  +2    -1    NEWS
M  +7    -1    imageplugins/enhance/inpaintingtool.cpp

http://commits.kde.org/digikam/5d4f516eae5bc7a3c66caaf14a40b8987da95648
Comment 7 caulier.gilles 2011-09-12 20:17:18 UTC
*** Bug 281892 has been marked as a duplicate of this bug. ***
Comment 8 caulier.gilles 2017-09-05 05:10:39 UTC
With 5.8.0, in-painting image editor tool was been replaced by a Clone tool.

More details here : 

https://community.kde.org/GSoC/2017/StatusReports/shazaismailkaoud

Gilles Caulier