CRASH: Various files will not load

Bug #504032 reported by Troy James Sobotka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Summary: Approximately 70% of my previous SVG files fail to load under the current revision of Inkscape. It seems unrelated to file complexity or other such constants.

Version: bzr 8949 (SVN built as of 06/01/10)

Additional Information: I have been hesitant to post this bug report as I expected it to be remedied. However, this has been lingering now for at least a couple of weeks. I suspect something has broken and no one has noticed just yet. I will attach standard output and a sample SVG. There are _many_ more SVGs that fail, however.

Tags: crash
Revision history for this message
Troy James Sobotka (troy-sobotka) wrote :
Revision history for this message
Troy James Sobotka (troy-sobotka) wrote :
tags: added: crash load
Revision history for this message
su_v (suv-lp) wrote :

Linking as duplicate to bug #500507 “crash on opening a document with 'inkscape:perspective' in <defs>”:
<https://bugs.launchpad.net/inkscape/+bug/500507>

The only workaround I have found so far: launch Inkscape empty (i.e. _not_ by double-clicking a SVG document in the file manager or with a filename as argument on the command line), then load the file you want to work with via 'File > Open...'.
To open a second one: first open a default new one (use the icon on the commandbar), them - in this second (empty) window - again use 'File > Open...' to load a file (it will be opened in this window if the new document is still unchanged).

(the used 'default.svg' must not include a 'perspective' definition in its <defs> section - e.g. the shipped 'share/templates/default.svg' loads without crash)

Revision history for this message
Troy James Sobotka (troy-sobotka) wrote :

~suv - PROPS! Thank you so much for the workaround.

Revision history for this message
Troy James Sobotka (troy-sobotka) wrote :

~suv Can you double check this? None of the work I get the crash on is related to perspective tools.

This is a very nasty bug that impacts a huge portion of my saved work. Look at the sample here - no perspective tools used. Is it being stuck into the file by Inkscape default?

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

> Look at the sample here - no perspective tools used.
I did ;)

  <defs
     id="defs4">
    <inkscape:perspective
       sodipodi:type="inkscape:persp3d"
       inkscape:vp_x="0 : 0.5 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_z="1 : 0.5 : 1"
       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
       id="perspective3635" />
    <inkscape:perspective
       sodipodi:type="inkscape:persp3d"
       inkscape:vp_x="0 : 0.5 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_z="1 : 0.5 : 1"
       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
       id="perspective3605" />
    <inkscape:perspective
       id="perspective10"
       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
       inkscape:vp_z="1 : 0.5 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_x="0 : 0.5 : 1"
       sodipodi:type="inkscape:persp3d" />
  </defs>

> Is it being stuck into the file by Inkscape default?

it was up to revision 8910

> None of the work I get the crash on is related to perspective tools.

Because it is not connected directly to the *use* of the 3dbox tool. AFAIU previous to the changes in r8911 and r8910 every document opened in Inkscape had at least one 'perspective' definition in the <defs> section added. Now it is only stored when there is a 3dbox element added in that document. But the refactoring changes currently cause Inkscape to crash on opening an older document (created with inkscape < r8910) under certain conditions.

I can revert the duplicate status if you prefer, but I still think it is the same bug.

see also:
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/32764/focus=32774>

revision 8910: Refactoring of 3D box tool, mainly to avoid unnecessary creation of perspectives.
revision 8911: Major simplification of 3D box code

Revision history for this message
Troy James Sobotka (troy-sobotka) wrote :

No I totally trust your information obviously.

Perhaps the original bug should have an updated title. Currently the title seems like it is tied to the 3D transformation, when, in fact, it is a byproduct of the file format.

It is a little more severe as a result.

jazzynico (jazzynico)
tags: removed: load
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.