View Issue Details

IDProjectCategoryView StatusLast Update
0003645ScribusUndo/Redopublic2007-08-08 23:34
Reporterchristoph_s Assigned ToTsoots  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx86OSLinuxOS VersionSuSE 9.3
Product Version1.3.3.1 
Fixed in Version1.3.3.10svn 
Summary0003645: Undo in connection with master pages triggers crash
DescriptionTrying to undo the deleting of master pages triggers crash with signal 11.
Steps To ReproduceCreate masterpage, delete master page, click undo -> nothing happens. Then click redo -> crash
Additional InformationConsole:

ASSERT: "masterPageMode()==false" in scribusdoc.cpp (898)
ASSERT: "fe!=0" in scribusview.cpp (8233)
Scribus ist abgestrzt
-------------
Absturz durch Signal 0000011
Calling Emergency Save
Speicherzugriffsfehler

TagsNo tags attached.
Patch

Relationships

child of 0003837 acknowledged Metabug: Master pages/Page templates 
child of 0005745 closed Metabug: Undo/Redo issues 

Activities

cbradney

2006-04-13 20:48

administrator   ~0009918

Need a better description because adding or deleting a master page does not trigger an undo action.

christoph_s

2006-04-13 20:56

administrator   ~0009919

I read about the issue in a German forum ad tried myself. I think it's not important, that adding or deleting master pages seems to be unrelated to master pages. Users may not know that, and if they try to undo a deletion (the undo button is active) they would perhaps recognise that nothing happens, but they ceratinly don't expect Scribus to crash.

cbradney

2006-04-13 20:58

administrator   ~0009920

I can't trigger a crash..

mhanski

2006-04-13 22:11

developer   ~0009930

Last edited: 2006-04-13 22:16

can confirm with 1.3.3.1, exactly as described by christoph_s

jo-hannes

2006-04-13 22:20

developer   ~0009933

heres the backtrace:
(gdb) run
Starting program: /home/hannes/Scribus-1.3/bin/scribus
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 5999)]
ASSERT: "masterPageMode()==false" in scribusdoc.cpp (961)
ASSERT: "fe!=0" in scribusview.cpp (8667)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 5999)]
0x08630243 in ScribusMainWindow::restoreDeletePage (this=0x87d3190,
    state=0x8d2e7b8, isUndo=false) at scribus.cpp:7753
7753 undoManager->replaceObject(doc->Pages->at(pagenr - 1)->getUId(), duo);
(gdb) bt
#0 0x08630243 in ScribusMainWindow::restoreDeletePage (this=0x87d3190,
    state=0x8d2e7b8, isUndo=false) at scribus.cpp:7753
0000001 0x0862ff73 in ScribusMainWindow::restore (this=0x87d3190, state=0x8d2e7b8,
    isUndo=false) at scribus.cpp:7718
0000002 0x085da3e8 in UndoState::redo (this=0x8d2e7b8) at undostate.cpp:78
0000003 0x085d0bf1 in TransactionState::redo (this=0x8c47908)
    at undomanager.cpp:631
0000004 0x085d98fc in UndoStack::redo (this=0x8d94148, steps=1, objectId=-1)
    at undostack.cpp:101
0000005 0x085cfafc in UndoManager::redo (this=0x882d7f8, steps=1)
    at undomanager.cpp:427
0000006 0x085ce182 in UndoManager::qt_invoke (this=0x882d7f8, _id=8, _o=0xbfcac530)
    at undomanager.moc:207
0000007 0x40493074 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
0000008 0x4049369b in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
0000009 0x08488c6a in ScrAction::activatedData (this=0x881e780, t0=1)
    at scraction.moc:130
0000010 0x08489be6 in ScrAction::activatedToActivatedData (this=0x881e780)
    at scraction.cpp:113
0000011 0x08489150 in ScrAction::qt_invoke (this=0x881e780, _id=15, _o=0xbfcac680)
    at scraction.moc:208
0000012 0x40493074 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
0000013 0x4049380c in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
---Type <return> to continue, or q <return> to quit---
0000014 0x40810f09 in QAction::activated () from /usr/qt/3/lib/libqt-mt.so.3
0000015 0x4081115c in QAction::qt_emit () from /usr/qt/3/lib/libqt-mt.so.3
0000016 0x084893d7 in ScrAction::qt_emit (this=0x881e780, _id=2, _o=0xbfcac7d0)
    at scraction.moc:227
0000017 0x404930ec in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
0000018 0x4049380c in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
0000019 0x407f6bdc in QButton::clicked () from /usr/qt/3/lib/libqt-mt.so.3
0000020 0x4052b0a1 in QButton::mouseReleaseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
0000021 0x404ccf74 in QWidget::event () from /usr/qt/3/lib/libqt-mt.so.3
0000022 0x4042f01f in QApplication::internalNotify ()
   from /usr/qt/3/lib/libqt-mt.so.3
0000023 0x4042f2e6 in QApplication::notify () from /usr/qt/3/lib/libqt-mt.so.3
0000024 0x403c885a in QETWidget::translateMouseEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
0000025 0x403c6e98 in QApplication::x11ProcessEvent ()
   from /usr/qt/3/lib/libqt-mt.so.3
0000026 0x403dada5 in QEventLoop::processEvents () from /usr/qt/3/lib/libqt-mt.so.3
0000027 0x404459d1 in QEventLoop::enterLoop () from /usr/qt/3/lib/libqt-mt.so.3
0000028 0x40445926 in QEventLoop::exec () from /usr/qt/3/lib/libqt-mt.so.3
0000029 0x4042e17f in QApplication::exec () from /usr/qt/3/lib/libqt-mt.so.3
0000030 0x0863ae23 in mainApp (argc=1, argv=0xbfcad274) at main_nix.cpp:74
0000031 0x0863ad96 in main (argc=1, argv=0xbfcad274) at main_nix.cpp:50

jghali

2007-08-08 23:32

administrator   ~0016996

crash is now fixed

christoph_s

2007-08-08 23:34

administrator   ~0016997

Tested, fixed. Thanks!

Issue History

Date Modified Username Field Change
2006-04-13 18:37 christoph_s New Issue
2006-04-13 20:48 cbradney Note Added: 0009918
2006-04-13 20:56 christoph_s Note Added: 0009919
2006-04-13 20:58 cbradney Note Added: 0009920
2006-04-13 22:11 mhanski Note Added: 0009930
2006-04-13 22:11 mhanski Status new => confirmed
2006-04-13 22:16 mhanski Note Edited: 0009930
2006-04-13 22:20 jo-hannes Note Added: 0009933
2006-05-18 18:23 christoph_s Relationship added child of 0003837
2006-12-18 23:22 cbradney Status confirmed => assigned
2006-12-18 23:22 cbradney Assigned To => Tsoots
2007-01-04 09:50 cbradney Relationship added child of 0003964
2007-05-12 22:12 cbradney Relationship deleted child of 0003964
2007-05-23 20:18 christoph_s Relationship added child of 0005745
2007-08-08 23:32 jghali Status assigned => resolved
2007-08-08 23:32 jghali Fixed in Version => 1.3.3.10cvs
2007-08-08 23:32 jghali Resolution open => fixed
2007-08-08 23:32 jghali Note Added: 0016996
2007-08-08 23:34 christoph_s Status resolved => closed
2007-08-08 23:34 christoph_s Note Added: 0016997