Inkscape crashes when I try to resize image

Bug #527314 reported by LLMMNNOOPP
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Unassigned

Bug Description

This has happened to me with a couple of svg files.

I go to File-> Document Properties -> Fit Page To Selection
and Inkscape crashes with the message:
"Inkscape encountered an internal error and will close now.
Automatic backup of the following documents failed: ..."

I get the same error if I change the dimensions manually via File-> Document Properties -> Width/Height

I put a copy of a problematic svg file here:
http://www.math.uh.edu/~robertr/temp/Rosenbaum_Figure_6U2.svg

I am running Inkscape 0.47 on mac OS 10.6. I installed from the binary on the Inkscape website.

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

reproduced with Inkscape 0.47+devel r9108 on OS X 10.5.8

emergency save fails, there are no console messages besides ~400 repeated warnings:

** (inkscape-bin:3665): WARNING **: Called helperfns_read_number with value==null_ptr, this can lead to unexpected behaviour.

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

Which application was used to create the original diagrams? Did you import them as SVG files?

Revision history for this message
LLMMNNOOPP (rjrosenbaum) wrote :

The top part of the figure (circles and arrows) was created in Inkscape. The bottom part (plots) was created in Mathematica, exported as an svg, then edited in Inkscape.

Revision history for this message
LLMMNNOOPP (rjrosenbaum) wrote :

The error seems to be in the Inkscape generated part, not the Mathematica generated part.

As far as I remember, the following file was made from scratch in Inkscape:
http://www.math.uh.edu/~robertr/temp/Rosenbaum_Figure_6U.svg
and it gives the same error.

Revision history for this message
LLMMNNOOPP (rjrosenbaum) wrote :

Sure enough, if I delete the top part of "Figure_6U2.svg" (keeping only the Mathematica stuff), I can resize the image with no problem.

Another sign of a problem in "Figure_6U.svg":
If I try to Import it into a blank svg file, Inkscape crashes.

Revision history for this message
LLMMNNOOPP (rjrosenbaum) wrote :

Nevermind the first part of my last post. Deleting the top part of the file does not help.
I was cutting the bottom part, deleting everything, then pasting it back. However, this pastes in a bitmap format. Simply deleting the top part does not resolve the issue.

Revision history for this message
LLMMNNOOPP (rjrosenbaum) wrote :

Okay, I have reduced the error to a very simple case. The following file has the same issue:
http://www.math.uh.edu/~robertr/temp/test2.svg

To make this file, I deleted everything from Rosenbaum_Figure_6U.svg then drew a circle.

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

> However, this pastes in a bitmap format.

that's an issue with Apple's X11 - see the FAQ "Copying and pasting in Inkscape creates pixellated images instead of copying the vector objects" <http://wiki.inkscape.org/wiki/index.php/FAQ#Copying_and_pasting_in_Inkscape_creates_pixellated_images_instead_of_copying_the_vector_objects> on how to change the X11 preferences to enable copy&paste of vector objects in Inkscape on Leopard and Snow Leopard.

Screenshot of X11 preferences: <http://launchpadlibrarian.net/36209214/XQuartz-clipboard-preferences.png>

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

'Rosenbaum_Figure_6U.svg' wasn't created with Inkscape either. Your test case 'test2.svg' has (partially deleted) remnants of the original file (e.g. clipped groups with text, clip-paths) that are not visible on-canvas.

I don't know if Inkscape crashes due to the SVG structure (clip-paths?) in those files created by Mathematica - but maybe you could try with a reduced original test case from Mathematica what triggers the crash in Inkscape (e.g. one without text or with a very basic diagram)?

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

crash confirmed on Windows XP. I get a crash if I simply Import the file rather than Opening it.

Revision history for this message
LLMMNNOOPP (rjrosenbaum) wrote :

I don't think that Mathematica is the problem. I don't think that anything in 'Rosenbaum_Figure_6U.svg' was generated in Mathematica. It's an old file to which I later added Mathematica svg's, to obtain 'Rosenbaum_Figure_6U2.svg'.

In any case, I made the X11 preference change that ~suv suggested (thanks!), then copied the top part of the problematic figure to another file. Now I have the figure I wanted and no crashes. Thanks for the help.

I guess the original file, 'Rosenbaum_Figure_6U.svg', is corrupt. I have no idea what the source of the problem is, but I'm pretty sure it originated in Inkscape, perhaps an older version.

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

Thank you for testing and reporting back. I propose to leave this bug report open at high priority because imho Inkscape should not crash when resizing (or importing) a document that otherwise is rendered without visible error.

Revision history for this message
LLMMNNOOPP (rjrosenbaum) wrote :

Okay. I'll leave the files on my server until one day when I'm cleaning up and forget why they're there.

Revision history for this message
Igor Korček (angelxube) wrote :

I am sorry if this bug is solved in the latest version but i am not sure and there's no any latest DEB so...

Inkscape 0.48.0 r9654
Linux Mint 9

When i press Shift+Ctrl+D (Document Properties) my Inkscape crash. Here is a report from gdb:

** (inkscape:4690): CRITICAL **: Inkscape::XML::Document* sp_repr_read_file(const gchar*, const gchar*): assertion `Inkscape::IO::file_test( filename, G_FILE_TEST_EXISTS )' failed
terminate called after throwing an instance of 'Gtk::IconThemeError'

Program received signal SIGABRT, Aborted.
0x00007fffef7d9ba5 in raise () from /lib/libc.so.6

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

@Igor Korček - your issue is not related to this report (bug #527314):

> Inkscape 0.48.0 r9654
> Linux Mint 9

> terminate called after throwing an instance of 'Gtk::IconThemeError'

-> this is bug #658055 (fixed in Inkscape 0.48.1, but the underlying issue - caused by changes in GTK+ ≥ 2.22 - might affect other applications as well, as seen in bug #651678)

Revision history for this message
jazzynico (jazzynico) wrote :

Both test files now lead to a 404 page. Could someone with a local copy attach it to the report so that we could work on it again.

Revision history for this message
su_v (suv-lp) wrote : Re: [Bug 527314] Re: Inkscape crashes when I try to resize image
Revision history for this message
jazzynico (jazzynico) wrote :

Thanks for the files ~suv!

Crash reproduced on Crunchbang Waldorf, Inkscape 0.48.3.1.
Not reproduced with trunk revision 13446.

Changed in inkscape:
milestone: none → 0.91
status: Confirmed → Fix Committed
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
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.