I don't think this bug is specific to groups, unless there are different bugs with similar symptoms.

This seems to be preferences-dependent. I've attached my preferences.xml which causes this bug to trigger.

Steps to reproduce:
1) Launch inkscape with the attached preferences.xml
2) Create a rect
3) Open XML editor and delete "id" attribute of the rect
4) Manifestation 1: Choose "select" tool, click away from rect and then click rect again. Inkscape dies with "unhandled exception (type std::exception) in signal handler:\n what: basic_string::_S_construct null not valid"
5) Manifestation 2: Don't choose the select tool, just click the rect with the rect tool. Inkscape dies with "terminate called after throwing an instance of 'std::logic_error' \n what():  basic_string::_S_construct null not valid"


 - Bryan



On Fri, Nov 1, 2013 at 6:38 AM, su_v <suv-sf@...58...> wrote:
On 2013-10-31 17:29 +0200, Krzysztof Kosiński wrote:
> 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.

>> Steps to reproduce:
>> 1) launch inkscape (default prefs, default new doc)
>> 2) draw a rect
>> 3) group it
>> 4) open XML Editor
>> 5) delete ID attribute of selected group
>> 6) on-canvas, double-click the selection to enter the group
>> 7) 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).

I'd be glad to provide a backtrace, but I fail to reproduce this crash -
tried several times with r12753 as well as with latest r12755. Any
additional step(s) required apart from these?

0) launch inkscape with default (new) prefs
1) draw rect
2) switch back to select tool (S)
3) group the rectangle (Ctrl+G)
4) open XML Editor (Shift+Ctrl+X)
5) delete 'id' attribute of selected group
6) enter group with double-click on selected group
   (or with <Esc> (return focus to canvas), Ctrl+Enter)
7) leave group with a double-click on empty canvas
   (or with Ctrl+Backspace)


Regards, V



--
Bryan Hoyt, Software Developer  --  Brush Technology
Ph: +64 3 741 1204     Mobile: +64 21 238 7955
Web: brush.co.nz