Segmentation fault when converting a particular SVG file to PNG
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Medium
|
Unassigned |
Bug Description
If I try and convert the attached file (arc_ellipse.svg) as a PNG file, I get a segmentation fault:
---
$ inkscape -z arc_ellipse.svg --export-png arc_ellipse_svg.png
Background RRGGBBAA: ffffff00
Area 0:0:720:540 exported to 720 x 540 pixels (90 dpi)
Bitmap saved as: arc_ellipse_svg.png
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.
** Message: Error: Inkscape encountered an internal error and will close now.
Segmentation fault: 11
---
I do not see this error with other files, so it does not appear to be an installation problem.
My configuration is:
MacOS 10.7.3
Inkscape 0.48.2 r9819 (Mar 20 2012)
Inkscape was installed via MacPorts
If I run inkscape in the debugger, the issue does not occur:
---
(gdb) run -z arc_ellipse.svg --export-png arc_ellipse_svg.png
Starting program: /opt/local/
Reading symbols for shared libraries +++++++
.......
Reading symbols for shared libraries . done
Background RRGGBBAA: ffffff00
Area 0:0:720:540 exported to 720 x 540 pixels (90 dpi)
Bitmap saved as: arc_ellipse_svg.png
Program exited normally.
---
Crash not reproduced with inkscape' moved aside)).
- Inkscape 0.48.2 (MacPorts), 0.48.3.1 and 0.48+devel r11116 on OS X 10.7.2, Gtk+/X11 2.24.10
- Inkscape 0.48.2 (MacPorts) on Mac OS X 10.5.8, Gtk+/X11 2.24.8
- Inkscape 0.48.3.1 (MacPorts, local repo) and 0.48+devel r11116 on Mac OS X 10.5.8 (i386), Gtk+/Quartz 2.24.10
using the same command as detailed by the reporter (tested both with usual preferences, and with default settings ('~/.config/
> $ inkscape -z arc_ellipse.svg --export-png arc_ellipse_svg.png
AFAICT that's not really the correct syntax btw - see 'inkscape --help'. Could you test with png=arc_ ellipse_ svg.png
$ inkscape arc_ellipse.svg --export-
or
$ inkscape arc_ellipse.svg -e arc_ellipse_svg.png
or
$ inkscape -f arc_ellipse.svg -e arc_ellipse_svg.png
Note: '-z' is not explicitly needed for exporting to bitmap via command line (it is assumed for -p, -e, -l, and --vacuum-defs options).