Bug 278941

Summary: Crash when trying to perform "In-Painting"
Product: [Applications] digikam Reporter: Steve <shughes2>
Component: Plugin-Editor-CloneAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 2.1.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.8.0
Sentry Crash Report:

Description Steve 2011-07-31 14:24:09 UTC
Application: digikam (2.1.0)
KDE Platform Version: 4.7.00 (4.7.0)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-10-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:
Perfroming In-Painting.  Area to in-paint was selected, before and after woked fine.  Crash occured when "OK" button was hit.  This happens everytime

The crash can be reproduced every time.

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

Thread 5 (Thread 0x7ff3053f6700 (LWP 6152)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff31fd1482b in wait (this=<value optimized out>, mutex=0xfcd7d8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0xfcd7d8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00000000005d7f9d in Digikam::ScanController::run (this=0xf47890) at /home/steve/tmp/digikam-software-compilation/core/digikam/database/scancontroller.cpp:618
#4  0x00007ff31fd14175 in QThreadPrivate::start (arg=0xf47890) at thread/qthread_unix.cpp:320
#5  0x00007ff31e9f0d8c in start_thread (arg=0x7ff3053f6700) at pthread_create.c:304
#6  0x00007ff31ecee04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff304bf5700 (LWP 6153)):
#0  0x00007ff31ece0f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff319c17fd9 in g_main_context_poll (context=0xf50160, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3404
#2  g_main_context_iterate (context=0xf50160, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3086
#3  0x00007ff319c1842c in g_main_context_iteration (context=0xf50160, may_block=1) at gmain.c:3154
#4  0x00007ff31fe26446 in QEventDispatcherGlib::processEvents (this=0xfa4b20, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007ff31fdfa882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007ff31fdfaabc in QEventLoop::exec (this=0x7ff304bf4bd0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007ff31fd11924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007ff31fddcc2f in QInotifyFileSystemWatcherEngine::run (this=0xfa6c60) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007ff31fd14175 in QThreadPrivate::start (arg=0xfa6c60) at thread/qthread_unix.cpp:320
#10 0x00007ff31e9f0d8c in start_thread (arg=0x7ff304bf5700) at pthread_create.c:304
#11 0x00007ff31ecee04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ff2fffff700 (LWP 6226)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff31fd1482b in wait (this=<value optimized out>, mutex=0x12f98b8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x12f98b8, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007ff32445bcd5 in Digikam::ParkingThread::run (this=0x12f98a0) at /home/steve/tmp/digikam-software-compilation/core/libs/threads/threadmanager.cpp:119
#4  0x00007ff31fd14175 in QThreadPrivate::start (arg=0x12f98a0) at thread/qthread_unix.cpp:320
#5  0x00007ff31e9f0d8c in start_thread (arg=0x7ff2fffff700) at pthread_create.c:304
#6  0x00007ff31ecee04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff2fd7ca700 (LWP 6227)):
#0  0x00007ff31ece0f03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff319c17fd9 in g_main_context_poll (context=0x16804e0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3404
#2  g_main_context_iterate (context=0x16804e0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3086
#3  0x00007ff319c1842c in g_main_context_iteration (context=0x16804e0, may_block=1) at gmain.c:3154
#4  0x00007ff31fe26446 in QEventDispatcherGlib::processEvents (this=0x1680150, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007ff31fdfa882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007ff31fdfaabc in QEventLoop::exec (this=0x7ff2fd7c9bd0, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007ff31fd11924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007ff31fddcc2f in QInotifyFileSystemWatcherEngine::run (this=0x167f210) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007ff31fd14175 in QThreadPrivate::start (arg=0x167f210) at thread/qthread_unix.cpp:320
#10 0x00007ff31e9f0d8c in start_thread (arg=0x7ff2fd7ca700) at pthread_create.c:304
#11 0x00007ff31ecee04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff327a0b980 (LWP 6151)):
[KCrash Handler]
#6  0x00007ff2de43c226 in DigikamEnhanceImagePlugin::InPaintingTool::putFinalData (this=0x4a16470) at /home/steve/tmp/digikam-software-compilation/core/imageplugins/enhance/inpaintingtool.cpp:460
#7  0x00007ff32454c26d in Digikam::EditorToolThreaded::slotFilterFinished (this=0x4a16470, success=true) at /home/steve/tmp/digikam-software-compilation/core/utilities/imageeditor/editor/editortool.cpp:480
#8  0x00007ff2de43bf42 in DigikamEnhanceImagePlugin::InPaintingTool::prepareFinal (this=0x4a16470) at /home/steve/tmp/digikam-software-compilation/core/imageplugins/enhance/inpaintingtool.cpp:429
#9  0x00007ff32454c7dc in Digikam::EditorToolThreaded::slotOk (this=0x4a16470) at /home/steve/tmp/digikam-software-compilation/core/utilities/imageeditor/editor/editortool.cpp:548
#10 0x00007ff32454abef in Digikam::EditorToolThreaded::qt_metacall (this=0x4a16470, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff17be37f0) at /home/steve/tmp/digikam-software-compilation/build/core/digikam/editortool.moc:195
#11 0x00007ff2de439c70 in DigikamEnhanceImagePlugin::InPaintingTool::qt_metacall (this=0x4a16470, _c=QMetaObject::InvokeMetaMethod, _id=21, _a=0x7fff17be37f0) at /home/steve/tmp/digikam-software-compilation/build/core/imageplugins/enhance/inpaintingtool.moc:74
#12 0x00007ff31fe105f8 in QMetaObject::activate (sender=0x432cf10, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#13 0x00007ff32454f081 in Digikam::EditorToolSettings::signalOkClicked (this=0x432cf10) at /home/steve/tmp/digikam-software-compilation/build/core/digikam/editortoolsettings.moc:104
#14 0x00007ff32454efde in Digikam::EditorToolSettings::qt_metacall (this=0x432cf10, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff17be3950) at /home/steve/tmp/digikam-software-compilation/build/core/digikam/editortoolsettings.moc:85
#15 0x00007ff31fe105f8 in QMetaObject::activate (sender=0x2e183d0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff17be3950) at kernel/qobject.cpp:3287
#16 0x00007ff321085942 in QAbstractButton::clicked (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:206
#17 0x00007ff320dcef2e in QAbstractButtonPrivate::emitClicked (this=0x4a4a450) at widgets/qabstractbutton.cpp:546
#18 0x00007ff320dd04ab in QAbstractButtonPrivate::click (this=0x4a4a450) at widgets/qabstractbutton.cpp:539
#19 0x00007ff320dd071c in QAbstractButton::mouseReleaseEvent (this=0x2e183d0, e=0x7fff17be4290) at widgets/qabstractbutton.cpp:1121
#20 0x00007ff320a5ecc8 in QWidget::event (this=0x2e183d0, event=0x7fff17be4290) at kernel/qwidget.cpp:8259
#21 0x00007ff320a0d9f4 in QApplicationPrivate::notify_helper (this=0xdfa0e0, receiver=0x2e183d0, e=0x7fff17be4290) at kernel/qapplication.cpp:4462
#22 0x00007ff320a12dc3 in QApplication::notify (this=<value optimized out>, receiver=0x2e183d0, e=0x7fff17be4290) at kernel/qapplication.cpp:4023
#23 0x00007ff32171d796 in KApplication::notify (this=0x7fff17be50c0, receiver=0x2e183d0, event=0x7fff17be4290) at ../../kdeui/kernel/kapplication.cpp:311
#24 0x00007ff31fdfb49c in QCoreApplication::notifyInternal (this=0x7fff17be50c0, receiver=0x2e183d0, event=0x7fff17be4290) at kernel/qcoreapplication.cpp:731
#25 0x00007ff320a0ea1d in sendEvent (receiver=0x2e183d0, event=0x7fff17be4290, alienWidget=0x2e183d0, nativeWidget=0x432cf10, buttonDown=0x7ff3214f1218, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#26 QApplicationPrivate::sendMouseEvent (receiver=0x2e183d0, event=0x7fff17be4290, alienWidget=0x2e183d0, nativeWidget=0x432cf10, buttonDown=0x7ff3214f1218, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3122
#27 0x00007ff320a90190 in QETWidget::translateMouseEvent (this=0x432cf10, event=<value optimized out>) at kernel/qapplication_x11.cpp:4558
#28 0x00007ff320a8eab7 in QApplication::x11ProcessEvent (this=0x7fff17be50c0, event=0x7fff17be4be0) at kernel/qapplication_x11.cpp:3680
#29 0x00007ff320ab7842 in x11EventSourceDispatch (s=0xdff9e0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#30 0x00007ff319c13ba2 in g_main_dispatch (context=0xdfdee0) at gmain.c:2440
#31 g_main_context_dispatch (context=0xdfdee0) at gmain.c:3013
#32 0x00007ff319c18278 in g_main_context_iterate (context=0xdfdee0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3091
#33 0x00007ff319c1842c in g_main_context_iteration (context=0xdfdee0, may_block=1) at gmain.c:3154
#34 0x00007ff31fe263ef in QEventDispatcherGlib::processEvents (this=0xd76f80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#35 0x00007ff320ab74de in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#36 0x00007ff31fdfa882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#37 0x00007ff31fdfaabc in QEventLoop::exec (this=0x7fff17be4f10, flags=...) at kernel/qeventloop.cpp:201
#38 0x00007ff31fdfeecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#39 0x00000000006b44ea in main (argc=5, argv=0x7fff17be5778) at /home/steve/tmp/digikam-software-compilation/core/digikam/main/main.cpp:232

Reported using DrKonqi
Comment 1 caulier.gilles 2011-07-31 14:34:10 UTC

*** This bug has been marked as a duplicate of bug 274199 ***
Comment 2 caulier.gilles 2017-09-05 05:10:46 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