View Issue Details

IDProjectCategoryView StatusLast Update
0012477ScribusUndo/Redopublic2015-03-17 15:40
ReporterFirasH Assigned Tojghali  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSopenSUSEOS Version13.1
Product Version1.5.0svn 
Target Version1.5.0Fixed in Version1.5.0svn 
Summary0012477: Undo/Redo crashes Scribus changing Text > Color
DescriptionUndo/Redo crashes Scribus changing Text > Color.
Steps To Reproduce0) Create a new document
1) Insert a Text Frame
2) Select the Text Frame and Insert > Sample Text (make it overflow)
3) Duplicate the Text Frame (Ctrl+D)
4) Truncate Text overflowing in the duplicated Text Frame (right-click > Contents > Truncate)
5) Go to: Properties > Text > Color & Effects > and change from Black to any other color
6) Apply any other action (move one of the 2 Text Frames)
7) Undo until undo button is greyed out
8) Redo until redo button is greyed out
9) Undo 2 times

Scribus crashes due to Signal 6
Additional InformationScribus 1.5.0.svn (19314)


Program received signal SIGABRT, Aborted.
0x00007fffedf7d849 in raise () from /lib64/libc.so.6
(gdb) bt
 0 0x00007fffedf7d849 in raise ()
   from /lib64/libc.so.6
 1 0x00007fffedf7ecd8 in abort ()
   from /lib64/libc.so.6
 2 0x00007ffff74168ae in QMessageLogger::fatal(char const*, ...) const ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 3 0x00007ffff7411d74 in qt_assert_x(char const*, char const*, char const*, int) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 4 0x000000000130cc37 in QList<ScText*>::at (this=0x3301660, i=0)
    at /home/.../Qt/5.3/gcc_64/include/QtCore/qlist.h:479
 5 0x0000000001305d50 in StoryText::eraseCharStyle (this=0x3304de8, pos=0, len=558,
    style=...) at /home/.../Scribus/scribus/text/storytext.cpp:1069
 6 0x0000000000a3df47 in PageItem::restoreCharStyle (this=0x3304a30, ss=0x359e5d0,
    isUndo=true) at /home/.../Scribus/scribus/pageitem.cpp:6793
 7 0x0000000000a2ea5e in PageItem::restore (this=0x3304a30, state=0x359e5d0,
    isUndo=true) at /home/.../Scribus/scribus/pageitem.cpp:5189
 8 0x0000000000e75f68 in UndoState::undo (this=0x359e5d0)
    at /home/.../Scribus/scribus/undostate.cpp:73
 9 0x0000000000e668f8 in TransactionState::undo (this=0x33ca3d0)
    at /home/.../Scribus/scribus/undomanager.cpp:813
 10 0x0000000000e750a3 in UndoStack::undo (this=0x312bf00, steps=1, objectId=-1)
    at /home/.../Scribus/scribus/undostack.cpp:80
 11 0x0000000000e65347 in UndoManager::undo (this=0x1d1d790, steps=1)
    at /home/.../Scribus/scribus/undomanager.cpp:555
 12 0x000000000081c042 in UndoManager::qt_static_metacall (_o=0x1d1d790,
    _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fffffffc200)
    at /home/.../Scribus/build/scribus/moc_undomanager.cpp:143
 13 0x00007ffff768a7b1 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 14 0x0000000000810dca in ScrAction::triggeredData (this=0x2121550, _t1=1)
    at /home/.../Scribus/build/scribus/moc_scraction.cpp:245
 15 0x0000000000cf9d2c in ScrAction::triggeredToTriggeredData (this=0x2121550)
    at /home/.../Scribus/scribus/scraction.cpp:100
 16 0x00000000008108fb in ScrAction::qt_static_metacall (_o=0x2121550,
    _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7fffffffc540)
    at /home/.../Scribus/build/scribus/moc_scraction.cpp:117
 17 0x00007ffff768a7b1 in QMetaObject::activate(QObject*, int, int, void**) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 18 0x00007ffff6c82632 in QAction::triggered(bool) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 19 0x00007ffff6c84467 in QAction::activate(QAction::ActionEvent) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 20 0x00007ffff6d8da65 in ?? ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 21 0x00007ffff6d8dd24 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 22 0x00007ffff6e5091a in QToolButton::mouseReleaseEvent(QMouseEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 23 0x00007ffff6cc5c27 in QWidget::event(QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 24 0x00007ffff6e517b0 in QToolButton::event(QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 25 0x00007ffff6c8da94 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 26 0x00007ffff6c90e8c in QApplication::notify(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 27 0x00007ffff7658f04 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 28 0x00007ffff6c8fffa in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 29 0x00007ffff6ce5e87 in ?? ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 30 0x00007ffff6ce89d8 in ?? ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 31 0x00007ffff6c8da94 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 32 0x00007ffff6c910b6 in QApplication::notify(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Widgets.so.5
 33 0x00007ffff7658f04 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 34 0x00007ffff650c537 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Gui.so.5
 35 0x00007ffff650cf75 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Gui.so.5
 36 0x00007ffff64f2208 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Gui.so.5
 37 0x00007fffe335c460 in ?? ()
   from /home/.../Qt/5.3/gcc_64/plugins/platforms/libqxcb.so
 38 0x00007fffeb7d4316 in g_main_context_dispatch ()
   from /usr/lib64/libglib-2.0.so.0
 39 0x00007fffeb7d4668 in ?? ()
   from /usr/lib64/libglib-2.0.so.0
 40 0x00007fffeb7d470c in g_main_context_iteration ()
   from /usr/lib64/libglib-2.0.so.0
 41 0x00007ffff76b3574 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 42 0x00007ffff765711b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 43 0x00007ffff765bfe5 in QCoreApplication::exec() ()
   from /home/.../Qt/5.3/gcc_64/lib/libQt5Core.so.5
 44 0x00000000012db40c in mainApp (argc=1, argv=0x7fffffffdd38)
    at /home/.../Scribus/scribus/main_nix.cpp:86
 45 0x00000000012db39c in main (argc=1, argv=0x7fffffffdd38)
    at /home/.../Scribus/scribus/main_nix.cpp:54
TagsNo tags attached.
Patch

Relationships

child of 0012500 acknowledged Metabug: Undo/Redo (1.5.x.svn) 

Activities

owencook

2014-07-05 02:58

reporter   ~0032487

Confirmed on my 32bit SUSE-13.1 machine

#0 0xb7fdc424 in __kernel_vsyscall ()
0000001 0xb3ed16a6 in raise () from /lib/libc.so.6
0000002 0xb3ed2e33 in abort () from /lib/libc.so.6
0000003 0xb7ae8213 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
0000004 0xb7ae5003 in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib/libQt5Core.so.5
0000005 0x0820453d in QList<ScText*>::at(int) const [clone .part.51] ()
0000006 0x08d6522a in StoryText::eraseCharStyle(int, unsigned int, CharStyle const&) ()
0000007 0x08449ee2 in PageItem::restoreCharStyle(SimpleState*, bool) ()
0000008 0x08488e55 in PageItem::restore(UndoState*, bool) ()
0000009 0x0889d739 in UndoState::undo() ()
0000010 0x088915a2 in TransactionState::undo() ()
0000011 0x0889d489 in UndoStack::undo(unsigned int, int) ()
0000012 0x0889ae6b in UndoManager::undo(int) ()
0000013 0x08235be5 in UndoManager::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
0000014 0xb7c92ca6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
0000015 0xb7c9326b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQt5Core.so.5
0000016 0x08234ce5 in UndoPalette::undo(int) ()
0000017 0x08889563 in UndoPalette::undoClicked() ()

FirasH

2014-08-02 23:51

reporter   ~0033159

Last edited: 2015-02-25 22:17

Found some other steps to get the same crash:

0) Create a new document
1) Insert a Text Frame
2) Select the Text Frame and Insert > Sample Text
Select the whole Text Frame, not the text inside of it.

3) Go to: Properties > Text > Colors & Effects, change color of the text
4) Delete some characters with backspace
5) Type some characters
6) Delete the Text Frame
7) Undo 3 times

EDIT: cannot reproduce with 1.5.0.svn (19883)

cbradney

2015-02-25 20:53

administrator   ~0034599

FirasH: can you please check this last one.. doesn't crash for me.

Kunda

2015-02-25 21:47

updater   ~0034602

Can't recreate anymore on OSX 10.9.5 1.5svn r19883 Qt5.4
Firash, please test

FirasH

2015-03-17 15:40

reporter   ~0034717

Thanks jghali!
Fixed in 1.5.0.svn (19935).

Issue History

Date Modified Username Field Change
2014-07-05 02:44 FirasH New Issue
2014-07-05 02:58 owencook Note Added: 0032487
2014-07-05 03:00 FirasH Status new => confirmed
2014-07-06 20:41 Kunda Target Version => 1.5.0
2014-07-09 01:15 FirasH Relationship added child of 0012500
2014-08-02 23:51 FirasH Note Added: 0033159
2014-09-11 02:34 Kunda Severity crash => block
2015-02-25 20:53 cbradney Note Added: 0034599
2015-02-25 21:47 Kunda Note Added: 0034602
2015-02-25 22:17 FirasH Note Edited: 0033159
2015-03-17 00:02 jghali Status confirmed => resolved
2015-03-17 00:02 jghali Fixed in Version => 1.5.0svn
2015-03-17 00:02 jghali Resolution open => fixed
2015-03-17 00:02 jghali Assigned To => jghali
2015-03-17 15:40 FirasH Note Added: 0034717
2015-03-17 15:40 FirasH Status resolved => closed