View Issue Details

IDProjectCategoryView StatusLast Update
0011375ScribusGeneralpublic2013-01-18 00:05
Reporterbartje Assigned Tocbradney  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformKubuntuOSLinuxOS Version12.10
Product Version1.5.0svn 
Fixed in Version1.5.0svn 
Summary0011375: Crash on 'cut' segfault
DescriptionAlways 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 Reproducerun scribus trunk, open a file, cut a text-frame
TagsNo tags attached.
Patch

Activities

cezaryece

2013-01-16 09:53

updater   ~0029709

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.

JLuc

2013-01-16 09:59

developer   ~0029710

I cant get any crash neither with CTRL X.

bartje

2013-01-16 12:07

reporter   ~0029711

Let me know if more info is needed, and how I can collect it for you.

Grtz,
Bart

JLuc

2013-01-16 13:44

developer   ~0029712

I suggest you delete all BUILD file and BIN files, and recompile from scratch, before doing new tests.

bartje

2013-01-16 15:57

reporter   ~0029714

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?

JLuc

2013-01-16 17:43

developer   ~0029715

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 ?

bartje

2013-01-16 18:00

reporter   ~0029716

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.

JLuc

2013-01-16 19:19

developer   ~0029717

Cant reproduce. Please upload saved file.

cbradney

2013-01-16 20:08

administrator   ~0029718

No crash here with that latest description

bartje

2013-01-16 20:10

reporter  

Document-1.sla (12,632 bytes)

bartje

2013-01-16 20:44

reporter   ~0029720

uploaded

JLuc

2013-01-16 21:32

developer   ~0029722

Last edited: 2013-01-16 21:39

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")

cezaryece

2013-01-17 07:47

updater   ~0029723

Now I can confirm too and I have fixing patch for that issue.

cezaryece

2013-01-17 07:48

updater  

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);
 	}
11375.patch (571 bytes)   

cbradney

2013-01-17 21:24

administrator   ~0029725

Patch applied, resolving. Thanks. Can you please retest?

christoph_s

2013-01-18 00:05

administrator   ~0029726

Tested, fixed. Thanks.

Issue History

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