segmentation fault with ill-formed id

Bug #1707373 reported by Goombert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

So on the latest Inkscape (0.92.1) exporting objects from the command line throws a segmentation fault if the ID does not exist. If you follow my other bug reports, the correct id is actually "Icon_Sprite" (which works) but that is besides the point. Shouldn't Inkscape give a more descriptive error message here such as "object with id xxxx not found"? It took me a bit to figure out the problem because I had forgot that I did not use all caps id's and instead wasted time looking on Google for why segmentation fault would occur on Inkscape's CLI.

$ inkscape "icons.svg" --export-id="ICON_SPRITE" --export-id-only --export-plain-svg="sprite.svg"
Segmentation fault

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

thank you for taking the time to issue a report.

problem reproduced using Windows 10, Inkscape 0.92.1 r15371 (32 bit)
using the command:
inkscape "example.svg" --export-id="ICON_SPRITE" --export-id-only --export-plain-svg="misspell.svg"

the DOS error message is:
** Message: Error: Inkscape encountered an internal error and will close now.

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

- problem not reproduced using Inkscape 0.92.2pre0 (973e216, 2017-07-25)
- in this case I get no output and no error message

Revision history for this message
Nathan Lee (nathan.lee) wrote :

Replicated in Inkscape 0.92.5 (2060ec1f9f, 2020-04-08)

Not replicated in Inkscape 1.1-dev (2135db397d, 2020-10-19) or Inkscape 1.0 (4035a4fb49, 2020-05-01), which give this error instead: InkFileExportCmd::do_export_svg: Object ICON_SPRITE not found in document, nothing to export.

Closing as fixed in 1.0

Testing on Linux Mint 20

Changed in inkscape:
status: New → 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.