View Issue Details

IDProjectCategoryView StatusLast Update
0006769ScribusUndo/Redopublic2008-09-29 21:41
Reportercbradney Assigned Tojghali  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.5svn 
Target Version1.3.5Fixed in Version1.3.5svn 
Summary0006769: Crash when cancelling item creation and pressing escape, and repeating this multiple times
Description.
Steps To Reproducego into an item creation mode
click and drag
press escape to cancel the creation
do this until it crashes, which is usually at the 4th time.
Additional Informationscribus-1.3.5svn: /home/craig/scribus/PostTrunk/trunk/Scribus/scribus/undomanager.cpp:178: virtual bool UndoTransaction::cancel(): Assertion `stackLevel + 1 == signed(UM->transactions_.size())' failed.

Program received signal SIGABRT, Aborted.
0xb7f09410 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7f09410 in __kernel_vsyscall ()
0000001 0xb6e48101 in raise () from /lib/libc.so.6
0000002 0xb6e498e8 in abort () from /lib/libc.so.6
0000003 0xb6e417a5 in __assert_fail () from /lib/libc.so.6
0000004 0x08a44559 in UndoTransaction::cancel (this=0x92ca2c8) at /home/craig/scribus/PostTrunk/trunk/Scribus/scribus/undomanager.cpp:178
0000005 0x08332891 in CreateMode::activate (this=0x8fef610, fromGesture=false) at /home/craig/scribus/PostTrunk/trunk/Scribus/scribus/canvasmode_create.cpp:283
0000006 0x088cb3bb in ScribusView::requestMode (this=0x9445800, appMode=1) at /home/craig/scribus/PostTrunk/trunk/Scribus/scribus/scribusview.cpp:546
0000007 0x0881b66f in ScribusMainWindow::setAppModeByToggle (this=0x8cec6b0, isOn=true, newMode=1) at /home/craig/scribus/PostTrunk/trunk/Scribus/scribus/scribus.cpp:6236
0000008 0x08231d70 in ScribusMainWindow::qt_metacall (this=0x8cec6b0, _c=QMetaObject::InvokeMetaMethod, _id=131, _a=0xbfb3382c)
    at /home/craig/scribus/PostTrunk/builddir/scribus/moc_scribus.cxx:537
0000009 0xb736b119 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
0000010 0xb736bd06 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
0000011 0x0822f519 in ScrAction::toggledData (this=0x8f486d8, _t1=true, _t2=1) at /home/craig/scribus/PostTrunk/builddir/scribus/moc_scraction.cxx:132
0000012 0x087c3a04 in ScrAction::toggledToToggledData (this=0x8f486d8, ison=true) at /home/craig/scribus/PostTrunk/trunk/Scribus/scribus/scraction.cpp:137
0000013 0x0822f854 in ScrAction::qt_metacall (this=0x8f486d8, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0xbfb33d8c)
    at /home/craig/scribus/PostTrunk/builddir/scribus/moc_scraction.cxx:93
0000014 0xb736b119 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
0000015 0xb736bd06 in QMetaObject::activate () from /usr/lib/qt4/libQtCore.so.4
0000016 0xb77fda8f in QAction::toggled () from /usr/lib/qt4/libQtGui.so.4
0000017 0xb77fe5bd in QAction::setChecked () from /usr/lib/qt4/libQtGui.so.4
0000018 0xb77fe666 in QAction::activate () from /usr/lib/qt4/libQtGui.so.4
0000019 0xb7b90208 in QToolButton::nextCheckState () from /usr/lib/qt4/libQtGui.so.4
0000020 0xb7ad5dcb in ?? () from /usr/lib/qt4/libQtGui.so.4
0000021 0xb7ad6021 in QAbstractButton::mouseReleaseEvent () from /usr/lib/qt4/libQtGui.so.4
0000022 0xb7b9029c in QToolButton::mouseReleaseEvent () from /usr/lib/qt4/libQtGui.so.4
0000023 0xb78448e1 in QWidget::event () from /usr/lib/qt4/libQtGui.so.4
0000024 0xb7ad5345 in QAbstractButton::event () from /usr/lib/qt4/libQtGui.so.4
0000025 0xb7b8fd16 in QToolButton::event () from /usr/lib/qt4/libQtGui.so.4
0000026 0xb78035ea in QApplicationPrivate::notify_helper () from /usr/lib/qt4/libQtGui.so.4
0000027 0xb780581d in QApplication::notify () from /usr/lib/qt4/libQtGui.so.4
0000028 0xb7359966 in QCoreApplication::notifyInternal () from /usr/lib/qt4/libQtCore.so.4
0000029 0xb7857522 in ?? () from /usr/lib/qt4/libQtGui.so.4
0000030 0xb785609e in QApplication::x11ProcessEvent () from /usr/lib/qt4/libQtGui.so.4
0000031 0xb787928c in ?? () from /usr/lib/qt4/libQtGui.so.4
0000032 0xb7358f8b in QEventLoop::processEvents () from /usr/lib/qt4/libQtCore.so.4
0000033 0xb735906f in QEventLoop::exec () from /usr/lib/qt4/libQtCore.so.4
0000034 0xb735ab07 in QCoreApplication::exec () from /usr/lib/qt4/libQtCore.so.4
0000035 0xb780308f in QApplication::exec () from /usr/lib/qt4/libQtGui.so.4
0000036 0x08a7b012 in mainApp (argc=1, argv=0xbfb34a34) at /home/craig/scribus/PostTrunk/trunk/Scribus/scribus/main_nix.cpp:76
TagsNo tags attached.
Patch

Relationships

related to 0006770 closedcbradney Crash when cancelling bezier item creation before 2nd click 
related to 0005226 closedavox ESC key commits instead of cancels mouse operations 
child of 0005693 closedplinnell 1.3.5 bug collection (prior to roadmap) 

Activities

jghali

2008-03-30 13:01

administrator   ~0019327

I can reproduce consistently the issue with following steps:
- new doc
- insert/cancel a text frame
- insert/cancel a polygon (or another type of frame except a text frame)
- try to insert a new text frame => assert in UndoTransaction::cancel()

jghali

2008-03-30 22:38

administrator   ~0019329

It seems as if CreateMode::mouseReleaseEvent() never gets called :
- when ScribusView::eventFilter() intercept the mouseReleaseEvent, the ResizeGesture is active
- ResizeGesture::mouseReleaseEvent() is called
- ResizeGesture restore the CreateMode
But then CreateMode::mouseReleaseEvent() never get called afterwards... One can also notice that UndoManager::transactions_.size() keeps increasing without limits

Issue History

Date Modified Username Field Change
2008-02-16 22:39 cbradney New Issue
2008-02-16 22:39 cbradney Status new => assigned
2008-02-16 22:39 cbradney Assigned To => avox
2008-02-16 23:06 cbradney Summary Crash when cancelling item creation and pressing escape => Crash when cancelling item creation and pressing escape multiple times
2008-02-16 23:10 cbradney Relationship added related to 0005226
2008-02-16 23:11 cbradney Relationship added related to 0006770
2008-02-16 23:32 cbradney Summary Crash when cancelling item creation and pressing escape multiple times => Crash when cancelling item creation and pressing escape, and repeating this multiple times
2008-03-19 19:30 christoph_s Relationship added child of 0005693
2008-03-30 13:01 jghali Note Added: 0019327
2008-03-30 13:01 jghali Status assigned => confirmed
2008-03-30 22:38 jghali Note Added: 0019329
2008-09-28 11:50 jghali Status confirmed => assigned
2008-09-28 11:50 jghali Assigned To avox => jghali
2008-09-28 11:50 jghali Status assigned => resolved
2008-09-28 11:50 jghali Fixed in Version => 1.3.5svn
2008-09-28 11:50 jghali Resolution open => fixed
2008-09-29 21:41 cbradney Status resolved => closed