Crash when copying or cutting an orphaned clone to clipboard (rev >= 14309)

Bug #1565272 reported by su_v
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Mc

Bug Description

If an orhpaned clone is among selected objects copied or cut to the clipboard, current trunk crashes. First encountered when attempting to copy the content (selected with Ctrl+A) of the current icons.svg file.

Steps to reproduce:
1) launch current trunk (default new prefs, default new doc (en_US))
2) draw a rect
3) create a clone (Alt+D)
4) select original rect again
4) open Object Properties
5) change the ID --> orphans the clone
6) select all (or just the orphaned clone) and copy (Ctrl+C) or cut (Ctrl+X)

--> Inkscape crashes:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000068
0x0000000100b10d1b in Inkscape::UI::ClipboardManagerImpl::_copyUsedDefs (this=0x1102a51f0, item=0x0) at clipboard.cpp:768
768 SPStyle *style = item->style;

Reproduced with latest trunk (0.91+devel r14758) on OS X 10.7.5.

Based on tests with archived builds:
- not reproduced with rev <= 14308,
- reproduced with rev >= 14309;
this regression is likely exposed by changes for bug #167907 in
Rev 14309: Allows for copying clones between inkscape instances.
https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/14309

Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
Mc (mc...) wrote :

thanks for the report ! Fixed in 14759

Changed in inkscape:
assignee: nobody → Mc (mc...)
status: New → Fix Released
milestone: none → 0.92
Revision history for this message
su_v (suv-lp) wrote : Re: [Bug 1565272] Re: Crash when copying or cutting an orphaned clone to clipboard (rev >= 14309)

@Mc - thanks for the quick fix!

> ** Changed in: inkscape
> Status: New => Fix Released
>
> ** Changed in: inkscape
> Milestone: None => 0.92

The milestone should be removed (crash was never part of a stable
release; and 0.92 has not been released yet either).

Mc (mc...)
Changed in inkscape:
milestone: 0.92 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.