Bug 302497 - Interrupting "Connect Shapes" tool causes crashes
Summary: Interrupting "Connect Shapes" tool causes crashes
Status: RESOLVED FIXED
Alias: None
Product: calligraflow
Classification: Applications
Component: general (show other bugs)
Version: 2.4.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Yue Liu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 09:25 UTC by Jürgen Starek
Modified: 2014-03-11 13:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.42 KB, text/plain)
2014-03-11 13:56 UTC, Vaso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jürgen Starek 2012-06-25 09:25:54 UTC
Application: calligraflow (2.4.0)
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-25-generic i686
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
Calligra Flow crashes occasionally when I interrupt drawing a connection.

Steps to reproduce:

- Open blank document
- Insert two shapes somewhere
- Select the "connect shapes" tool
- Anchor the connection at one point of one shape
- click short of a connection point on the other shape
- click on the endpoint of the connection line 

This crash is, unfortunately, not precisely reproducible for me.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Flow (calligraflow), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb76db740 (LWP 4916))]

Thread 2 (Thread 0xb31bfb40 (LWP 4929)):
#0  0x00e0a416 in __kernel_vsyscall ()
#1  0x004e9380 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0x06763a7b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x067560ae in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x06756201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x009c68e7 in QEventDispatcherGlib::processEvents (this=0xb2800468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x0099250d in QEventLoop::processEvents (this=0xb31bf240, flags=...) at kernel/qeventloop.cpp:149
#7  0x009927a9 in QEventLoop::exec (this=0xb31bf240, flags=...) at kernel/qeventloop.cpp:204
#8  0x0087b94c in QThread::exec (this=0x9794f30) at thread/qthread.cpp:501
#9  0x0096fb5d in QInotifyFileSystemWatcherEngine::run (this=0x9794f30) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x0087ede0 in QThreadPrivate::start (arg=0x9794f30) at thread/qthread_unix.cpp:298
#11 0x00e11d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#12 0x004f7ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb76db740 (LWP 4916)):
[KCrash Handler]
#7  0x050b6177 in KoShapeContainer::inheritsTransform (this=0x922feddb, shape=0x95e9f18) at /build/buildd/calligra-2.4.0/libs/flake/KoShapeContainer.cpp:145
#8  0x050a6ec8 in KoShape::absoluteTransformation (this=0x95e9f18, converter=0x0) at /build/buildd/calligra-2.4.0/libs/flake/KoShape.cpp:411
#9  0x050a90b3 in KoShape::documentToShape (this=0x95e9f18, point=...) at /build/buildd/calligra-2.4.0/libs/flake/KoShape.cpp:1961
#10 0x03fb4253 in ConnectionTool::handleAtPoint (this=0xbf614a0, shape=0x95e9f18, mousePoint=...) at /build/buildd/calligra-2.4.0/plugins/defaultTools/connectionTool/ConnectionTool.cpp:478
#11 0x03fb67e2 in ConnectionTool::mouseMoveEvent (this=0xbf614a0, event=0xbf9d5124) at /build/buildd/calligra-2.4.0/plugins/defaultTools/connectionTool/ConnectionTool.cpp:326
#12 0x050ec26f in KoToolProxy::mouseMoveEvent (this=0xbac6858, event=0xbf9d57d4, point=...) at /build/buildd/calligra-2.4.0/libs/flake/KoToolProxy.cpp:277
#13 0x03bfb93e in KoPAViewModeNormal::mouseMoveEvent (this=0xbb23e68, event=0xbf9d57d4, point=...) at /build/buildd/calligra-2.4.0/libs/kopageapp/KoPAViewModeNormal.cpp:108
#14 0x03bf09dc in KoPACanvas::mouseMoveEvent (this=0xbab1f78, event=0xbf9d57d4) at /build/buildd/calligra-2.4.0/libs/kopageapp/KoPACanvas.cpp:131
#15 0x011391e8 in QWidget::event (this=0xbab1f78, event=0xbf9d57d4) at kernel/qwidget.cpp:8347
#16 0x03bf0dd7 in KoPACanvas::event (this=0xbab1f78, e=0xbf9d57d4) at /build/buildd/calligra-2.4.0/libs/kopageapp/KoPACanvas.cpp:97
#17 0x010deed4 in notify_helper (e=0xbf9d57d4, receiver=0xbab1f78, this=0x93960e8) at kernel/qapplication.cpp:4559
#18 QApplicationPrivate::notify_helper (this=0x93960e8, receiver=0xbab1f78, e=0xbf9d57d4) at kernel/qapplication.cpp:4531
#19 0x010e5024 in QApplication::notify (this=0x93960e8, receiver=0xbab1f78, e=0xbf9d57d4) at kernel/qapplication.cpp:4102
#20 0x02002b61 in KApplication::notify (this=0xbf9d5ff0, receiver=0xbab1f78, event=0xbf9d57d4) at ../../kdeui/kernel/kapplication.cpp:311
#21 0x0099397e in QCoreApplication::notifyInternal (this=0xbf9d5ff0, receiver=0xbab1f78, event=0xbf9d57d4) at kernel/qcoreapplication.cpp:876
#22 0x010dfe95 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#23 QApplicationPrivate::sendMouseEvent (receiver=0xbab1f78, event=0xbf9d57d4, alienWidget=0xbab1f78, nativeWidget=0xbac5300, buttonDown=0x1a73cf4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#24 0x0116c074 in QETWidget::translateMouseEvent (this=0xbac5300, event=0xbf9d5c8c) at kernel/qapplication_x11.cpp:4617
#25 0x0116ac0d in QApplication::x11ProcessEvent (this=0xbf9d5ff0, event=0xbf9d5c8c) at kernel/qapplication_x11.cpp:3732
#26 0x01197eac in x11EventSourceDispatch (s=0x9394550, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#27 0x06755d86 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#28 0x06756125 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#29 0x06756201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#30 0x009c6887 in QEventDispatcherGlib::processEvents (this=0x9341ef0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#31 0x01197aaa in QGuiEventDispatcherGlib::processEvents (this=0x9341ef0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#32 0x0099250d in QEventLoop::processEvents (this=0xbf9d5f84, flags=...) at kernel/qeventloop.cpp:149
#33 0x009927a9 in QEventLoop::exec (this=0xbf9d5f84, flags=...) at kernel/qeventloop.cpp:204
#34 0x00997eba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#35 0x010dca74 in QApplication::exec () at kernel/qapplication.cpp:3820
#36 0x008140fd in kdemain (argc=1, argv=0xbf9d60f4) at /build/buildd/calligra-2.4.0/flow/part/main.cpp:40
#37 0x0804850b in main (argc=1, argv=0xbf9d60f4) at /build/buildd/calligra-2.4.0/obj-i686-linux-gnu/flow/part/calligraflow_dummy.cpp:3

Reported using DrKonqi
Comment 1 Vaso 2014-03-11 13:56:08 UTC
Created attachment 85532 [details]
New crash information added by DrKonqi

calligraflow (2.7.5) on KDE Platform 4.12.3 using Qt 4.8.5

- What I was doing when the application crashed:

Just try to connect two shapes with "connect shape" tool.

-- Backtrace (Reduced):
#7  0x00000036a18856ab in KoShape::absoluteTransformation (this=this@entry=0x1b41d90, converter=converter@entry=0x0) at /usr/src/debug/calligra-2.7.5/libs/flake/KoShape.cpp:424
#8  0x00000036a1887453 in KoShape::documentToShape (this=this@entry=0x1b41d90, point=...) at /usr/src/debug/calligra-2.7.5/libs/flake/KoShape.cpp:2138
#9  0x00007f2403107262 in ConnectionTool::handleAtPoint (this=this@entry=0x374ca70, shape=0x1b41d90, mousePoint=...) at /usr/src/debug/calligra-2.7.5/plugins/defaultTools/connectionTool/ConnectionTool.cpp:581
#10 0x00007f240310a974 in ConnectionTool::mouseMoveEvent (this=0x374ca70, event=<optimized out>) at /usr/src/debug/calligra-2.7.5/plugins/defaultTools/connectionTool/ConnectionTool.cpp:385
#11 0x00000036a18c522f in KoToolProxy::mouseMoveEvent (this=0x2443a20, event=0x7fffeb278770, point=...) at /usr/src/debug/calligra-2.7.5/libs/flake/KoToolProxy.cpp:277