View Issue Details

IDProjectCategoryView StatusLast Update
0014181ScribusStory Editor / Text Framespublic2020-04-22 09:48
ReporterPeterBenedek Assigned Tojghali  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx64OSLinux MintOS Version18 (64bit)
Product Version1.5.3.svn 
Target VersionFuture Release - High PriorityFixed in Version1.5.6.svn 
Summary0014181: Deleting text with anchor marks triggers crash
DescriptionTested: Qt5.5.1 and Qt5.6.1; r21386

Antecedent: 0014175

The example document (TEST.sla) include one empty paragraph. If you deleted this, Scribus Crashes.
Additional InformationThread 1 "scribus-trunk" received signal SIGSEGV, Segmentation fault.
0x0000000000000061 in ?? ()

(gdb) bt
#0 0x0000000000000061 in ?? ()
0000001 0x000055555604cae8 in ScribusDoc::eraseMark(Mark*, bool, PageItem*, bool)
    ()
0000002 0x0000555555d12162 in PageItem_TextFrame::removeMarksFromText(bool) ()
0000003 0x0000555555d0819e in PageItem_TextFrame::deleteSelectedTextFromFrame() ()
0000004 0x0000555555d057a1 in PageItem_TextFrame::handleModeEditKey(QKeyEvent*, bool&) ()
0000005 0x0000555555b410ec in CanvasMode_Edit::keyPressEvent(QKeyEvent*) ()
0000006 0x000055555608a25d in ScribusView::eventFilter(QObject*, QEvent*) ()
0000007 0x00007ffff3ad3412 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000008 0x00007ffff452003c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
0000009 0x00007ffff452709b in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
0000010 0x00007ffff3ad362b in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000011 0x00007ffff457fb23 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
0000012 0x00007ffff452005c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
0000013 0x00007ffff4525516 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
0000014 0x00007ffff3ad362b in QCoreApplication::notifyInternal(QObject*, QEvent*)
    () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000015 0x00007ffff3f6c19e in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
0000016 0x00007ffff3f711c5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
0000017 0x00007ffff3f54f38 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
0000018 0x00007fffe6a10070 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
0000019 0x00007fffee00e1a7 in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
0000020 0x00007fffee00e400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
0000021 0x00007fffee00e4ac in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
0000022 0x00007ffff3b29a7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000023 0x00007ffff3ad0dea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000024 0x00007ffff3ad8e8c in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0000025 0x000055555659f3ba in mainApp(int, char**) ()
0000026 0x000055555659f323 in main ()
Tagsmarks
PatchNo

Relationships

related to 0014175 confirmed Error in page number (“Reference to Mark”) when anchors are in linked text frames 
child of 0012496 acknowledged Metabug: Marks & Footnotes & Weld (1.5.0.svn) 

Activities

PeterBenedek

2016-06-25 11:42

developer  

TEST.sla (18,654 bytes)

PeterBenedek

2016-06-25 11:48

developer  

0014181.png (33,350 bytes)   
0014181.png (33,350 bytes)   

Juan

2016-06-25 14:01

reporter   ~0041714

Confirmed in Windows 10 x64.

Curiously, if I do the same thing with those empty paragraphs in the file I’m attaching to this note, without frame breaks or linked frames, what is deleted is the first anchor, inserted at the beginning of the first paragraph of the frame. This deletion is reflected in the table of contents of the first page.

Juan

2016-06-25 14:01

reporter  

FirasH

2016-09-17 20:08

reporter   ~0042015

Confirmed with 1.5.3.svn (21445).

PeterBenedek

2017-05-15 19:59

developer  

output.gif (635,806 bytes)   
output.gif (635,806 bytes)   

cbradney

2017-05-16 05:35

administrator   ~0043912

We have tested this with current SVN and see no more crash. Please retest

PeterBenedek

2017-05-16 06:23

developer   ~0043913

"...and see no more crash"
Yes, I know. I retested (r22020) and uploaded "output.gif".
The crash are still reproduce, only changed.

Steps (output.gif):
-- Download and open Test.sla
-- Double click last TextBox, and click first character in second paragraph.
-- Press down arrow
-- Press up arrow
-- Press twice the Delete button

Scribus Crash

jghali

2020-04-20 10:39

administrator   ~0047543

Fixed along with 0015681

PeterBenedek

2020-04-22 09:48

developer   ~0047548

I can't reproduce anymore.

Issue History

Date Modified Username Field Change
2016-06-25 11:42 PeterBenedek New Issue
2016-06-25 11:42 PeterBenedek File Added: TEST.sla
2016-06-25 11:43 PeterBenedek Description Updated
2016-06-25 11:48 PeterBenedek File Added: 0014181.png
2016-06-25 14:01 Juan Note Added: 0041714
2016-06-25 14:01 Juan File Added: References to anchors - Unlinked Frames.sla
2016-09-17 20:08 FirasH Status new => confirmed
2016-09-17 20:08 FirasH Note Added: 0042015
2016-12-17 00:01 Kunda Target Version => Future Release - High Priority
2016-12-19 13:29 Kunda Relationship added related to 0014175
2016-12-19 13:30 Kunda Tag Attached: marks
2016-12-19 13:37 Kunda Relationship added child of 0012496
2017-05-15 19:59 PeterBenedek File Added: output.gif
2017-05-16 05:35 cbradney Note Added: 0043912
2017-05-16 06:23 PeterBenedek Note Added: 0043913
2020-04-20 10:39 jghali Assigned To => jghali
2020-04-20 10:39 jghali Status confirmed => resolved
2020-04-20 10:39 jghali Resolution open => fixed
2020-04-20 10:39 jghali Fixed in Version => 1.5.6.svn
2020-04-20 10:39 jghali Note Added: 0047543
2020-04-20 10:39 jghali Category Usability => General
2020-04-20 10:40 jghali Summary Frame break, Anchors and deleted character the end of the paragraph: Crash => Deleting text with anchor marks triggers crash
2020-04-20 10:41 jghali Category General => Story Editor / Text Frames
2020-04-22 09:48 PeterBenedek Note Added: 0047548
2020-04-22 09:48 PeterBenedek Status resolved => closed