Inkscape crash when using Tex Text extension with SVG from GnuPlot

Bug #1325930 reported by Zachary Kost-Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Alright, this is a bit obscur, but it has me bothered and I have hit the point where someone that is more familiar with the extension interface and SVG in general might be able to spot the error easily. If you are using Inkscape to edit SVG file produced by the GnuPlot SVG output "terminal", then using the TexText extension will crash Inkscape. This is not simply an error regarding the extension failing, the entire program crashes. Because of this, I believe that this rightly belongs as an Inkscape bug rather than a TexText bug... Inkscape shouldn't crash even if the extension fails.

To reproduce:

# Make an svg plot with Gnuplot
> gnuplot
....
% set term svg
% set out "test.svg"
% plot sin(x)
% exit

> inkscape test.svg

Run the Tex Text extension, insert some valid latex code and click ok. You will get an error and a this is printed to the terminal:

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Segmentation fault

Extra info:

One should note that the SVG output from GnuPlot is odd in many ways and I think that at least one aspect of this is responsible. You can look at the output to see what I mean.

>>>> I have found that you can "fix" the file so Tex Text won't crash Inkscape if:

1. You force the file to save (by editing first or "save as") and select an Inkscape SVG the problem persists, this adds the sodipodi and inkscape metadata to the file. The problem still persists at this point.

2. Edit the XML so that the "id" property of the sodipodi:namedview tag reads "base" rather whatever it currently is.

3. Use Tex Text and notice that Inkscape doesn't crash and it actually inserts Latex objects into the document.

System information:
Inkscape 0.48.3.1 r9886 (Jan 29 2013)
gnuplot 4.4 patchlevel 3
Ubuntu 12.04.4 LTS 64bit

A bit old Inkscape but this has also been a problem for years and years. (It is also easy enough to work around, even if annoying. I have been using Tex Text in a separate document, then copy and past over. When I need to edit an existing object, I copy to a new document, edit, then copy back).

Revision history for this message
Zachary Kost-Smith (zachkostsmith) wrote :
Revision history for this message
Zachary Kost-Smith (zachkostsmith) wrote :

Forgot, using latest TexText (0.4.4) and I am using the pdf2svg method (not the pstoedit or pstoedit+skconvert methods). Pdf2svg version 0.2.1-2build4.

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

Known issue (regression) with Inkscape 0.48.3.1, already tracked in
- Bug #944077 “inkscape crashed with SIGSEGV in Inkscape::Extension::Implementation::Script::effect() ”
  <https://bugs.launchpad.net/inkscape/+bug/944077>

Fixed in later bug-fix release 0.48.4.

tags: added: crash extensions-plugins
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.