#17 Crash on paste after use of Undo

closed
nobody
None
5
2012-04-27
2012-04-12
Marian Kyral
No

Hi,
I just compiled current git sources and I've found following bug:

1) Open some file
2) Paint something - e.g. some line
3) Click undo
4) Switch to the selection tool
5) Select some area and copy it (CTRL+C)
6) Paste (CTRL+V)
7) Click and hold the mouse button on the image - pasted selection is floating now
8) Move to the correct position and release mouse button
9) Crash....

I have a BT, but is is not a much usefull.

Application: KXStitch (kxstitch), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#6 0x0000000000471f4a in QListData::size() const ()
#7 0x000000000047a93e in QList<Stitch*>::count() const ()
#8 0x00000000004eaec9 in operator<<(QDataStream&, StitchQueue const&) ()
#9 0x00000000004eff43 in operator<<(QDataStream&, StitchData const&) ()
#10 0x00000000004d4d0d in operator<<(QDataStream&, Pattern const&) ()
#11 0x0000000000479639 in EditPasteCommand::redo() ()
#12 0x00007fa4fd630e83 in QUndoStack::push (this=0xb9e608, cmd=0xd32490) at util/qundostack.cpp:583
#13 0x00000000004a85af in Editor::mouseReleaseEvent_Paste(QMouseEvent*) ()
#14 0x00000000004a1f3b in Editor::mouseReleaseEvent(QMouseEvent*) ()
#15 0x00007fa4fd029d1f in QWidget::event (this=0x9a6f10, event=0x7fffff1e9c00) at kernel/qwidget.cpp:8362
#16 0x000000000049eee4 in Editor::event(QEvent*) ()
#17 0x00007fa4fcfd8314 in QApplicationPrivate::notify_helper (this=0x7b4910, receiver=0x9a6f10, e=0x7fffff1e9c00) at kernel/qapplication.cpp:4554
#18 0x00007fa4fcfdd920 in QApplication::notify (this=<optimized out>, receiver=0x9a6f10, e=0x7fffff1e9c00) at kernel/qapplication.cpp:4097
#19 0x00007fa4fe6c83f2 in KApplication::notify (this=0x7fffff1ea760, receiver=0x9a6f10, event=0x7fffff1e9c00) at /var/tmp/portage/kde-base/kdelibs-4.8.2/work/kdelibs-4.8.2/kdeui/kernel/kapplication.cpp:311
#20 0x00007fa4fc5b105b in QCoreApplication::notifyInternal (this=0x7fffff1ea760, receiver=0x9a6f10, event=0x7fffff1e9c00) at kernel/qcoreapplication.cpp:876
#21 0x00007fa4fcfd9325 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QApplicationPrivate::sendMouseEvent (receiver=0x9a6f10, event=0x7fffff1e9c00, alienWidget=0x9a6f10, nativeWidget=0x95c450, buttonDown=0x7fa4fdab71d8, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3165
#23 0x00007fa4fd057658 in QETWidget::translateMouseEvent (this=0x95c450, event=<optimized out>) at kernel/qapplication_x11.cpp:4502
#24 0x00007fa4fd055d19 in QApplication::x11ProcessEvent (this=0x7fffff1ea760, event=0x7fffff1ea3b0) at kernel/qapplication_x11.cpp:3625
#25 0x00007fa4fd07d7f2 in x11EventSourceDispatch (s=0x7b7690, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#26 0x00007fa4f6489672 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#27 0x00007fa4f6489e68 in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007fa4f648a041 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#29 0x00007fa4fc5e019f in QEventDispatcherGlib::processEvents (this=0x7914b0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#30 0x00007fa4fd07d49e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007fa4fc5b0082 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#32 0x00007fa4fc5b0335 in QEventLoop::exec (this=0x7fffff1ea6c0, flags=...) at kernel/qeventloop.cpp:204
#33 0x00007fa4fc5b4abb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#34 0x00000000004bbd7d in main ()

Discussion

  • I get this too. I will investigate

     
  • I have just pushed a fix for this in commit 1dcc8167336d674f309e5700f78b5f863b183a3a

     
    • status: open --> closed