Bug 279700

Summary: Crash while editing curve
Product: [Applications] krita Reporter: Tushant <tushantin>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tushant 2011-08-08 22:21:34 UTC
Application: krita (2.3.3)
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-10-generic-pae i686
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:

Via 'Comic Template' select 'Manga Template'. In Canvas, select the second tool from the toolbox and draw a line. Now, using the cursor try dragging the line from between, either normally or by pressing Ctrl+Click and dragging. Program crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0xb301b720 (LWP 5360))]

Thread 5 (Thread 0xb2b7eb70 (LWP 5361)):
#0  0xb77e8424 in __kernel_vsyscall ()
#1  0xb771cf76 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb56ec84b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb56dc1af in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb56dc92b in g_main_loop_run () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb2cbb304 in ?? () from /usr/lib/i386-linux-gnu/libgio-2.0.so.0
#6  0xb57052df in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb578ee99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0xb772b73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 4 (Thread 0xabd52b70 (LWP 5364)):
#0  0xb52a5d41 in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0xb6669dd8 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb67364f2 in updateCurrentTime (this=0xb579010, tm=...) at kernel/qeventdispatcher_unix.cpp:339
#4  QTimerInfoList::timerWait (this=0xb579010, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0xb67383a3 in QEventDispatcherUNIX::processEvents (this=0xb579498, flags=...) at kernel/qeventdispatcher_unix.cpp:906
#6  0xb6707289 in QEventLoop::processEvents (this=0xabd52280, flags=...) at kernel/qeventloop.cpp:149
#7  0xb6707522 in QEventLoop::exec (this=0xabd52280, flags=...) at kernel/qeventloop.cpp:201
#8  0xb66112a0 in QThread::exec (this=0xb56c2c8) at thread/qthread.cpp:492
#9  0xb66e8fdb in QInotifyFileSystemWatcherEngine::run (this=0xb56c2c8) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb6613da2 in QThreadPrivate::start (arg=0xb56c2c8) at thread/qthread_unix.cpp:320
#11 0xb578ee99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb772b73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 3 (Thread 0xaa4fdb70 (LWP 5365)):
#0  0xb52a5d41 in clock_gettime () from /lib/i386-linux-gnu/librt.so.1
#1  0xb6669dd8 in do_gettime () at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb6737525 in updateCurrentTime (this=0xb607758, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:339
#4  QEventDispatcherUNIXPrivate::doSelect (this=0xb607758, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:182
#5  0xb6738326 in QEventDispatcherUNIX::processEvents (this=0xb4f9e70, flags=...) at kernel/qeventdispatcher_unix.cpp:919
#6  0xb6707289 in QEventLoop::processEvents (this=0xaa4fd280, flags=...) at kernel/qeventloop.cpp:149
#7  0xb6707522 in QEventLoop::exec (this=0xaa4fd280, flags=...) at kernel/qeventloop.cpp:201
#8  0xb66112a0 in QThread::exec (this=0xb554068) at thread/qthread.cpp:492
#9  0xb66e8fdb in QInotifyFileSystemWatcherEngine::run (this=0xb554068) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb6613da2 in QThreadPrivate::start (arg=0xb554068) at thread/qthread_unix.cpp:320
#11 0xb578ee99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0xb772b73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xa9cfcb70 (LWP 5367)):
#0  0xb77e8424 in __kernel_vsyscall ()
#1  0xb579348c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb77393fd in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb6614467 in wait (this=0xb218f24, mutex=0xb218f20, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#4  QWaitCondition::wait (this=0xb218f24, mutex=0xb218f20, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#5  0xb6610d25 in QSemaphore::tryAcquire (this=0xb6676b8, n=1, timeout=-1) at thread/qsemaphore.cpp:221
#6  0xae7c7930 in KisTileDataSwapper::waitForWork (this=0xb68a8b4) at ../../../krita/image/tiles3/swap/kis_tile_data_swapper.cpp:84
#7  0xae7c7aa4 in KisTileDataSwapper::run (this=0xb68a8b4) at ../../../krita/image/tiles3/swap/kis_tile_data_swapper.cpp:90
#8  0xb6613da2 in QThreadPrivate::start (arg=0xb68a8b4) at thread/qthread_unix.cpp:320
#9  0xb578ee99 in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#10 0xb772b73e in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb301b720 (LWP 5360)):
[KCrash Handler]
#7  KoShape::absoluteTransformation (this=0x0, converter=0x0) at ../../../libs/flake/KoShape.cpp:1529
#8  0xb5f7c576 in KoShape::documentToShape (this=0x0, point=...) at ../../../libs/flake/KoShape.cpp:1410
#9  0xae364518 in ConnectionTool::mouseReleaseEvent (this=0xf32de58, event=0xbf98dc78) at ../../../plugins/defaultTools/connectionTool/ConnectionTool.cpp:296
#10 0xb5facf64 in KoToolProxy::mouseReleaseEvent (this=0xf2d9768, event=0xbf98e374, point=...) at ../../../libs/flake/KoToolProxy.cpp:281
#11 0xae99be9d in KisCanvasWidgetBase::processMouseReleaseEvent (this=0xf2d8f24, e=0xbf98e374) at ../../../krita/ui/canvas/kis_canvas_widget_base.cpp:247
#12 0xae9ad3c7 in KisQPainterCanvas::mouseReleaseEvent (this=0xf2d8f10, e=0xbf98e374) at ../../../krita/ui/canvas/kis_qpainter_canvas.cpp:200
#13 0xb6c3d13a in QWidget::event (this=0xf2d8f10, event=0xbf98e374) at kernel/qwidget.cpp:8259
#14 0xae9ad517 in KisQPainterCanvas::event (this=0xf2d8f10, e=0xbf98e374) at ../../../krita/ui/canvas/kis_qpainter_canvas.cpp:170
#15 0xb6be4d24 in QApplicationPrivate::notify_helper (this=0x9c7b808, receiver=0xf2d8f10, e=0xbf98e374) at kernel/qapplication.cpp:4462
#16 0xb6bea201 in QApplication::notify (this=0xbf98ea30, receiver=0xf2d8f10, e=0xbf98e374) at kernel/qapplication.cpp:4023
#17 0xb5a503ca in KApplication::notify (this=0xbf98ea30, receiver=0xf2d8f10, event=0xbf98e374) at ../../kdeui/kernel/kapplication.cpp:311
#18 0xb67080bb in QCoreApplication::notifyInternal (this=0xbf98ea30, receiver=0xf2d8f10, event=0xbf98e374) at kernel/qcoreapplication.cpp:731
#19 0xb6be5c3b in sendSpontaneousEvent (receiver=0xf2d8f10, event=0xbf98e374, alienWidget=0xf2d8f10, nativeWidget=0x9e1db70, buttonDown=0xb7533c60, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#20 QApplicationPrivate::sendMouseEvent (receiver=0xf2d8f10, event=0xbf98e374, alienWidget=0xf2d8f10, nativeWidget=0x9e1db70, buttonDown=0xb7533c60, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3120
#21 0xb6c7104c in QETWidget::translateMouseEvent (this=0x9e1db70, event=0xbf98e89c) at kernel/qapplication_x11.cpp:4558
#22 0xb6c6f9b5 in QApplication::x11ProcessEvent (this=0xbf98ea30, event=0xbf98e89c) at kernel/qapplication_x11.cpp:3680
#23 0xb6c9c150 in QEventDispatcherX11::processEvents (this=0x9c7a480, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#24 0xb6707289 in QEventLoop::processEvents (this=0xbf98e9c4, flags=...) at kernel/qeventloop.cpp:149
#25 0xb6707522 in QEventLoop::exec (this=0xbf98e9c4, flags=...) at kernel/qeventloop.cpp:201
#26 0xb670becc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#27 0xb6be28e7 in QApplication::exec () at kernel/qapplication.cpp:3736
#28 0xb77e32c5 in kdemain (argc=1, argv=0xbf98eb44) at ../../krita/main.cc:49
#29 0x080485ab in main (argc=1, argv=0xbf98eb44) at krita_dummy.cpp:3

Reported using DrKonqi
Comment 1 Halla Rempt 2011-08-27 09:11:39 UTC
Git commit 74e2b8c2850864faedc6224e039d59d5ca631255 by Boudewijn Rempt.
Committed on 27/08/2011 at 11:11.
Pushed by rempt into branch 'master'.

Don't crash when there is no active shape

BUG:279700

M  +6    -0    plugins/defaultTools/connectionTool/ConnectionTool.cpp

http://commits.kde.org/calligra/74e2b8c2850864faedc6224e039d59d5ca631255