View Issue Details

IDProjectCategoryView StatusLast Update
0005867ScribusQt4 Portpublic2007-12-26 17:02
ReporterplinnellAssigned Toavox  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version1.3.5svn 
Target Version1.3.5Fixed in Version1.3.5svn 
Summary0005867: Hitting the Return key in text frames triggers crash
Description1) new doc
Type 'T' to create new text frame
Type TEXT by holding down Shift
space bar Hit enter

2) Insert text in a text frame
Place the cursor
Hit Return -> splat.
Additional InformationFirst way:
scribus: /home/mrdocs/svn/135/trunk/Scribus/scribus/text/storytext.cpp:1187: ScText* StoryText::item(uint): Assertion `static_cast<int>(itm) < length()' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread -1229818160 (LWP 9292)]
0xb7fca410 in ?? ()
(gdb) bt
#0 0xb7fca410 in ?? ()
0000001 0xbf96a698 in ?? ()
0000002 0x00000006 in ?? ()
0000003 0x0000244c in ?? ()
0000004 0xb6d83060 in raise () from /lib/libc.so.6
0000005 0xb6d84801 in abort () from /lib/libc.so.6
0000006 0xb6d7c7bb in __assert_fail () from /lib/libc.so.6
0000007 0x08aa3205 in StoryText::item ()
0000008 0x084de815 in PageItem_TextFrame::DrawObj_Item ()
0000009 0x084986d0 in PageItem::DrawObj ()
0000010 0x0883250c in ScribusView::DrawPageItems ()
0000011 0x08842111 in ScribusView::drawContents ()
0000012 0xb7e04967 in Q3ScrollView::drawContentsOffset () from /usr/lib/libQt3Support.so.4
0000013 0xb7e06717 in Q3ScrollView::viewportPaintEvent () from /usr/lib/libQt3Support.so.4
0000014 0xb7e06f40 in Q3ScrollView::eventFilter () from /usr/lib/libQt3Support.so.4
0000015 0xb774adc1 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
0000016 0xb7750fbe in QApplication::notify () from /usr/lib/libQtGui.so.4
0000017 0xb72b96cb in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
0000018 0xb7797d8e in qt_sendSpontaneousEvent () from /usr/lib/libQtGui.so.4
0000019 0xb78a2176 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000020 0xb78a28f5 in QWidgetBackingStore::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4
0000021 0xb78a1da9 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000022 0xb78a28f5 in QWidgetBackingStore::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4
0000023 0xb78a1da9 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000024 0xb78a28f5 in QWidgetBackingStore::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4
0000025 0xb78a1da9 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000026 0xb78a28f5 in QWidgetBackingStore::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4
0000027 0xb78a1da9 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
0000028 0xb78a28f5 in QWidgetBackingStore::paintSiblingsRecursive () from /usr/lib/libQtGui.so.4
0000029 0xb78a1da9 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000030 0xb78a2e3c in QWidgetBackingStore::cleanRegion () from /usr/lib/libQtGui.so.4
0000031 0xb78a36fd in qt_syncBackingStore () from /usr/lib/libQtGui.so.4
0000032 0xb778fa92 in QWidget::event () from /usr/lib/libQtGui.so.4
0000033 0xb774ae10 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
0000034 0xb7750fbe in QApplication::notify () from /usr/lib/libQtGui.so.4
0000035 0xb72b96cb in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
0000036 0xb72bb025 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4
0000037 0xb72dbf8f in QEventDispatcherUNIX::processEvents () from /usr/lib/libQtCore.so.4
0000038 0xb77c1cb8 in QEventDispatcherX11::processEvents () from /usr/lib/libQtGui.so.4
0000039 0xb72b8c08 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
0000040 0xb72b8d1c in QEventLoop::exec () from /usr/lib/libQtCore.so.4
0000041 0xb72bb398 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
0000042 0xb774a527 in QApplication::exec () from /usr/lib/libQtGui.so.4
0000043 0x084113b2 in mainApp ()
0000044 0x08411402 in main ()
(gdb)

Second way:
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb6bd9aa0 (LWP 15325)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
0 0xffffe410 in __kernel_vsyscall ()
0000001 0xb6f078f5 in raise () from /lib/libc.so.6
0000002 0xb6f091e1 in abort () from /lib/libc.so.6
0000003 0xb6f00c1e in __assert_fail () from /lib/libc.so.6
0000004 0x08a8b72a in ScText_Shared::replaceCharStyleContextInParagraph (
    this=0x96ad840, pos=1634, newContext=0x96da0f0)
    at /home/christoph/scribus135/trunk/Scribus/scribus/text/sctext_shared.cpp:130
0000005 0x08a87bcd in StoryText::insertParSep (this=0x976719c, pos=1634)
    at /home/christoph/scribus135/trunk/Scribus/scribus/text/storytext.cpp:257
0000006 0x08a87fe9 in StoryText::insertChars (this=0x976719c, pos=1634,
    txt=@0xbf90e888, applyNeighbourStyle=true)
    at /home/christoph/scribus135/trunk/Scribus/scribus/text/storytext.cpp:333
0000007 0x085725eb in PageItem_TextFrame::handleModeEditKey (this=0x9762fa8,
    k=0xbf90ef78, keyRepeat=@0x8ce1003)
    at /home/christoph/scribus135/trunk/Scribus/scribus/pageitem_textframe.cpp:2973
0000008 0x0881b2e6 in ScribusMainWindow::keyPressEvent (this=0x8ce0b60,
    k=0xbf90ef78)
    at /home/christoph/scribus135/trunk/Scribus/scribus/scribus.cpp:1841
0000009 0x088aff75 in ScribusView::eventFilter (this=0x9779d50, obj=0x9779d50,
    event=0xbf90ef78)
    at /home/christoph/scribus135/trunk/Scribus/scribus/scribusview.cpp:4392
---Type <return> to continue, or q <return> to quit---
0000010 0xb7968df2 in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
0000011 0xb796f350 in QApplication::notify () from /usr/lib/libQtGui.so.4
0000012 0xb746386b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
0000013 0xb79b5c7e in qt_sendSpontaneousEvent () from /usr/lib/libQtGui.so.4
0000014 0xb79df85a in QKeyMapper::sendKeyEvent () from /usr/lib/libQtGui.so.4
0000015 0xb79e11f8 in QKeyMapperPrivate::translateKeyEvent ()
   from /usr/lib/libQtGui.so.4
0000016 0xb79be7c5 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
0000017 0xb79e265a in x11EventSourceDispatch () from /usr/lib/libQtGui.so.4
0000018 0xb6e0e446 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
0000019 0xb6e117e2 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
0000020 0xb6e11d9e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
0000021 0xb74858e2 in QEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtCore.so.4
0000022 0xb79e22d5 in QGuiEventDispatcherGlib::processEvents ()
   from /usr/lib/libQtGui.so.4
0000023 0xb7462cb8 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
0000024 0xb7462dcc in QEventLoop::exec () from /usr/lib/libQtCore.so.4
0000025 0xb74656ca in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
0000026 0xb7968507 in QApplication::exec () from /usr/lib/libQtGui.so.4
0000027 0x08a69800 in mainApp (argc=1, argv=0xbf90f8c4)
---Type <return> to continue, or q <return> to quit---
    at /home/christoph/scribus135/trunk/Scribus/scribus/main_nix.cpp:76
0000028 0x08a69864 in main (argc=Cannot access memory at address 0x3bdd
)
    at /home/christoph/scribus135/trunk/Scribus/scribus/main_nix.cpp:52
TagsNo tags attached.
Patch

Relationships

has duplicate 0006018 closed Crash due to Signal 0000006 
has duplicate 0006557 closedjghali Hitting the Return key in text frames triggers crash 
has duplicate 0006563 closedcbradney Editor causes Crash Signal 0000006 
related to 0005933 closedavox crash when klick backspace in textbox 
related to 0006128 closedavox story editor: crash on breaking the line 
child of 0005693 closedplinnell 1.3.5 bug collection (prior to roadmap) 

Activities

christoph_s

2007-06-12 20:27

developer   ~0016522

Here I need an additional step: hitting backspace.

plinnell

2007-10-21 11:58

viewer   ~0017729

Still there.

scribus: /home/mrdocs/svn/135/trunk/Scribus/scribus/text/storytext.cpp:1191: ScText* StoryText::item(uint): Assertion `static_cast<int>(itm) < length()' failed.

Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb6bfb6d0 (LWP 15765)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
0000001 0xb6f2d8f5 in raise () from /lib/libc.so.6
0000002 0xb6f2f1e1 in abort () from /lib/libc.so.6
0000003 0xb6f26c1e in __assert_fail () from /lib/libc.so.6
0000004 0x08b2d56e in StoryText::item ()
0000005 0x08569aca in PageItem_TextFrame::DrawObj_Item ()
0000006 0x085119cf in PageItem::DrawObj ()
0000007 0x082eb1e2 in Canvas::DrawPageItems ()
0000008 0x082edeb4 in Canvas::drawContents ()
0000009 0x082ee964 in Canvas::paintEvent ()
0000010 0xb79d3ced in QWidget::event () from /usr/lib/libQtGui.so.4
0000011 0xb798ee3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
0000012 0xb79950d3 in QApplication::notify () from /usr/lib/libQtGui.so.4
0000013 0xb748a86b in QCoreApplication::notifyInternal ()
   from /usr/lib/libQtCore.so.4
0000014 0xb79dbc7e in qt_sendSpontaneousEvent () from /usr/lib/libQtGui.so.4
0000015 0xb7aec502 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000016 0xb7aebf9c in QWidgetBackingStore::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
0000017 0xb7aec159 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000018 0xb7aebf9c in QWidgetBackingStore::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
---Type <return> to continue, or q <return> to quit---
0000019 0xb7aec159 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000020 0xb7aebf9c in QWidgetBackingStore::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
0000021 0xb7aec159 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000022 0xb7aebf9c in QWidgetBackingStore::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
0000023 0xb7aec159 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000024 0xb7aebf9c in QWidgetBackingStore::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
0000025 0xb7aec159 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000026 0xb7aebf9c in QWidgetBackingStore::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
0000027 0xb7aec159 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
0000028 0xb7aecde7 in QWidgetBackingStore::cleanRegion ()
   from /usr/lib/libQtGui.so.4
0000029 0xb7aed22d in qt_syncBackingStore () from /usr/lib/libQtGui.so.4
0000030 0xb79d420f in QWidget::event () from /usr/lib/libQtGui.so.4
0000031 0xb7c500ff in QAbstractButton::event () from /usr/lib/libQtGui.so.4
0000032 0xb7d07144 in QToolButton::event () from /usr/lib/libQtGui.so.4
0000033 0xb798ee3d in QApplicationPrivate::notify_helper ()
   from /usr/lib/libQtGui.so.4
0000034 0xb79950d3 in QApplication::notify () from /usr/lib/libQtGui.so.4
0000035 0xb748a86b in QCoreApplication::notifyInternal ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libQtCore.so.4
0000036 0xb748c32e in QCoreApplicationPrivate::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
0000037 0xb748c60d in QCoreApplication::sendPostedEvents ()
   from /usr/lib/libQtCore.so.4
0000038 0xb74ac200 in postEventSourceDispatch () from /usr/lib/libQtCore.so.4
0000039 0xb6e17446 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
0000040 0xb6e1a7e2 in ?? () from /usr/lib/libglib-2.0.so.0
0000041 0x08d2bc90 in ?? ()
0000042 0x00000000 in ?? ()
(gdb)

jghali

2007-10-21 12:09

administrator   ~0017730

Weird, no crash here.

cbradney

2007-12-04 20:31

administrator   ~0018162

No crash here

cbradney

2007-12-04 20:40

administrator   ~0018164

Does in fact crash with 2nd method, not with the first

jghali

2007-12-04 20:42

administrator   ~0018165

Same, crash with second method, not the first

avox

2007-12-05 23:01

updater   ~0018179

This fixes 2). 1) is not reproducible any more.

christoph_s

2007-12-06 20:02

developer   ~0018190

Tested, fixed. Thanks.

Issue History

Date Modified Username Field Change
2007-06-11 22:57 plinnell New Issue
2007-06-12 20:27 christoph_s Note Added: 0016522
2007-06-12 20:27 christoph_s Status new => confirmed
2007-06-22 01:03 christoph_s Relationship added related to 0005933
2007-06-22 01:04 christoph_s Status confirmed => assigned
2007-06-22 01:04 christoph_s Assigned To => avox
2007-07-22 09:47 plinnell Relationship added has duplicate 0006018
2007-10-21 11:58 plinnell Note Added: 0017729
2007-10-21 12:09 jghali Note Added: 0017730
2007-12-04 20:15 jghali Summary crash in editing text frame => Hitting the Return key in text frames triggers crash
2007-12-04 20:15 jghali Description Updated
2007-12-04 20:16 jghali Relationship added has duplicate 0006557
2007-12-04 20:16 jghali Relationship added child of 0005693
2007-12-04 20:17 jghali Additional Information Updated
2007-12-04 20:31 cbradney Note Added: 0018162
2007-12-04 20:40 cbradney Note Added: 0018164
2007-12-04 20:42 jghali Note Added: 0018165
2007-12-05 21:51 cbradney Relationship added has duplicate 0006563
2007-12-05 23:01 avox Status assigned => resolved
2007-12-05 23:01 avox Fixed in Version => 1.3.5svn
2007-12-05 23:01 avox Resolution open => fixed
2007-12-05 23:01 avox Note Added: 0018179
2007-12-05 23:12 cbradney Relationship added related to 0006128
2007-12-06 20:02 christoph_s Status resolved => closed
2007-12-06 20:02 christoph_s Note Added: 0018190
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