Version: 2.0 alpha-8 (using 4.00.83 (KDE 4.0.83 (KDE 4.1 Beta2), compiled sources) Compiler: gcc-4.3 OS: Linux (i686) release 2.6.25-2-486 KOffice rev. 822883 There is two parts on this report. Solving the first issue will probably solve the second one :) Testcase : - New image, - Select the Freehand tool, - Draw something => The "Flake shapes" layer is created Use the Undo function => What you draw is deleted _but_ the layer remains Which leads to : - Try manually deleting the extra layer => Crash BT : Application: Krita (krita), signal SIGSEGV [Thread debugging using libthread_db enabled] [New Thread 0xb381f740 (LWP 4706)] [KCrash handler] #6 0xb4caf24b in __dynamic_cast () from /usr/lib/libstdc++.so.6 #7 0xb7ead019 in KisShapeController::removeShape (this=0x859cfe8, shape=0x8630ca8) at /media/kde/src/koffice/krita/ui/kis_shape_controller.cpp:146 #8 0xb7ead0d6 in KisShapeController::removeShape (this=0x859cfe8, shape=0xa12b91c) at /media/kde/src/koffice/krita/ui/kis_shape_controller.cpp:149 #9 0xb7eaba6b in KisShapeController::slotNodeRemoved (this=0x859cfe8, parent=0x8cc0190, index=1) at /media/kde/src/koffice/krita/ui/kis_shape_controller.cpp:350 #10 0xb7eada78 in KisShapeController::qt_metacall (this=0x859cfe8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfc96388) at /media/kde/build/koffice/krita/ui/kis_shape_controller.moc:73 #11 0xb6a7e86c in QMetaObject::activate (sender=0x8c93940, from_signal_index=15, to_signal_index=15, argv=0xbfc96388) at kernel/qobject.cpp:3007 #12 0xb6a7ecf9 in QMetaObject::activate (sender=0x8c93940, m=0xb7cfba48, local_signal_index=11, argv=0xbfc96388) at kernel/qobject.cpp:3080 #13 0xb7c5ec89 in KisImage::sigAboutToRemoveANode (this=0x8c93940, _t1=0x8cc0190, _t2=1) at /media/kde/build/koffice/krita/image/kis_image.moc:198 #14 0xb7c5eccb in KisImage::aboutToRemoveANode (this=0x8c93940, parent=0x8cc0190, index=1) at /media/kde/src/koffice/krita/image/kis_image.cc:187 #15 0xb7c74527 in KisNode::remove (this=0x8cc0190, index=1) at /media/kde/src/koffice/krita/image/kis_node.cpp:263 #16 0xb7c74660 in KisNode::remove (this=0x8cc0190, node={d = 0xbfc96460}) at /media/kde/src/koffice/krita/image/kis_node.cpp:283 #17 0xb7c75d1d in KisNodeFacade::removeNode (this=0x8c93948, node= {d = 0xbfc964a4}) at /media/kde/src/koffice/krita/image/kis_node_facade.cpp:121 #18 0xb7e62932 in KisLayerBox::slotRmClicked (this=0x8fcce88) at /media/kde/src/koffice/krita/ui/kis_layer_box.cpp:381 #19 0xb7e64748 in KisLayerBox::qt_metacall (this=0x8fcce88, _c=QMetaObject::InvokeMetaMethod, _id=13, _a=0xbfc965ec) at /media/kde/build/koffice/krita/ui/kis_layer_box.moc:127 #20 0xb6a7e86c in QMetaObject::activate (sender=0x9087800, from_signal_index=29, to_signal_index=30, argv=0xbfc965ec) at kernel/qobject.cpp:3007 #21 0xb6a7ea84 in QMetaObject::activate (sender=0x9087800, m=0xb62f75e4, from_local_signal_index=2, to_local_signal_index=3, argv=0xbfc965ec) at kernel/qobject.cpp:3100 #22 0xb6219a70 in QAbstractButton::clicked (this=0x9087800, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:185 #23 0xb5f7c0ae in QAbstractButtonPrivate::emitClicked (this=0x91acd48) at widgets/qabstractbutton.cpp:543 #24 0xb5f7d296 in QAbstractButtonPrivate::click (this=0x91acd48) at widgets/qabstractbutton.cpp:536 #25 0xb5f7d542 in QAbstractButton::mouseReleaseEvent (this=0x9087800, e=0xbfc96d94) at widgets/qabstractbutton.cpp:1112 #26 0xb605fc72 in QToolButton::mouseReleaseEvent (this=0x9087800, e=0xbfc96d94) at widgets/qtoolbutton.cpp:675 #27 0xb5c6b3c4 in QWidget::event (this=0x9087800, event=0xbfc96d94) at kernel/qwidget.cpp:6927 #28 0xb5f7c049 in QAbstractButton::event (this=0x9087800, e=0xbfc96d94) at widgets/qabstractbutton.cpp:1074 #29 0xb605e722 in QToolButton::event (this=0x9087800, e=0xbfc96d94) at widgets/qtoolbutton.cpp:1105 #30 0xb5c0f269 in QApplicationPrivate::notify_helper (this=0x843ec38, receiver=0x9087800, e=0xbfc96d94) at kernel/qapplication.cpp:3772 #31 0xb5c0fde7 in QApplication::notify (this=0xbfc97538, receiver=0x9087800, e=0xbfc96d94) at kernel/qapplication.cpp:3501 #32 0xb70fe261 in KApplication::notify (this=0xbfc97538, receiver=0x9087800, event=0xbfc96d94) at /media/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311 #33 0xb6a6a26b in QCoreApplication::notifyInternal (this=0xbfc97538, receiver=0x9087800, event=0xbfc96d94) at kernel/qcoreapplication.cpp:583 #34 0xb76031c3 in QCoreApplication::sendSpontaneousEvent (receiver=0x9087800, event=0xbfc96d94) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #35 0xb5c13bb0 in QApplicationPrivate::sendMouseEvent (receiver=0x9087800, event=0xbfc96d94, alienWidget=0x9087800, nativeWidget=0x85b6e40, buttonDown=0xb6304c20, lastMouseReceiver=@0xb6304c24) at kernel/qapplication.cpp:2766 #36 0xb5c897d2 in QETWidget::translateMouseEvent (this=0x85b6e40, event=0xbfc97280) at kernel/qapplication_x11.cpp:4133 #37 0xb5c8a4f7 in QApplication::x11ProcessEvent (this=0xbfc97538, event=0xbfc97280) at kernel/qapplication_x11.cpp:3133 #38 0xb5cb38de in x11EventSourceDispatch (s=0x8441be8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148 #39 0xb4903978 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #40 0xb4906bce in ?? () from /usr/lib/libglib-2.0.so.0 #41 0x08440e78 in ?? () #42 0x00000000 in ?? () #0 0xb7f7e430 in __kernel_vsyscall ()
Trying to interact with the layer will also make krita crash. Lock/unlock seems to work but clicking on the eye to hide the layer will result in this : Application: Krita (krita), signal SIGSEGV [Thread debugging using libthread_db enabled] [New Thread 0xb37b7740 (LWP 5010)] [KCrash handler] #6 0x00710000 in ?? () #7 0xb7a3fd2f in KoShapeLayer::boundingRect (this=0x8ce9b1c) at /media/kde/src/koffice/libs/flake/KoShapeLayer.cpp:49 #8 0xb7e4a5a3 in KisShapeLayer::extent (this=0x8ce9b00) at /media/kde/src/koffice/krita/ui/kis_shape_layer.cc:166 #9 0xb7c0bb4c in KisNode::setDirty (this=0x8ce9b00) at /media/kde/src/koffice/krita/image/kis_node.cpp:111 #10 0xb7e1a378 in KisNodeModel::setData (this=0x8c931a0, index=@0xbfd2e8f8, value=@0xbfd2e7d0, role=34) at /media/kde/src/koffice/krita/ui/kis_node_model.cpp:291 #11 0xb7b0d898 in KoDocumentSectionDelegate::editorEvent (this=0x920f1c8, e=0xbfd2f5f4, model=0x8c931a0, option=@0xbfd2e878, index=@0xbfd2e8f8) at /media/kde/src/koffice/libs/guiutils/KoDocumentSectionDelegate.cpp:131 #12 0xb60975da in QAbstractItemViewPrivate::sendDelegateEvent ( this=0x91e3968, index=@0xa0c55c8, event=0xbfd2f5f4) at itemviews/qabstractitemview.cpp:3684 #13 0xb6099775 in QAbstractItemView::edit (this=0x8f9ffc0, index=@0xa0c55c8, trigger=QAbstractItemView::NoEditTriggers, event=0xbfd2f5f4) at itemviews/qabstractitemview.cpp:2256 #14 0xb609cf32 in QAbstractItemView::mousePressEvent (this=0x8f9ffc0, event=0xbfd2f5f4) at itemviews/qabstractitemview.cpp:1455 #15 0xb60dae26 in QTreeView::mousePressEvent (this=0x8f9ffc0, event=0xbfd2f5f4) at itemviews/qtreeview.cpp:1750 #16 0xb5c033a6 in QWidget::event (this=0x8f9ffc0, event=0xbfd2f5f4) at kernel/qwidget.cpp:6923 #17 0xb5f6691a in QFrame::event (this=0x8f9ffc0, e=0xbfd2f5f4) at widgets/qframe.cpp:657 #18 0xb5ffc52d in QAbstractScrollArea::viewportEvent (this=0x8f9ffc0, e=0xbfd2f5f4) at widgets/qabstractscrollarea.cpp:941 #19 0xb609d899 in QAbstractItemView::viewportEvent (this=0x8f9ffc0, event=0xbfd2f5f4) at itemviews/qabstractitemview.cpp:1426 #20 0xb60d831d in QTreeView::viewportEvent (this=0x8f9ffc0, event=0xbfd2f5f4) at itemviews/qtreeview.cpp:1254 #21 0xb7b1037f in KoDocumentSectionView::viewportEvent (this=0x8f9ffc0, e=0xbfd2f5f4) at /media/kde/src/koffice/libs/guiutils/KoDocumentSectionView.cpp:147 #22 0xb5fff042 in QAbstractScrollAreaPrivate::viewportEvent (this=0x91e3968, event=0xbfd2f5f4) at widgets/qabstractscrollarea_p.h:102 #23 0xb5fff070 in QAbstractScrollAreaFilter::eventFilter (this=0x8fa9838, o=0x91609d8, e=0xbfd2f5f4) at widgets/qabstractscrollarea_p.h:113 #24 0xb6a0063c in QCoreApplicationPrivate::sendThroughObjectEventFilters ( this=0x841ebf8, receiver=0x91609d8, event=0xbfd2f5f4) at kernel/qcoreapplication.cpp:694 #25 0xb5ba7246 in QApplicationPrivate::notify_helper (this=0x841ebf8, receiver=0x91609d8, e=0xbfd2f5f4) at kernel/qapplication.cpp:3768 #26 0xb5ba7de7 in QApplication::notify (this=0xbfd2fd98, receiver=0x91609d8, e=0xbfd2f5f4) at kernel/qapplication.cpp:3501 #27 0xb7096261 in KApplication::notify (this=0xbfd2fd98, receiver=0x91609d8, event=0xbfd2f5f4) at /media/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:311 #28 0xb6a0226b in QCoreApplication::notifyInternal (this=0xbfd2fd98, receiver=0x91609d8, event=0xbfd2f5f4) at kernel/qcoreapplication.cpp:583 #29 0xb759b1c3 in QCoreApplication::sendSpontaneousEvent (receiver=0x91609d8, event=0xbfd2f5f4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218 #30 0xb5babbb0 in QApplicationPrivate::sendMouseEvent (receiver=0x91609d8, event=0xbfd2f5f4, alienWidget=0x91609d8, nativeWidget=0x8596ff0, buttonDown=0xb629cc20, lastMouseReceiver=@0xb629cc24) at kernel/qapplication.cpp:2766 #31 0xb5c217d2 in QETWidget::translateMouseEvent (this=0x8596ff0, event=0xbfd2fae0) at kernel/qapplication_x11.cpp:4133 #32 0xb5c224f7 in QApplication::x11ProcessEvent (this=0xbfd2fd98, event=0xbfd2fae0) at kernel/qapplication_x11.cpp:3133 #33 0xb5c4b8de in x11EventSourceDispatch (s=0x8421bd8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148 #34 0xb489b978 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #35 0xb489ebce in ?? () from /usr/lib/libglib-2.0.so.0 #36 0x08420e60 in ?? () #37 0x00000000 in ?? () #0 0xb7f16430 in __kernel_vsyscall ()
Can't reproduce that with Krita2.0 alpha2, so this seems to be fixed.
Thanks for triaging!
Still reproduceable.
The crash is no longer reproduceable, but the flake layer still remains after using the undo function, which is a bug.
Anyone else can reproduce the crash with a current version? If the crash is no longer reproducible the report should be closed. Thanks
there's no crash anymore, but the flake layer still remains after undoing, which is part of the bug report.
Changing the severity.
SVN commit 1020496 by berger: Fix: allow to undo the creation of the shape layer created when adding a shape in a krita image BUG:164625 M +3 -1 kis_shape_controller.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1020496
You need to log in before you can comment on or make changes to this bug.