Inkscape crashes when I try to modify a specific group

Bug #578969 reported by John Harrold
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Johan Engelen

Bug Description

Howdy,

 Here is a stripped down version of an svg file I'm working on where I can consistently crash inkscape.

http://dl.dropbox.com/u/1901170/Temp/crashing%20inkscape/inkscape%20crash.svg

Here is a movie file showing what I have to do to crash inkscape:

http://dl.dropbox.com/u/1901170/Temp/crashing%20inkscape/crashing%20inkscape.mov

To recreate: In the figure there are two cone regions with ovals in the cones. If I click on the grouped ovals on the right and try to ungroup them, then inkscape crashes (the video shows this).

This is consistent and reproducible on my computer at least.

I'm not exactly sure what It is about this svg file, but I think it has something to do with the vertical dotted lines in the figure.

OS: OS X 10.5.8
X11: 2.1.6
Inkscape version: Inkscape 0.47 r22583, built Nov 24 2009

Related branches

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

Can you please add information about your OS/platform and Inkscape version as well as a list of steps how to reproduce the crash?

tags: added: crash
Changed in inkscape:
importance: Undecided → High
description: updated
Revision history for this message
su_v (suv-lp) wrote :

crash reproduced with Inkscape 0.47+devel r9405 on OS X 10.5.8

no relevant console messages, backtrace in attached crash report

<possibly off-topic>
Some notes to your file without knowing yet what really causes the crash: is there a special reason to use the 'Spiro' path effect for all the straight lines? Same question for the 'Pattern along Path' effect: you can easily draw dashed lines by setting the stroke attributes in the 'Fill and Stroke...' dialog instead of using 'Pattern along Path' path effect.
</possibly off-topic>

tags: added: livepatheffects
Changed in inkscape:
status: New → Confirmed
Revision history for this message
John Harrold (john-m-harrold) wrote :

Hey suv,

No reason in particular, I used the spiro effect once and it somehow got set to default. I didn't notice it until you pointed it out. I don't know if it will help, but here is the crash log from my mac.

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

Workaround for your current document: double-click to enter the group in question, select all vertical lines and use menu 'Path > Remove Path Effect'. After this you can ungroup the group without crash.

Revision history for this message
John Harrold (john-m-harrold) wrote :

That works, and I changed the default mode back to regular Bezier path. Thanks suv, and I hope that my inattentiveness produced something that can help you folks out :)

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

It might also be worthwhile to change the 'Shape:' option from (I guess) 'From clipboard' back to 'None' - the paths in your document use a shape (a small 1px long horizontal line) as 'Single, stretched' pattern which is kind of redundant unless you need to adjust the width independent from the stroke width attribute or need the stroke rendered offset from the center line (using the 'Normal offset' parameter).

Revision history for this message
Johan Engelen (johanengelen) wrote :

The crash happens in LivePathEffectObject::fork_private_if_necessary (from a more detailed backtrace)

Revision history for this message
Johan Engelen (johanengelen) wrote :

This is strange:

"inkscape.com crash.svg" --> no crash on ungrouping

"inkscape.exe crash.svg" --> no crash

Run gdb,
   file inkscape.exe inkscape.dbg
   r crash.svg
--> CRASH on ungroup

I'm lost...
And one of the problems is, debug output does not show (g_message) when running inkscape in gdb.

Revision history for this message
Johan Engelen (johanengelen) wrote :

The problem was forking of LPE stacks (2 or more LPEs).
Fixed it.

Changed in inkscape:
assignee: nobody → Johan Engelen (johanengelen)
Revision history for this message
su_v (suv-lp) wrote :

fix confirmed with Inkscape 0.47+devel r9419 on OS X 10.5.8

thanks Johan! :)

Changed in inkscape:
assignee: Johan Engelen (johanengelen) → nobody
milestone: none → 0.48
status: Confirmed → Fix Committed
assignee: nobody → Johan Engelen (johanengelen)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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