crash when unlinking an orphaned clone

Bug #675309 reported by su_v
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Adonis Papaderos

Bug Description

follow-up report to bug #185734 “Crash when href of clone is invalid”
<https://bugs.launchpad.net/inkscape/+bug/185734>

Unlinking an orphaned clone (invisible object with a reference to a not-existing object) crashes inkscape.

Steps to reproduce:
1) open 'share/icons/icons.svg'
2) Ctrl+A
3) Edit > Clone > Unlink Clone
4) crash

or:

1) open 'clones_plain.svg' from bug #185734
2) Edit > Find > [x] Clones
3) Edit > Clone > Unlink Clone
4) crash

Console message:
** (inkscape:21410): CRITICAL **: SPItem* sp_use_unlink(SPUse*): assertion `orig' failed

Reproduced with Inkscape 0.47, 0.48 and 0.48+devel r9890 on OS X 10.5.8

Tags: clones crash
Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP, Inkscape 0.46, 0.47 and 0.48.

Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Adonis Papaderos (ado-papas) wrote :

This patch should prevent Inkscape from crashing. It does not give any visual feedback, though.

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

patch tested and fix confirmed with Inkscape 0.48+devel r9899 on OS X 10.5.8:

Both test cases no longer cause Inkscape to crash when unlinking a selection which contains orphaned clones.

su_v (suv-lp)
Changed in inkscape:
status: Confirmed → In Progress
Changed in inkscape:
milestone: none → 0.48.1
status: In Progress → Fix Committed
Revision history for this message
jazzynico (jazzynico) wrote :

Committed in the trunk (revision 9922) and in the 0.48.x branch (revision 9734).

su_v (suv-lp)
Changed in inkscape:
assignee: nobody → Adonis Papaderos (ado-papas)
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Fix Released
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.