trunk: crash when converting a clone or a group with a clone to path

Bug #1663730 reported by su_v
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
High
Jabiertxof

Bug Description

With current trunk, Inkscape crashes when converting a group which contains a clone to path. The same steps do not trigger a crash with lp:inkscape/0.92.x.

Steps to reproduce:
1) launch trunk
2) draw a rect
3) clone the rect (Alt+D)
4) move clone away from original
5) group the clone (Ctrl+G)
6) apply object to path (Shift+Ctrl+C)

Alternative steps:
1) launch trunk
2) draw rect
3) clone the rect (Alt+D)
4) apply object to path to selected clone (Shift+Ctrl+C)

--> crash:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7573d46 in SPLPEItem::removeAllPathEffects(bool) () from /home/su-v/local/src/inkscape/build/lib/libinkscape_base.so

Reproduced with Inkscape 0.92+devel r15470, r15500 on Ubuntu 14.04.5 LTS.

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

reproduced on Windows 10, Inkscape 0.92+devel 15500

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Alvin Penner (apenner) wrote :

it looks like 0.92.x is avoiding the problem entirely by refusing to perform the operation.
The status bar says "No objects to convert" when converting the group to path

su_v (suv-lp)
summary: - trunk: crash when converting a a clone or a group with a clone to path
+ trunk: crash when converting a clone or a group with a clone to path
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Xubuntu 16.04, lp:inkscape rev. 15505.

Changed in inkscape:
importance: Undecided → High
milestone: none → 0.93
status: Confirmed → Triaged
Jabiertxof (jabiertxof)
Changed in inkscape:
assignee: nobody → Jabiertxof (jabiertxof)
Revision history for this message
Jabiertxof (jabiertxof) wrote :

This patch fix the bug.

jazzynico (jazzynico)
Changed in inkscape:
status: Triaged → In Progress
Revision history for this message
su_v (suv-lp) wrote :

Patch tested successfully on Ubuntu 14.04.5 LTS with lp:inkscape r15512 - no more crashes when applying 'Object to path' to a selection which includes clone(s). The clone(s) (as expected, and as with earlier versions) are skipped from the operation.

The comment in the added code likely needs clarification (currently it is just copy&pasted from 3dbox section).

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

Closing - the issue is now tracked in more recent bug #1719505, and was fixed with recent commit
 https://gitlab.com/inkscape/inkscape/commit/0f5574afd93303c82c1ae34fd1c59791c4d81217

See my comments in bug #1719505 for reasons why this report is closed as Invalid now instead of being linked as duplicate.

Changed in inkscape:
status: In Progress → Invalid
Revision history for this message
su_v (suv-lp) wrote :

@bug-team - please remove the milestone from this report, thanks.

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.