Bug 261313 - Crash when deleting a node
Summary: Crash when deleting a node
Status: RESOLVED FIXED
Alias: None
Product: Rocs
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Tomaz Canabrava
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-26 20:11 UTC by Frederik Schwarzer
Modified: 2011-03-25 17:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Schwarzer 2010-12-26 20:11:58 UTC
Application: rocs (1.5)
KDE Platform Version: 4.5.3 (KDE 4.5.3)
Qt Version: 4.7.1
Operating System: Linux 2.6.36-fs i686
Distribution (Platform): Debian unstable

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

I dragged some nodes into the area (around 10), used the Make Complete tool and then Deleted one of the nodes with the Delete tool button. Rocs crashed immediately.

The crash can be reproduced every time.

-- Backtrace:
Application: Rocs (rocs), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4f75710 (LWP 10703))]

Thread 3 (Thread 0xb2a54b70 (LWP 10705)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5e75696 in __poll (fds=0xb5ef8ff4, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb54c3fbb in g_poll () from /lib/libglib-2.0.so.0
#3  0xb54b6abc in ?? () from /lib/libglib-2.0.so.0
#4  0xb54b6ec8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0xb61b0dbf in QEventDispatcherGlib::processEvents (this=0x9459008, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#6  0xb6181229 in QEventLoop::processEvents (this=0xb2a542c0, flags=) at kernel/qeventloop.cpp:149
#7  0xb61816aa in QEventLoop::exec (this=0xb2a542c0, flags=...) at kernel/qeventloop.cpp:201
#8  0xb607f52e in QThread::exec (this=0x93c4108) at thread/qthread.cpp:490
#9  0xb7729f28 in ThreadDocument::run (this=0x93c4108) at ../../../rocs/src/Core/threadDocument.cpp:75
#10 0xb60827e9 in QThreadPrivate::start (arg=0x93c4108) at thread/qthread_unix.cpp:285
#11 0xb555f955 in start_thread (arg=0xb2a54b70) at pthread_create.c:300
#12 0xb5e82e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb1bffb70 (LWP 10710)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb5563f7f in __pthread_cond_wait (cond=0xb5d980d0, mutex=0xb5d980b8) at pthread_cond_wait.c:153
#2  0xb5e8fe0d in __pthread_cond_wait (cond=0xb5d980d0, mutex=0xb5d980b8) at forward.c:139
#3  0xb5c94237 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0xb5d92fe0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#4  0xb5c94281 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb5d92fe0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#5  0xb555f955 in start_thread (arg=0xb1bffb70) at pthread_create.c:300
#6  0xb5e82e7e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb4f75710 (LWP 10703)):
[KCrash Handler]
#7  Node::y (this=0xbf943524) at ../../../rocs/src/Core/node.cpp:227
#8  0x08061d4a in OrientedEdgeItem::paint (this=0x9a209b0, painter=0xbf943524, option=0x945c488, widget=0x9501430) at ../../../rocs/src/GraphicsItem/OrientedEdgeItem.cpp:224
#9  0xb6d7d298 in QGraphicsScenePrivate::draw (this=0x945c338, item=0x9a209b8, painter=0xbf943ec4, viewTransform=0x0, transformPtr=0x9a20c88, exposedRegion=0x94ee4b0, widget=0x9501430, opacity=1, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true) at graphicsview/qgraphicsscene.cpp:4929
#10 0xb6d7dc53 in QGraphicsScenePrivate::drawSubtreeRecursive (this=0x945c338, item=0x9a209b8, painter=0xbf943ec4, viewTransform=0x0, exposedRegion=0x94ee4b0, widget=0x9501430, parentOpacity=1, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4853
#11 0xb6d7e4ae in QGraphicsScenePrivate::drawItems (this=0x945c338, painter=0xbf943ec4, viewTransform=0x0, exposedRegion=0x94ee4b0, widget=0x9501430) at graphicsview/qgraphicsscene.cpp:4735
#12 0xb6daa5fa in QGraphicsView::paintEvent (this=0x94d60e8, event=0xbf9445c4) at graphicsview/qgraphicsview.cpp:3469
#13 0xb6706cc6 in QWidget::event (this=0x94d60e8, event=0xbf9445c4) at kernel/qwidget.cpp:8346
#14 0xb6b27f53 in QFrame::event (this=0x94d60e8, e=0xbf9445c4) at widgets/qframe.cpp:557
#15 0xb6bc47b2 in QAbstractScrollArea::viewportEvent (this=0x945c488, e=0xbf943ec4) at widgets/qabstractscrollarea.cpp:1043
#16 0xb6da693b in QGraphicsView::viewportEvent (this=0x94d60e8, event=0xbf9445c4) at graphicsview/qgraphicsview.cpp:2864
#17 0xb6bc71f5 in viewportEvent (this=0x94ff5e0, o=0x9501430, e=0xbf9445c4) at widgets/qabstractscrollarea_p.h:100
#18 QAbstractScrollAreaFilter::eventFilter (this=0x94ff5e0, o=0x9501430, e=0xbf9445c4) at widgets/qabstractscrollarea_p.h:116
#19 0xb6181eda in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x93391e0, receiver=0x9501430, event=0xbf9445c4) at kernel/qcoreapplication.cpp:847
#20 0xb66a8c49 in QApplicationPrivate::notify_helper (this=0x93391e0, receiver=0x9501430, e=0xbf9445c4) at kernel/qapplication.cpp:4441
#21 0xb66ae769 in QApplication::notify (this=0xbf946c88, receiver=0x9501430, e=0xbf9445c4) at kernel/qapplication.cpp:4410
#22 0xb7533caa in KApplication::notify (this=0xbf946c88, receiver=0x9501430, event=0xbf9445c4) at ../../kdeui/kernel/kapplication.cpp:310
#23 0xb618277b in QCoreApplication::notifyInternal (this=0xbf946c88, receiver=0x9501430, event=0xbf9445c4) at kernel/qcoreapplication.cpp:732
#24 0xb670def6 in sendSpontaneousEvent (this=0x9501448, pdev=0x96d7674, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x96d7628) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#25 QWidgetPrivate::drawWidget (this=0x9501448, pdev=0x96d7674, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5433
#26 0xb670ed35 in QWidgetPrivate::paintSiblingsRecursive (this=0x94ee160, pdev=0x96d7674, siblings=..., index=0, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5640
#27 0xb670eb6e in QWidgetPrivate::paintSiblingsRecursive (this=0x94ee160, pdev=0x96d7674, siblings=..., index=2, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5627
#28 0xb670eb6e in QWidgetPrivate::paintSiblingsRecursive (this=0x94ee160, pdev=0x96d7674, siblings=..., index=10, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5627
#29 0xb670dc45 in QWidgetPrivate::drawWidget (this=0x94ee160, pdev=0x96d7674, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5486
#30 0xb670ed35 in QWidgetPrivate::paintSiblingsRecursive (this=0x945c0c0, pdev=0x96d7674, siblings=..., index=8, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5640
#31 0xb670dc45 in QWidgetPrivate::drawWidget (this=0x945c0c0, pdev=0x96d7674, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5486
#32 0xb670ed35 in QWidgetPrivate::paintSiblingsRecursive (this=0x975f980, pdev=0x96d7674, siblings=..., index=3, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5640
#33 0xb670dc45 in QWidgetPrivate::drawWidget (this=0x975f980, pdev=0x96d7674, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5486
#34 0xb670ed35 in QWidgetPrivate::paintSiblingsRecursive (this=0x945bf00, pdev=0x96d7674, siblings=..., index=4, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5640
#35 0xb670dc45 in QWidgetPrivate::drawWidget (this=0x945bf00, pdev=0x96d7674, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5486
#36 0xb670ed35 in QWidgetPrivate::paintSiblingsRecursive (this=0x93c2cc0, pdev=0x96d7674, siblings=..., index=34, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5640
#37 0xb670dc45 in QWidgetPrivate::drawWidget (this=0x93c2cc0, pdev=0x96d7674, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0x96d7628) at kernel/qwidget.cpp:5486
#38 0xb6903364 in QWidgetBackingStore::sync (this=0x96d7628) at painting/qbackingstore.cpp:1333
#39 0xb6700283 in QWidgetPrivate::syncBackingStore (this=0x93c2cc0) at kernel/qwidget.cpp:1816
#40 0xb670745e in QWidget::event (this=0x93ea5f0, event=0xb1c0d460) at kernel/qwidget.cpp:8493
#41 0xb6b47097 in QMainWindow::event (this=0x93ea5f0, event=0xb1c0d460) at widgets/qmainwindow.cpp:1478
#42 0xb7625ee4 in KMainWindow::event (this=0x93ea5f0, ev=0xb1c0d460) at ../../kdeui/widgets/kmainwindow.cpp:1100
#43 0xb766deef in KXmlGuiWindow::event (this=0x93ea5f0, ev=0xb1c0d460) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:132
#44 0xb66a8c6c in QApplicationPrivate::notify_helper (this=0x93391e0, receiver=0x93ea5f0, e=0xb1c0d460) at kernel/qapplication.cpp:4445
#45 0xb66ae769 in QApplication::notify (this=0xbf946c88, receiver=0x93ea5f0, e=0xb1c0d460) at kernel/qapplication.cpp:4410
#46 0xb7533caa in KApplication::notify (this=0xbf946c88, receiver=0x93ea5f0, event=0xb1c0d460) at ../../kdeui/kernel/kapplication.cpp:310
#47 0xb618277b in QCoreApplication::notifyInternal (this=0xbf946c88, receiver=0x93ea5f0, event=0xb1c0d460) at kernel/qcoreapplication.cpp:732
#48 0xb618597c in sendEvent (receiver=0x93ea5f0, event_type=77, data=0x9324e80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#49 QCoreApplicationPrivate::sendPostedEvents (receiver=0x93ea5f0, event_type=77, data=0x9324e80) at kernel/qcoreapplication.cpp:1373
#50 0xb6185add in QCoreApplication::sendPostedEvents (receiver=0x93ea5f0, event_type=77) at kernel/qcoreapplication.cpp:1266
#51 0xb6d8e71e in dispatchPendingUpdateRequests (this=0x945c338) at ../../include/QtGui/private/../../../src/gui/graphicsview/qgraphicsview_p.h:189
#52 QGraphicsScenePrivate::_q_processDirtyItems (this=0x945c338) at graphicsview/qgraphicsscene.cpp:510
#53 0xb6d8ec66 in QGraphicsScene::qt_metacall (this=0x945a7d0, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0x993abf8) at .moc/release-shared/moc_qgraphicsscene.cpp:130
#54 0x080593ff in GraphScene::qt_metacall (this=0x945a7d0, _c=QMetaObject::InvokeMetaMethod, _id=18, _a=0x993abf8) at moc_GraphScene.cpp:73
#55 0xb618844a in QMetaObject::metacall (object=0x945a7d0, cl=155567240, idx=18, argv=0x993abf8) at kernel/qmetaobject.cpp:237
#56 0xb6193796 in QMetaCallEvent::placeMetaCall (this=0xb1c018e0, object=0x945a7d0) at kernel/qobject.cpp:534
#57 0xb61948c2 in QObject::event (this=0x945a7d0, e=0xbf943ec4) at kernel/qobject.cpp:1211
#58 0xb6d8b894 in QGraphicsScene::event (this=0x945a7d0, event=0xb1c018e0) at graphicsview/qgraphicsscene.cpp:3544
#59 0xb66a8c6c in QApplicationPrivate::notify_helper (this=0x93391e0, receiver=0x945a7d0, e=0xb1c018e0) at kernel/qapplication.cpp:4445
#60 0xb66ae6ce in QApplication::notify (this=0xbf946c88, receiver=0x945a7d0, e=0xb1c018e0) at kernel/qapplication.cpp:3845
#61 0xb7533caa in KApplication::notify (this=0xbf946c88, receiver=0x945a7d0, event=0xb1c018e0) at ../../kdeui/kernel/kapplication.cpp:310
#62 0xb618277b in QCoreApplication::notifyInternal (this=0xbf946c88, receiver=0x945a7d0, event=0xb1c018e0) at kernel/qcoreapplication.cpp:732
#63 0xb618597c in sendEvent (receiver=0x0, event_type=0, data=0x9324e80) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#64 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9324e80) at kernel/qcoreapplication.cpp:1373
#65 0xb6185add in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266
#66 0xb61b1294 in sendPostedEvents (s=0x933ad98) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#67 postEventSourceDispatch (s=0x933ad98) at kernel/qeventdispatcher_glib.cpp:277
#68 0xb54b2735 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#69 0xb54b6ce8 in ?? () from /lib/libglib-2.0.so.0
#70 0xb54b6ec8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#71 0xb61b0d85 in QEventDispatcherGlib::processEvents (this=0x9324b40, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#72 0xb676a305 in QGuiEventDispatcherGlib::processEvents (this=0x9324b40, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#73 0xb6181229 in QEventLoop::processEvents (this=0xbf946be4, flags=) at kernel/qeventloop.cpp:149
#74 0xb61816aa in QEventLoop::exec (this=0xbf946be4, flags=...) at kernel/qeventloop.cpp:201
#75 0xb6185b9f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#76 0xb66a7c27 in QApplication::exec () at kernel/qapplication.cpp:3719
#77 0x0805b2d4 in main (argc=1, argv=0xbf946db4) at ../../../rocs/src/Main.cpp:53

Reported using DrKonqi
Comment 1 Tomaz Canabrava 2011-03-25 17:05:27 UTC
fixed in 4.6