Crash when applying new path effect after deleting pattern of Pattern-along-path LPE

Bug #1419517 reported by Toy31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Critical
Jabiertxof

Bug Description

Under Inkscape 0.91 on Windows 7 SP1 (using PC of my wife)

Inkscape was crashing ons W7 SP1, Using path tool, adding pattern to path effect, trying to erase the path after modifying it .

Excuse me for my bad english.

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

Please add information about Inkscape version (see Inkscape menu 'Help > About Inkscape') to the bug description.

It would also be helpful for further investigations if you could attach a simple test case (SVG file) to the bug report, and more detailed 'steps to reproduce'.

Changed in inkscape:
status: New → Incomplete
tags: added: crash
Changed in inkscape:
importance: Undecided → High
Revision history for this message
Toy31 (letoy311) wrote :

Hello,

My version is 0.91
I join the svg file, and some screenshots about this error, maybe it'll be helpfull?

Revision history for this message
Toy31 (letoy311) wrote :

SVG file before the crash and the errors messages :

http://up.sur-la-toile.com/i1eZf
http://up.sur-la-toile.com/i1eZg
http://up.sur-la-toile.com/i1eZh

Thanks for your answer!

su_v (suv-lp)
Changed in inkscape:
status: Incomplete → New
description: updated
tags: added: livepatheffects node-editing
Revision history for this message
jazzynico (jazzynico) wrote :

Could you please give detailed steps that we could follow to reproduce the crash starting with you attached file?
My tests with 0.91 and trunk rev. 13950 on Windows XP (32bits) show nothing wrong so far.

Nice cat, BTW ;)

Changed in inkscape:
status: New → Incomplete
Revision history for this message
Toy31 (letoy311) wrote :

Hello,

not my cat :P
I'm running actually on Windows 7 SP1 64 bits, all updates ok, Inkscape 0.91 r13725 ;

-Draw a circle with the circle tool
-convert it in path
-draw now a triangle with the path tool, no stroke, fill it in black 100%
-copy to clipboard the triangle (you can now delete the triangle, or if you like triangles, let him alive!)
-next select the circle
-go to path effects (Ctrl+Shift+7), add a new effect ->Pattern along path -> add.

Next, select the effect, paste clipboard to your effect (wow it's beautifull!)
-Then select all triangle nodes, delete them.
-Deselect and reselect the modified circle
-Try to add a new path effect (work on all path effects) to the circle, and you got this error.

Done.

Is it more clear? I'm sorry if I ommited details.

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

Crash reproduced as described with Inkscape 0.91 r13725 and Inkscape 0.91+devel r14192 on OS X 10.7.5.

Console message:
(inkscape:61731): glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: basic_string::_S_construct NULL not valid

(did not manage to produce a meaningful backtrace though)

--
Replaces comment #6 (now hidden) to fix typo in revno

Changed in inkscape:
status: Incomplete → Confirmed
su_v (suv-lp)
summary: - Inscape crashes while deleting shape to path
+ Crash when applying new path effect after deleting pattern of Pattern-
+ along-path LPE
Revision history for this message
jazzynico (jazzynico) wrote :

Also reproduced on Windows XP and Xubuntu 15.04, Inkscape trunk re. 14206.
Not reproduced with 0.48.5.

Changed in inkscape:
milestone: none → 0.92
status: Confirmed → Triaged
tags: added: regression
Revision history for this message
su_v (suv-lp) wrote :

Raising bug importance (no emergency save file is created -> loss of data).

Changed in inkscape:
importance: High → Critical
Revision history for this message
Jabiertxof (jabiertxof) wrote :

This patch fix the problem

Changed in inkscape:
assignee: nobody → Jabiertxof (jabiertxof)
Revision history for this message
jazzynico (jazzynico) wrote :

Patch tested (almost) successfully on Windows 7, Inkscape trunk rev. 14707 (32-bit).

Compared to the original bug, the patched version resets the LPE to its initial values. So if you set Edit-on-canvas, you can see two nodes at the top-left of the page.
Now if you delete the two initial nodes and try to apply a new effect, Inkscape crashes as in the original description.
Tell me if you want me to create a new report for the remaining issue.

Changed in inkscape:
status: Triaged → In Progress
Revision history for this message
Jabiertxof (jabiertxof) wrote :

Thanks for try it. I go to fix it!

Revision history for this message
Jabiertxof (jabiertxof) wrote :

Nod need to new report. I fix it here

Revision history for this message
Jabiertxof (jabiertxof) wrote :

This fix the bug.

Revision history for this message
jazzynico (jazzynico) wrote :

Patch tested successfully on Xubuntu 15.10, Inkscape trunk rev. 14712.

The default nodes are now recreated automatically when deleted, and the Inkscape no longer crashes.
Thanks!

Revision history for this message
Jabiertxof (jabiertxof) wrote :

Thanks to you for check it. I merge it tonight.

Revision history for this message
Jabiertxof (jabiertxof) wrote :

Fixed in r.14717

Changed in inkscape:
status: In Progress → Fix Committed
Bryce Harrington (bryce)
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.