View Issue Details

IDProjectCategoryView StatusLast Update
0012608ScribusUsabilitypublic2014-10-18 16:34
ReporterPeterBenedek Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Platformx86OSLinux Mint OS Version17 (32bit)
Product Version1.5.0svn 
Target Version1.5.0 
Summary0012608: Delete Bezier node --> Crash
DescriptionLink this video: https://www.dropbox.com/s/ldhylewirz0s68p/bezier_crash.avi

Scribus Crashes deleting Bezier node.
Steps To ReproduceCrash can be reproduced also with:

0) Create a new document
1) Insert a Bezier Curve
2) Delete any node (erroneous deletion mode)
3) Click canvas
4) Click Curve
5) Delete any node

Scribus Crash
TagsNo tags attached.
Patch

Relationships

related to 0012347 closedjghali Deleting Bezier Curve nodes leads to wrong result 
related to 0012249 closedjghali Deleting Bezier Curve nodes crashes/freezes Scribus in determined condition 
related to 0012595 closedcbradney [PATCH] Nodes tools might crash Scribus moving item between Layers 

Activities

FirasH

2014-08-15 15:13

developer   ~0033260

Tested with 1.5.0.svn (19428) but could not get the crash.

FirasH

2014-08-15 15:29

developer   ~0033261

The crash itself is caused by the Properties palette (if opened). Only reproduced with 1.5.0.svn (19425) on FreeBSD.

Here are the steps I found:

0) Create a new document
1) Make sure Windows > Properties > X,Y,Z is opened
2) Insert a Bezier Curve with 3 nodes
3) Double-click on the Bezier Curve so that "Nodes" window appears
4) Delete the node in the middle
5) Undo once
6) Double-click on Canvas to close "Nodes" window
7) Double-click on the Bezier Curve so that "Nodes" window appears
8) Delete the note in the middle

Scribus crashes due to Signal 11

I'll rebuild 12428 and see if it is still reproducible.

FirasH

2014-08-15 16:05

developer   ~0033262

Reproduced only with 1.5.0.svn on FreeBSD + Qt 5.2.1


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 814c06400 (LWP 100254/scribus)]
0x0000000000f55341 in TransactionState::pushBack (this=0x824ab5250,
    target=0x817054bb0, state=0x824b3bf60) at memory:1510
1510 ::new ((void*)__p) _Tp(__a0);
(gdb) bt
 0 0x0000000000f55341 in TransactionState::pushBack (this=0x824ab5250,
    target=0x817054bb0, state=0x824b3bf60) at memory:1510
 1 0x0000000000f448f3 in UndoManager::action (this=0x814dd81a0,
    target=0x817054bb0, state=0x824b3bf60, targetPixmap=0x0)
    at /home/.../Scribus/scribus/undomanager.cpp:360
 2 0x0000000000f57f01 in UndoTransaction::commit (this=0x8252cbdc8)
    at /home/.../Scribus/scribus/undotransaction.cpp:143
 3 0x0000000000ead1ef in NodeEditContext::finishTransaction (
    this=0x8252cbd98, currItem=0x81c8b5c00)
    at /home/.../Scribus/scribus/scribusdoc.cpp:15955
 4 0x00000000008ae843 in CanvasMode_NodeEdit::activate (this=0x824aea340,
    fromGesture=true)
    at /home/.../Scribus/scribus/canvasmode_nodeedit.cpp:221
 5 0x0000000000ee7ddc in ScribusView::stopGesture (this=0x814daf900)
    at /home/.../Scribus/scribus/scribusview.cpp:416
 6 0x0000000000834d6b in RectSelect::mouseReleaseEvent (this=0x824b14580,
    m=0x7fffffffce88)
    at /home/.../Scribus/scribus/canvasgesture_rectselect.cpp:97
 7 0x0000000000f08867 in ScribusView::eventFilter (this=0x814daf900,
    obj=0x825325e40, event=0x7fffffffce88)
    at /home/.../Scribus/scribus/scribusview.cpp:4001
 8 0x00000008023fbdac in QCoreApplicationPrivate::sendThroughObjectEventFilters ()
   from /usr/local/lib/libQt5Core.so.5
 9 0x000000080298a194 in QApplicationPrivate::notify_helper ()
   from /usr/local/lib/libQt5Widgets.so.5
 10 0x000000080298d018 in QApplication::notify ()
   from /usr/local/lib/libQt5Widgets.so.5
 11 0x00000008023fbac2 in QCoreApplication::notifyInternal ()
   from /usr/local/lib/libQt5Core.so.5
 12 0x000000080298ab45 in QApplicationPrivate::sendMouseEvent ()
   from /usr/local/lib/libQt5Widgets.so.5
 13 0x00000008029dcaca in QWidgetPrivate::setModal_sys ()
   from /usr/local/lib/libQt5Widgets.so.5
 14 0x00000008029dbdff in QWidgetPrivate::setModal_sys ()
   from /usr/local/lib/libQt5Widgets.so.5
 15 0x000000080298a1a7 in QApplicationPrivate::notify_helper ()
   from /usr/local/lib/libQt5Widgets.so.5
 16 0x000000080298cc0c in QApplication::notify ()
   from /usr/local/lib/libQt5Widgets.so.5
 17 0x00000008023fbac2 in QCoreApplication::notifyInternal ()
   from /usr/local/lib/libQt5Core.so.5
 18 0x00000008030db8f7 in QGuiApplicationPrivate::processMouseEvent ()
   from /usr/local/lib/libQt5Gui.so.5
 19 0x00000008030dac41 in QGuiApplicationPrivate::processWindowSystemEvent ()
   from /usr/local/lib/libQt5Gui.so.5
 20 0x00000008030cbb58 in QWindowSystemInterface::sendWindowSystemEvents ()
   from /usr/local/lib/libQt5Gui.so.5
 21 0x000000081452b6f0 in qt_plugin_instance ()
   from /usr/local/lib/qt5/plugins/platforms/libqxcb.so
 22 0x000000080bc99702 in g_main_context_dispatch ()
   from /usr/local/lib/libglib-2.0.so.0
 23 0x000000080bc99aa3 in g_main_context_pending ()
   from /usr/local/lib/libglib-2.0.so.0
 24 0x000000080bc99b34 in g_main_context_iteration ()
   from /usr/local/lib/libglib-2.0.so.0
 25 0x0000000802449e58 in QEventDispatcherGlib::processEvents ()
   from /usr/local/lib/libQt5Core.so.5
 26 0x000000081452b69c in qt_plugin_instance ()
   from /usr/local/lib/qt5/plugins/platforms/libqxcb.so
 27 0x00000008023f945e in QEventLoop::exec ()
   from /usr/local/lib/libQt5Core.so.5
 28 0x00000008023fc072 in QCoreApplication::exec ()
   from /usr/local/lib/libQt5Core.so.5
 29 0x00000000014c58eb in mainApp (argc=1, argv=0x7fffffffd908)
    at main_nix.cpp:86
 30 0x00000000014c5832 in main (argc=1, argv=0x7fffffffd908)
    at main_nix.cpp:54

Kunda

2014-09-02 23:30

updater   ~0033472

Can anyone reproduce ?
I'm getting some side-effect issues that I'm still working out.
For the most part the crash doesn't occur for me on the latest revision r19472

gpittman

2014-09-04 23:32

developer   ~0033505

I cannot reproduce this in Fedora 20 trying to follow these methods above.

FirasH

2014-09-05 16:08

developer   ~0033527

@PeterBenedek: which Qt version do you have? 5.2.1?

owencook

2014-09-06 07:29

reporter   ~0033538

Last edited: 2014-09-06 07:49

Reproduce this using revision 19482 on a debian based system. Qt 5.1.1

Here is the bt.



Program received signal SIGSEGV, Segmentation fault.
0x0885c7b8 in TransactionState::pushBack(UndoObject*, UndoState*) ()
(gdb) bt
#0 0x0885c7b8 in TransactionState::pushBack(UndoObject*, UndoState*) ()
0000001 0x08859622 in UndoManager::action(UndoObject*, UndoState*, QPixmap*) ()
0000002 0x0885e5e8 in UndoTransaction::commit() ()
0000003 0x087f606f in NodeEditContext::finishTransaction(PageItem*) ()
0000004 0x0831f56c in CanvasMode_NodeEdit::activate(bool) ()
0000005 0x0880df84 in ScribusView::stopGesture() ()
0000006 0x082ba1c8 in RectSelect::mouseReleaseEvent(QMouseEvent*) ()
0000007 0x08827b88 in ScribusView::eventFilter(QObject*, QEvent*) ()
0000008 0xb7c5699c in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
   from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000009 0xb74fd5b1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000010 0xb7503d5c in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000011 0xb7c5677a in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000012 0xb7501791 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000013 0xb755e25b in ?? () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000014 0xb7560c5c in ?? () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000015 0xb74fd5d4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000016 0xb7502ee9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000017 0xb7c5677a in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000018 0xb70a97c1 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()

owencook

2014-09-06 08:50

reporter   ~0033541

Reproduced on a recent Ubuntu rev 19482 with Qt-5.2.1

Program received signal SIGSEGV, Segmentation fault.
0x0885ff58 in TransactionState::pushBack(UndoObject*, UndoState*) ()
(gdb) bt
#0 0x0885ff58 in TransactionState::pushBack(UndoObject*, UndoState*) ()
0000001 0x0885cdc2 in UndoManager::action(UndoObject*, UndoState*, QPixmap*) ()
0000002 0x08861d88 in UndoTransaction::commit() ()
0000003 0x087f8168 in NodeEditContext::finishTransaction(PageItem*) ()
0000004 0x08320a54 in CanvasMode_NodeEdit::activate(bool) ()
0000005 0x08811c94 in ScribusView::stopGesture() ()
0000006 0x082ba5c2 in RectSelect::mouseReleaseEvent(QMouseEvent*) ()
0000007 0x0882b518 in ScribusView::eventFilter(QObject*, QEvent*) ()
0000008 0xb7c4dd0c in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000009 0xb74b1e01 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000010 0xb74b89ca in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000011 0xb7c4daea in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000012 0xb74b60c9 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
   from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000013 0xb7514ec1 in ?? () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000014 0xb7517a44 in ?? () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000015 0xb74b1e24 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000016 0xb74b7801 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000017 0xb7c4daea in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000018 0xb70381cc in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/lib/i386-linux-gnu/libQt5Gui.so.5
0000019 0xb7039c00 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /usr/lib/i386-linux-gnu/libQt5Gui.so.5
0000020 0xb701f0f6 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/i386-linux-gnu/libQt5Gui.so.5
0000021 0xb0ffb631 in ?? () from /usr/lib/i386-linux-gnu/qt5/plugins/platforms/libqxcb.so
0000022 0xb59261e3 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000023 0xb5926468 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000024 0xb5926528 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
0000025 0xb7ca086d in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000026 0xb0ffb836 in ?? () from /usr/lib/i386-linux-gnu/qt5/plugins/platforms/libqxcb.so
0000027 0xb7c4c206 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000028 0xb7c4c61c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000029 0xb7c53616 in QCoreApplication::exec() () from /usr/lib/i386-linux-gnu/libQt5Core.so.5
0000030 0xb702fdb4 in QGuiApplication::exec() () from /usr/lib/i386-linux-gnu/libQt5Gui.so.5
0000031 0xb74b0614 in QApplication::exec() () from /usr/lib/i386-linux-gnu/libQt5Widgets.so.5
0000032 0x08cf953e in mainApp(int, char**) ()
0000033 0x081e118b in main ()

PeterBenedek

2014-09-06 10:09

developer   ~0033543

"@PeterBenedek: which Qt version do you have? 5.2.1?"

Yes!

Quote Scribus: "This program uses Qt version 5.2.1."

owencook

2014-09-06 10:32

reporter   ~0033544

This is the bt from an up to date SUSE running Qt-5.1.1, rev 19482



Program received signal SIGSEGV, Segmentation fault.
0x0000000000be31fd in TransactionState::pushBack(UndoObject*, UndoState*) ()
(gdb) bt
#0 0x0000000000be31fd in TransactionState::pushBack(UndoObject*, UndoState*) ()
0000001 0x0000000000be0288 in UndoManager::action(UndoObject*, UndoState*, QPixmap*) ()
0000002 0x0000000000be4f43 in UndoTransaction::commit() ()
0000003 0x0000000000b827c2 in NodeEditContext::finishTransaction(PageItem*) ()
0000004 0x0000000000727de5 in CanvasMode_NodeEdit::activate(bool) ()
0000005 0x0000000000b9aa31 in ScribusView::stopGesture() ()
0000006 0x0000000000bb0b2b in ScribusView::eventFilter(QObject*, QEvent*) ()
0000007 0x00007ffff76afbf5 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
   from /usr/lib64/libQt5Core.so.5
0000008 0x00007ffff6dd01cc in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib64/libQt5Widgets.so.5
0000009 0x00007ffff6dd5b49 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib64/libQt5Widgets.so.5
0000010 0x00007ffff76af9cd in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib64/libQt5Core.so.5
0000011 0x00007ffff6dd3e71 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQt5Widgets.so.5

FirasH

2014-09-06 11:33

developer   ~0033546

mmmm, I suspect it is fixed in Qt 5.3.1 as in all the random crashes I reproduce on FreeBSD (with Qt 5.2.1) I always get "TransactionState::pushBack" in the backtrace as the ones you added here...

Kunda

2014-09-08 00:42

updater   ~0033571

@PeterBenedek please test with Qt5.3.1 and report back as soon as you can. This is one of the remaining 1.5.0 blockers.
Thanks!

PeterBenedek

2014-09-08 14:52

developer   ~0033590

Unfortunately I can not test.

Linux Mint 17 default Qt version: 5.2.1.

FirasH

2014-09-08 15:06

developer   ~0033591

Last edited: 2014-09-08 15:07

@PeterBenedek: if you want to use the latest Qt (which is highly recommended for Scribus testing) go to:
http://qt-project.org/downloads
and get the latest version available.

Then, before building add this option to the cmake command:
-DQT_PREFIX=/path/to/qt/installation (my case: /home/FirasH/Qt/5.3/gcc_64/)

Everything else is the same at build time.

Note: this will not affect your installed Qt version via Mint repositories.

owencook

2014-09-08 22:23

reporter   ~0033592

No lockup with Qt-5.3.1 in this debian based system. So maybe it was a Qt problem

Kunda

2014-09-09 12:39

updater   ~0033596

FirasH FTW :)
@PeterBenedek, please follow FirasH's advice in 0012608:0033591 and report back

BTW FirasH, does this still occur on FreeBSD ?

PeterBenedek

2014-09-11 08:27

reporter   ~0033614

Something has changed?

Retested on two computers, both Linux Mint 17 OS.

Retest Linux Mint 17 default Qt version: 5.2.1., and works well!

There was no need to install qt-5.3.1.

FirasH, thanks for the help!

Kunda

2014-09-11 13:04

updater   ~0033616

Just spoke with FirasH and the pending remaining issue left with this ticket is testing on FreeBSD with 5.3.1
Till then ticket remains open.

FirasH

2014-10-18 16:32

developer   ~0034062

The crash is related to Qt libraries.
I've rebuilt 1.5.0.svn with Qt 5.2.1 and the crash is always reproducible.
Resolving.

Issue History

Date Modified Username Field Change
2014-08-15 07:05 PeterBenedek New Issue
2014-08-15 15:11 FirasH Relationship added related to 0012347
2014-08-15 15:11 FirasH Relationship added related to 0012249
2014-08-15 15:13 FirasH Note Added: 0033260
2014-08-15 15:29 FirasH Note Added: 0033261
2014-08-15 16:05 FirasH Note Added: 0033262
2014-08-18 13:19 Kunda Severity minor => crash
2014-08-18 13:19 Kunda Status new => confirmed
2014-08-18 13:19 Kunda Target Version => 1.5.0
2014-09-02 23:30 Kunda Note Added: 0033472
2014-09-04 23:32 gpittman Note Added: 0033505
2014-09-05 16:08 FirasH Note Added: 0033527
2014-09-06 07:29 owencook Note Added: 0033538
2014-09-06 07:41 owencook Note Edited: 0033538
2014-09-06 07:49 owencook Note Edited: 0033538
2014-09-06 08:50 owencook Note Added: 0033541
2014-09-06 10:09 PeterBenedek Note Added: 0033543
2014-09-06 10:32 owencook Note Added: 0033544
2014-09-06 11:33 FirasH Note Added: 0033546
2014-09-07 01:35 william File Added: scribus15-20140907-032711-shape.pat
2014-09-07 01:35 william File Deleted: scribus15-20140907-032711-shape.pat
2014-09-07 01:50 FirasH Relationship added related to 0012595
2014-09-08 00:42 Kunda Note Added: 0033571
2014-09-08 14:52 PeterBenedek Note Added: 0033590
2014-09-08 15:06 FirasH Note Added: 0033591
2014-09-08 15:07 FirasH Note Edited: 0033591
2014-09-08 22:23 owencook Note Added: 0033592
2014-09-09 12:39 Kunda Note Added: 0033596
2014-09-11 02:34 Kunda Severity crash => block
2014-09-11 08:27 PeterBenedek Note Added: 0033614
2014-09-11 13:04 Kunda Note Added: 0033616
2014-10-18 16:32 FirasH Note Added: 0034062
2014-10-18 16:32 FirasH Status confirmed => resolved
2014-10-18 16:32 FirasH Resolution open => fixed
2014-10-18 16:32 FirasH Assigned To => FirasH
2014-10-18 16:32 FirasH Assigned To FirasH =>
2014-10-18 16:34 FirasH Status resolved => closed