View Issue Details

IDProjectCategoryView StatusLast Update
0006128ScribusStory Editor / Text Framespublic2007-12-26 17:02
Reporterale Assigned Toavox  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.5svn 
Target Version1.3.5Fixed in Version1.3.5svn 
Summary0006128: story editor: crash on breaking the line
Descriptionadding a return in the story editor or deleting it crashes scribus.
with 135svn from the 18th of august on linux ppc
Additional Information* create a text in the story editor
* close the story editor (saving the text :-) or wait scribus to refresh the display in the main window
* reopen the story editor (if you have closed it)
* add a return in the middle of the text
* crash


*you will also crash scribus by deleting a return in the middle of the text
*you can add returns at the end of the text
*you can delete the last return in the text
*you can delete other chars
*you can delete returns before scribus has refreshed the text frame in the main window
*crashes happen on both backspace and del.



(gdb) run
Starting program: /usr/local/bin/scribus14
[Thread debugging using libthread_db enabled]
[New Thread 805506000 (LWP 8228)]
[New Thread 816481520 (LWP 8336)]
[New Thread 825373936 (LWP 8342)]
[New Thread 833762544 (LWP 8343)]
[Thread 825373936 (LWP 8342) exited]
[Thread 833762544 (LWP 8343) exited]
scribus14: /usr/local/src/scribus14/Scribus/scribus/text/sctext_shared.cpp:139: void ScText_Shared::replaceCharStyleContextInParagraph(int, const StyleContext*): Assertion `lastContext == elem->context()' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 805506000 (LWP 8228)]
0x0e3cb708 in raise () from /lib/libc.so.6
(gdb) bt
#0 0x0e3cb708 in raise () from /lib/libc.so.6
0000001 0x0e3cd104 in abort () from /lib/libc.so.6
0000002 0x0e3c3f20 in __assert_fail () from /lib/libc.so.6
0000003 0x10a597f8 in ScText_Shared::replaceCharStyleContextInParagraph (this=0x11649060, pos=9, newContext=0x117338f0)
    at /usr/local/src/scribus14/Scribus/scribus/text/sctext_shared.cpp:139
0000004 0x10a4f4bc in StoryText::removeParSep (this=0x113bbb48, pos=9) at /usr/local/src/scribus14/Scribus/scribus/text/storytext.cpp:276
0000005 0x10a54008 in StoryText::removeChars (this=0x113bbb48, pos=9, len=1) at /usr/local/src/scribus14/Scribus/scribus/text/storytext.cpp:292
0000006 0x1090a118 in SEditor::keyPressEvent (this=0x113bbaa0, k=0x7fef2d94) at /usr/local/src/scribus14/Scribus/scribus/story.cpp:355
0000007 0x0f4773bc in QWidget::event (this=0x113bbaa0, event=0x7fef2d94) at kernel/qwidget.cpp:6066
0000008 0x0fdc9f4c in Q3TextEdit::event (this=0x113bbaa0, e=0x7fef2d94) at text/q3textedit.cpp:1179
0000009 0x0f41e788 in QApplicationPrivate::notify_helper (this=0x113bbaa0, receiver=0x113bbaa0, e=0x7fef2d94) at kernel/qapplication.cpp:3538
0000010 0x0f4230f8 in QApplication::notify (this=<value optimized out>, receiver=0x113bbaa0, e=0x7fef2d94) at kernel/qapplication.cpp:3151
0000011 0x0eccb820 in QCoreApplication::notifyInternal (this=0x0, receiver=0x2024, event=0x6) at kernel/qcoreapplication.cpp:509
0000012 0x0f487b88 in qt_sendSpontaneousEvent (receiver=0x2024, event=0x6) at qcoreapplication.h:189
0000013 0x0f4b6438 in QKeyMapper::sendKeyEvent (keyWidget=0xe2da1a0, grab=<value optimized out>, type=QEvent::KeyPress, code=16777219, modifiers=@0x7fef2e30,
    text=@0x7fef2e50, autorepeat=false, count=1, nativeScanCode=22, nativeVirtualKey=250, nativeModifiers=1) at kernel/qkeymapper_x11.cpp:1586
0000014 0x0f4b8148 in QKeyMapperPrivate::translateKeyEvent (this=0x10ce30a8, keyWidget=0x113bbaa0, event=0x7fef32a8, grab=false) at kernel/qkeymapper_x11.cpp:1566
0000015 0x0f491908 in QApplication::x11ProcessEvent (this=0x7fef34dc, event=0x7fef32a8) at kernel/qapplication_x11.cpp:2917
0000016 0x0f4b99f0 in x11EventSourceDispatch (s=0x10ca3d30, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:122
0000017 0x0e25b654 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
0000018 0x0e25fa4c in g_main_context_check () from /usr/lib/libglib-2.0.so.0
0000019 0x0e260148 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
0000020 0x0ecfb8e0 in QEventDispatcherGlib::processEvents (this=0x10ca0c08, flags=@0x7fef3418) at kernel/qeventdispatcher_glib.cpp:325
0000021 0x0f4b9428 in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=@0x30030bd0) at kernel/qguieventdispatcher_glib.cpp:178
0000022 0x0eccaccc in QEventLoop::processEvents (this=<value optimized out>, flags=@0x30030bd0) at kernel/qeventloop.cpp:126
0000023 0x0eccaec8 in QEventLoop::exec (this=0x0, flags=@0x7fef3498) at kernel/qeventloop.cpp:172
0000024 0x0ecce600 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:729
0000025 0x0f41df34 in QApplication::exec () at kernel/qapplication.cpp:3035
0000026 0x1043c8ac in mainApp (argc=1, argv=0x7fef3794) at main_nix.cpp:76
0000027 0x1043c93c in main (argc=1, argv=0x7fef3794) at main_nix.cpp:52
TagsNo tags attached.
Patch

Relationships

related to 0005867 closedavox Hitting the Return key in text frames triggers crash 
has duplicate 0006183 closedjghali Sometimes "Return" has no effect in the storyeditor or leads to a crash. 
has duplicate 0006142 closedjghali Crash of Scribus when a TAB character is input in the Text Frame editor 
child of 0005693 closedplinnell 1.3.5 bug collection (prior to roadmap) 

Activities

christoph_s

2007-08-20 19:53

administrator   ~0017095

Same on x86:

scribus: /home/christoph/scribus135/trunk/Scribus/scribus/text/sctext_shared.cpp:130: void ScText_Shared::replaceCharStyleContextInParagraph(int, const StyleContext*): Zusicherung »lastContext == elem->parstyle->charStyleContext()« nicht erfüllt.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1229928752 (LWP 8105)]
0xb7f73410 in ?? ()
(gdb) bt
#0 0xb7f73410 in ?? ()
0000001 0xbfba3a38 in ?? ()
0000002 0x00000006 in ?? ()
0000003 0xb6d43801 in abort () from /lib/libc.so.6
0000004 0xb6d3b7bb in __assert_fail () from /lib/libc.so.6
0000005 0x08a1ea44 in ScText_Shared::replaceCharStyleContextInParagraph (
    this=0x98b04b8, pos=1944, newContext=0x9aeea28)
    at /home/christoph/scribus135/trunk/Scribus/scribus/text/sctext_shared.cpp:130
0000006 0x08a1af99 in StoryText::insertParSep (this=0x940c434, pos=1944)
    at /home/christoph/scribus135/trunk/Scribus/scribus/text/storytext.cpp:257
0000007 0x08a1b3c5 in StoryText::insertChars (this=0x940c434, pos=1944,
    txt=@0xbfba3e9c, applyNeighbourStyle=false)
    at /home/christoph/scribus135/trunk/Scribus/scribus/text/storytext.cpp:333
0000008 0x088e8837 in SEditor::keyPressEvent (this=0x940c390, k=0xbfba4274)
    at /home/christoph/scribus135/trunk/Scribus/scribus/story.cpp:370
0000009 0xb7746ce8 in QWidget::event () from /usr/lib/libQtGui.so.4
0000010 0xb7e0b180 in Q3TextEdit::event () from /usr/lib/libQt3Support.so.4
0000011 0xb7701e10 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
0000012 0xb7708a32 in QApplication::notify () from /usr/lib/libQtGui.so.4
0000013 0xb726d6cb in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
0000014 0xb774ed8e in qt_sendSpontaneousEvent () from /usr/lib/libQtGui.so.4
0000015 0xb7775d9f in QKeyMapper::sendKeyEvent () from /usr/lib/libQtGui.so.4
0000016 0xb7777a12 in QKeyMapperPrivate::translateKeyEvent ()
   from /usr/lib/libQtGui.so.4
0000017 0xb7756599 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
0000018 0xb7778c35 in QEventDispatcherX11::processEvents ()
   from /usr/lib/libQtGui.so.4
0000019 0xb726cc08 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
0000020 0xb726cd1c in QEventLoop::exec () from /usr/lib/libQtCore.so.4
0000021 0xb726f398 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
0000022 0xb7701527 in QApplication::exec () from /usr/lib/libQtGui.so.4
0000023 0x08460062 in mainApp (argc=1, argv=0xbfba49f4)
    at /home/christoph/scribus135/trunk/Scribus/scribus/main_nix.cpp:76
0000024 0x084600c6 in main (argc=Cannot access memory at address 0x1fa9
)
    at /home/christoph/scribus135/trunk/Scribus/scribus/main_nix.cpp:52

christoph_s

2007-12-06 20:04

administrator   ~0018191

Tested, fixed. Thanks.

Issue History

Date Modified Username Field Change
2007-08-20 17:35 ale New Issue
2007-08-20 19:53 christoph_s Note Added: 0017095
2007-08-20 19:53 christoph_s Status new => confirmed
2007-08-20 20:30 cbradney Relationship added child of 0005693
2007-11-19 10:47 jghali Relationship added has duplicate 0006183
2007-11-27 10:21 jghali Relationship added has duplicate 0006142
2007-12-05 23:12 cbradney Relationship added related to 0005867
2007-12-05 23:12 cbradney Status confirmed => assigned
2007-12-05 23:12 cbradney Assigned To => avox
2007-12-05 23:20 cbradney Status assigned => resolved
2007-12-05 23:20 cbradney Fixed in Version => 1.3.5svn
2007-12-05 23:20 cbradney Resolution open => fixed
2007-12-06 20:04 christoph_s Status resolved => closed
2007-12-06 20:04 christoph_s Note Added: 0018191
2007-12-20 22:51 cbradney Target Version => 1.3.5svn
2007-12-26 17:02 cbradney Target Version 1.3.5svn => 1.3.5
2015-09-17 20:08 Kunda Category Story Editor / Text Frames => Story Ed/Txt Frames
2015-09-17 20:12 Kunda Category Story Ed/Txt Frames => Story Editor / Text Frames