Crash on forward reference in SVG file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This bug can be triggered as follows:
1. Start inkscape to create an empty document,
2. Create a text object,
3. Create a e.g. circle,
4. Place the text object on the circle with "put on path",
5. Save the image as SVG.
When trying to open this SVG file by inkscape, it crashes with "Inkscape encountered an internal error and will close now".
While examining the SVG file, I found that the text object is defined _before_ the circle object it references by a "xlink:href". I am not sure if this is allowed by the SVG standard, but probably yes.
Inkscape, so it seems, has problems with this kind of forward reference. If I move the text object after the circle object using a text editor, inkscape can again load the file.
This was tested with inkscape master, version 2018-08-28.
Hope this help.
Best regards,
Erik
- reproduced on Windows 10, Inkscape 0.92+devel (d890608, 2018-08-21) using the attached file.
- not reproduced on Windows 10, Inkscape 0.92.3 (f709311, 2018-08-13)