View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011375 | Scribus | General | public | 2013-01-16 07:22 | 2013-01-18 00:05 |
Reporter | bartje | Assigned To | cbradney | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Kubuntu | OS | Linux | OS Version | 12.10 |
Product Version | 1.5.0svn | ||||
Fixed in Version | 1.5.0svn | ||||
Summary | 0011375: Crash on 'cut' segfault | ||||
Description | Always when I perform a press ctrl-x or use the 'cut' in menu, scribus-trunk crashes completely. I installed the debug package and after "dbg scribus-trunk" I get this error. It says nothing to me, but perhaps it might be of help for you: (gdb) run Starting program: /usr/bin/scribus-trunk [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated. "nl_NL.UTF-8" [New Thread 0x7fffd9cdf700 (LWP 8499)] [New Thread 0x7fffd017f700 (LWP 8500)] [New Thread 0x7fffc45e2700 (LWP 8506)] [Thread 0x7fffc45e2700 (LWP 8506) exited] [New Thread 0x7fffc45e2700 (LWP 8515)] [New Thread 0x7fffb9e08700 (LWP 8516)] QRegion epmty QRegion epmty QRegion epmty QRegion epmty QRegion epmty QRegion epmty QRegion epmty QRegion epmty [Thread 0x7fffb9e08700 (LWP 8516) exited] [Thread 0x7fffc45e2700 (LWP 8515) exited] storytext::charstyle: access at end of text %i 14 Program received signal SIGSEGV, Segmentation fault. 0x0000000000a1bbb7 in PageItem_TextFrame::clearContents (this=0x512ebd0) at /build/buildd/scribus-trunk-1.5.0svn201301152304/scribus/pageitem_textframe.cpp:4012 4012 /build/buildd/scribus-trunk-1.5.0svn201301152304/scribus/pageitem_textframe.cpp: Bestand of map bestaat niet. (gdb) | ||||
Steps To Reproduce | run scribus trunk, open a file, cut a text-frame | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
Can`t get any crashes here. BTW looking at where place where he got crash seems he try to cut one not linked text frame, not selected text in frame. But nothing wrong happens here in my Scribus 1.5 with exactly same enviroment. |
|
I cant get any crash neither with CTRL X. |
|
Let me know if more info is needed, and how I can collect it for you. Grtz, Bart |
|
I suggest you delete all BUILD file and BIN files, and recompile from scratch, before doing new tests. |
|
I installed scribus-trunk from the /scribus/ppa/ubuntu ppa, should I clear cache or instead build from source? Perhaps there's something wrong with the files in the repository? |
|
Hmm i have also tested this version with no problems... Can you upload example SLA where this happens and explain what precisely we ought to do to reproduce ? |
|
Ok, I seem to have been wrong in the reproducing steps, in a newly created document it indeed does not happen on frames that weren't saved previously. New steps to reproduce: create a new document, create a text-frame, save as a file, close file, open file and cut the text-frame: result-> crash. |
|
Cant reproduce. Please upload saved file. |
|
No crash here with that latest description |
|
|
|
uploaded |
|
OK i reproduce with uploaded doc. And i reproduce with by-me created doc. Steps to reproduce : - create new doc - create frame - type a few words inside frame - save file - close doc - open saved file - select frame - cut frame (previously missing step was "type a few words") |
|
Now I can confirm too and I have fixing patch for that issue. |
|
11375.patch (571 bytes)
diff --git a/Scribus/scribus/pageitem_textframe.cpp b/Scribus/scribus/pageitem_textframe.cpp index 7440a94..5fcf0b2 100644 --- a/Scribus/scribus/pageitem_textframe.cpp +++ b/Scribus/scribus/pageitem_textframe.cpp @@ -4008,7 +4008,7 @@ void PageItem_TextFrame::clearContents() nextItem->asTextFrame()->deleteSelectedTextFromFrame(); if (!isNoteFrame()) { - if(UndoManager::undoEnabled()) + if(UndoManager::undoEnabled() && undoManager->getLastUndo()) undoManager->getLastUndo()->setName(Um::ClearText); nextItem->itemText.setDefaultStyle(defaultStyle); } |
|
Patch applied, resolving. Thanks. Can you please retest? |
|
Tested, fixed. Thanks. |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-01-16 07:22 | bartje | New Issue | |
2013-01-16 09:53 | cezaryece | Note Added: 0029709 | |
2013-01-16 09:59 | JLuc | Note Added: 0029710 | |
2013-01-16 12:07 | bartje | Note Added: 0029711 | |
2013-01-16 13:44 | JLuc | Note Added: 0029712 | |
2013-01-16 15:57 | bartje | Note Added: 0029714 | |
2013-01-16 17:43 | JLuc | Note Added: 0029715 | |
2013-01-16 18:00 | bartje | Note Added: 0029716 | |
2013-01-16 19:19 | JLuc | Note Added: 0029717 | |
2013-01-16 20:08 | cbradney | Note Added: 0029718 | |
2013-01-16 20:10 | bartje | File Added: Document-1.sla | |
2013-01-16 20:44 | bartje | Note Added: 0029720 | |
2013-01-16 21:32 | JLuc | Note Added: 0029722 | |
2013-01-16 21:33 | JLuc | Note Edited: 0029722 | |
2013-01-16 21:39 | JLuc | Note Edited: 0029722 | |
2013-01-17 07:47 | cezaryece | Note Added: 0029723 | |
2013-01-17 07:47 | cezaryece | Assigned To | => cezaryece |
2013-01-17 07:47 | cezaryece | Status | new => confirmed |
2013-01-17 07:48 | cezaryece | File Added: 11375.patch | |
2013-01-17 07:50 | cezaryece | Assigned To | cezaryece => |
2013-01-17 08:36 | christoph_s | Assigned To | => cezaryece |
2013-01-17 08:36 | christoph_s | Status | confirmed => assigned |
2013-01-17 11:26 | cezaryece | Assigned To | cezaryece => |
2013-01-17 21:24 | cbradney | Note Added: 0029725 | |
2013-01-17 21:24 | cbradney | Status | assigned => resolved |
2013-01-17 21:24 | cbradney | Fixed in Version | => 1.5.0svn |
2013-01-17 21:24 | cbradney | Resolution | open => fixed |
2013-01-17 21:24 | cbradney | Assigned To | => cbradney |
2013-01-18 00:05 | christoph_s | Note Added: 0029726 | |
2013-01-18 00:05 | christoph_s | Status | resolved => closed |