Crash on opening a recent document

Bug #414030 reported by Skinner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
High
Unassigned

Bug Description

I follow the directions in Inkscape Tutorial #2: Text and Simple Styling. When the work is finished, I save the document and close Inkscape. After I launch the program again and try to open this document (or even single-click on it within the Select Files To Open window), Inkscape crashes.
  Operating system: Windows XP SP 2
  Inkscape version: 0.47 pre1

Tags: crash
Revision history for this message
su_v (suv-lp) wrote :

Could you attach the svg file that crashes Inkscape?

Revision history for this message
Skinner (skirmish) wrote :

OK, here it is.

Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Ubuntu 9.04, Inkscape rev. 22095.
Backtrace attached.

Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
tags: added: crash
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Confirmed with Inkscape 0.46+devel r22086 on OS X 10.5.8: Inkscape already dies when trying to create a thumbnail preview in the file chooser (file open dialog).

console messages:

inkscape-bin(4222,0xa0481720) malloc: *** mmap(size=1207959552) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
terminate called after throwing an instance of 'std::bad_alloc'
  what(): St9bad_alloc

Emergency save activated!

Revision history for this message
su_v (suv-lp) wrote :

I had recently created a similar file (created when testing a text tutorial at <http://troy-sobotka.blogspot.com/2008/04/inkscape-tutorial-2-text-and-simple.html>). FireFox, Safari and Batik render it (different than it looked in Inkscape, but) without crash.

   inkscape:version="0.47pre1 r21720"

Revision history for this message
Alvin Penner (apenner) wrote :

in Windows XP I get the crash message:

** (inkscape.exe:2556): WARNING **: SPObject::updateDisplay(SPCtx *ctx, unsigned int flags) : throw in ((SPObjectClass *) G_OBJECT_GET_CLASS(this))->update(this, ctx, flags);
terminate called after throwing an instance of 'std::bad_alloc'
  what(): std::bad_alloc

It looks as though the crash is related to the sequence in which svg elements are declared. The original file Ex.svg had the sequence : path, path, path, text. (where the paths all have an xlink:href reference to the text before it is declared.)

In the attached file Ex_reverse.svg I changed the sequence to : text, path, path, path. This file does not crash my Inkscape. However, the appearance of this image is not as interesting as the original Ex.svg when it was viewed in IE8.

Revision history for this message
su_v (suv-lp) wrote :

Both files crash Inkscape 0.46-2 on OS X 10.5.8 as well, when trying the open the containing directory in the GTK file chooser (Open file dialog), with preview disabled.

Revision history for this message
Alvin Penner (apenner) wrote :

attached is a modified version of text-effects-1.svg, which does not crash Inkscape 0.47pre1. I relocated the text element to be first in the file, before the path elements.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.