2013/10/31 su_v <suv-sf@...58...>:
On 2013-10-31 04:09 +0200, Bryan Hoyt | Brush Technology wrote:
While editing an Inkscape-created document, if I delete the ID attribute of a group (or any other element, on further investigation) using the XML editor, and then select that element in the visual editor, Inkscape crashes.
The ID in question is not referenced elsewhere in the document.
Is it valid SVG to have objects without IDs? It certainly seems like it should be, particularly for hand-crafted SVG.
AFAIK it is valid SVG.
Yes, it's valid - the ID attribute is not required. Inkscape shouldn't crash even on malformed SVGs.
Steps to reproduce:
- launch inkscape (default prefs, default new doc)
- draw a rect
- group it
- open XML Editor
- delete ID attribute of selected group
- on-canvas, double-click the selection to enter the group
- click on the rectangle to select it
-> crash with current stable and trunk (backtrace from latest trunk attached)
Please file a report in the bug tracker, thanks.
I fixed this particular crash in r12754, but there's another one when exiting the group (double click somewhere else after entering the group). I'll try to fix it soon. In the meantime if anyone can provide a backtrace that would be cool (it requires running GDB in a separate VT because the crash happens while the pointer is grabbed).
Regards, Krzysztof