Crash when using LPE with node tool selected

Bug #304018 reported by jazzynico
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Unassigned
Nominated for 0.47.x by Tavmjong Bah

Bug Description

Tested on Windows XP SP3 only (I'll try with Ubuntu later), and the last 20288 win build.

1. Create a path (freehand or with a converted object).
2. Select Node tool.
3. Apply two path effects (Shift+Ctrl+7). I haven't tried all combinations, but it works (crashes...) with Angle bisector+Tangent to curve.
4. A popup appears, saying "Inkscape encountered an internal error and will close now. Automatic backups of unsaved documents..."
5. Bye bye...

Applying two effects works well when the Select tool is used instead of Node tool.

jazzynico (jazzynico)
description: updated
Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Win32 build 20316, exit message is :

C:\Python25\APP>inkcl.py
return code: -1073741819
WARNING: Requested update while update in progress, counter = 1
WARNING: Requested update while update in progress, counter = 1

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

Confirmed on Ubuntu 8.10, build 20846.

#0 sp_nodepath_update_helperpaths (np=0xba32890) at nodepath.cpp:228
#1 sp_group_update (object=0xaa6a010, ctx=0xbff7ffe4, flags=2) at sp-item-group.cpp:208
#2 sp_root_update (object=0xaa6a010, ctx=0xbff80218, flags=2) at sp-root.cpp:551
#3 SPObject::updateDisplay (this=0xaa6a010, ctx=0xbff80218, flags=2) at sp-object.cpp:1301
#4 SPDocument::_updateDocument (this=0xa61bf60) at document.cpp:862
#5 sp_document_ensure_up_to_date (doc=0xa61bf60) at document.cpp:884
#6 sp_document_maybe_done (doc=0xa61bf60, key=0x0, event_type=201, event_description=) at document-undo.cpp:179
#7 sp_document_done (doc=0xa61bf60, event_type=201, event_description=) at document-undo.cpp:125
#8 Inkscape::UI::Dialog::LivePathEffectEditor::onApply (this=0xca5e000) at ui/dialog/livepatheffect-editor.cpp:373
#9 Glib::SignalProxyNormal::slot0_void_callback () at :0

Revision history for this message
jazzynico (jazzynico) wrote :

Still have this bug with rev 21303 on Windows XP.
Now, it also crashes with Bend or Stitch sub-path alone, with node tool selected (works well with 0.46).
At least this last part should be fixed before 0.47 is released.

Changed in inkscape:
importance: Undecided → High
tags: added: livepatheffects
tags: added: crash
Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

I am seeing the same thing... applying Stitch path to a simple four node path.

#0 0x08532f28 in sp_nodepath_update_helperpaths (np=0xc13e2b0) at nodepath.cpp:225
#1 0x080f5361 in sp_group_update (object=0x923e000, ctx=0xbfa88e34, flags=2) at sp-item-group.cpp:208
#2 0x0811645f in sp_root_update (object=0x923e000, ctx=0xbfa89068, flags=2) at sp-root.cpp:551
#3 0x08105066 in SPObject::updateDisplay (this=0x923e000, ctx=0xbfa89068, flags=2) at sp-object.cpp:1310
#4 0x08089081 in SPDocument::_updateDocument (this=0x8d91f60) at document.cpp:892
#5 0x080890c7 in sp_document_ensure_up_to_date (doc=0x8d91f60) at document.cpp:914
#6 0x0808de29 in sp_document_maybe_done (doc=0x8d91f60, key=0x0, event_type=201, event_description=
          {static npos = 4294967295, string_ = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xbfa891dc "ܩ"}}})
    at document-undo.cpp:179
#7 0x0808e34c in sp_document_done (doc=0x8d91f60, event_type=201, event_description=
          {static npos = 4294967295, string_ = {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0xbfa89238 "ܩ"}}})
    at document-undo.cpp:125
#8 0x0840f995 in Inkscape::UI::Dialog::LivePathEffectEditor::onApply (this=0xc17d260)
    at ui/dialog/livepatheffect-editor.cpp:374
#9 0x00d00392 in Glib::SignalProxyNormal::slot0_void_callback () from /usr/lib/libglibmm-2.4.so.1
#10 0x001918a4 in g_cclosure_marshal_VOID__VOID () from /lib/libgobject-2.0.so.0
#11 0x0018411b in g_closure_invoke () from /lib/libgobject-2.0.so.0
#12 0x00198ec8 in ?? () from /lib/libgobject-2.0.so.0

jazzynico (jazzynico)
summary: - Crash when using two path effects with node tool selected
+ Crash when using LPE with node tool selected
Revision history for this message
jazzynico (jazzynico) wrote :

Tested again with a simple rectangle on Windows XP, rev. 21627. The affected LPEs are:
* bend
* interpolate sub-path
* knot
* stitch sub-path

Some effects (Von Koch, envelope, hatches) crash when you undo/redo or when they are combined with another LPE.
The others don't crash at all.

Not reproduced with 0.46.

Changed in inkscape:
milestone: none → 0.47
tags: added: regression
Revision history for this message
bbyak (buliabyak) wrote :

confirmed with vonkoch + stitch subpaths

fixed in 22074, please test

Changed in inkscape:
status: Confirmed → Fix Released
Revision history for this message
jazzynico (jazzynico) wrote :

Fix confirmed on Ubuntu 9.04.
Thanks Bulia!

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.