Comment 0 for bug 1239452

Revision history for this message
su_v (suv-lp) wrote : trunk: crash on ungroup (selection has group and a clone of the group) (rev >= 12532)

Steps to reproduce:
1) launch current trunk (default prefs, default new doc, locale: en_US.UTF-8)
2) draw a rectangle
3) group it ('Ctrl+G')
4) clone the group ('Alt+D')
5) select all ('Ctrl+A')
6) ungroup ('Ctrl+U')

Expected result:
The group in the selection is ungrouped, the clone is unlinked (because the original disappears) i.e. replaced with a copy of the original group

Actual result:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x0000000100270691 in sp_selection_ungroup (selection=0x10d81cb40, desktop=0x10d81dc00) at selection-chemistry.cpp:794
794 if (strcmp(group->getRepr()->name(), "svg:g") && strcmp(group->getRepr()->name(), "svg:switch") &&

Confirmed with r12685 on OS X 10.7.5.

Based on tests with archived builds:
- not reproduced with rev <= 12531,
- reproduced with rev >= 12532,
the regression is related to the merge of the C++ification branch in revision 12532:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/12532>