[Node tool] Dragging cap at end of path causes crash
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Inkscape |
Fix Released
|
High
|
Krzysztof Kosinski | ||
| inkscape (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Dragging between two nodes does curve adjustment, but dragging between the end node and nothing (i.e. dragging the cap) causes a crash.
Steps to reproduce:
1. Create an unclosed path
2. Set the cap to rounded or square
3. Set the stroke size up or zoom in (for the next step)
4. Click on the path, past the end node, on the cap, and drag
5. Observe the crash
Ubuntu 10.04, Inkscape 0.47+devel-r9474 (own build).
From GDB:
Program received signal SIGSEGV, Segmentation fault.
0x00000000009e418a in Inkscape:
at ui/tool/
68 second-
Backtrace:
#0 0x00000000009e418a in Inkscape:
this=0x71b8700) at ui/tool/
#1 0x00000000009e39a9 in Inkscape:
this=0x71b8700, event=0x50c1ca0) at ui/tool/
#2 0x00000000009e218d in Inkscape:
event=
#3 0x0000000000622b70 in sp_marshal_
return_
param_
marshal_
#4 0x00007ffff4c535de in g_closure_invoke () from /usr/lib/
#5 0x00007ffff4c67598 in ?? () from /usr/lib/
#6 0x00007ffff4c688b9 in g_signal_
from /usr/lib/
#7 0x00007ffff6621ac5 in gtk_signal_emit () from /usr/lib/
#8 0x0000000000592d39 in emit_event (canvas=<value optimised out>,
event=<value optimised out>) at display/
#9 0x0000000000594b41 in sp_canvas_motion (widget=0x1f355c0, event=0x50b3b40)
at display/
#10 0x00007ffff64a90e8 in ?? () from /usr/lib/
#11 0x00007ffff4c535de in g_closure_invoke () from /usr/lib/
#12 0x00007ffff4c671dd in ?? () from /usr/lib/
#13 0x00007ffff4c688b9 in g_signal_
from /usr/lib/
#14 0x00007ffff4c69033 in g_signal_emit () from /usr/lib/
#15 0x00007ffff65c002f in ?? () from /usr/lib/
#16 0x00007ffff64a15b3 in gtk_propagate_event ()
from /usr/lib/
#17 0x00007ffff64a268b in gtk_main_do_event ()
from /usr/lib/
#18 0x00007ffff611686c in ?? () from /usr/lib/
#19 0x00007ffff39818c2 in g_main_
#20 0x00007ffff3985748 in ?? () from /lib/libglib-
#21 0x00007ffff3985c55 in g_main_loop_run () from /lib/libglib-
#22 0x00007ffff64a2b27 in gtk_main () from /usr/lib/
#23 0x000000000045594b in sp_main_gui (argc=1, argv=0x7fffffff
at main.cpp:983
#24 0x0000000000454da1 in main (argc=1, argv=<value optimised out>)
at main.cpp:719
reproduced with Inkscape 0.47+devel r9495 on OS X 10.5.8
When trying to reproduce with Inkscape 0.47, Inkscape does not crash, but has many repeated console messages:
Warning! Possible error?
and
CRITICAL **: void sp_nodepath_
+ [Node tool] Dragging cap at end of path causes crash
attaching a backtrace from Windows XP, Inkscape 0.48pre1 r9509 (Jun 21 2010)
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x00b6c5b9 in Inkscape:
#2 0x00a1440b in Inkscape:
#3 0x00a12ab8 in Inkscape:
#4 0x008f2d68 in sp_marshal_
#5 0x63a44124 in g_closure_invoke ()
from D:\Program Files\Inkscape\
#6 0x63a57879 in signal_
from D:\Program Files\Inkscape\
#7 0x63a5892b in g_signal_
from D:\Program Files\Inkscape\
#8 0x619f1a7d in gtk_signal_emit ()
from D:\Program Files\Inkscape\
#9 0x0056cb73 in emit_event ()
#10 0x0056e5ba in sp_canvas_motion ()
#11 0x61868e63 in _gtk_marshal_
from D:\Program Files\Inkscape\
#12 0x63a44124 in g_closure_invoke ()
from D:\Program Files\Inkscape\
#13 0x63a5758c in signal_
from D:\Program Files\Inkscape\
#14 0x63a5892b in g_signal_
from D:\Program Files\Inkscape\
#15 0x63a58fc6 in g_signal_emit ()
from D:\Program Files\Inkscape\
#16 0x61985ec1 in gtk_widget_
from D:\Program Files\Inkscape\
#17 0x61860e82 in gtk_propagate_event ()
from D:\Program Files\Inkscape\
#18 0x61861fec in gtk_main_do_event ()
from D:\Program Files\Inkscape\
#19 0x6c37014a in gdk_event_dispatch ()
from D:\Program Files\Inkscape\
#20 0x685eb50b in g_main_
from D:\Program Files\Inkscape\
#21 0x685ee5f5 in g_main_
from D:\Program Files\Inkscape\
#22 0x685ee9e4 in g_main_loop_run ()
from D:\Program Files\Inkscape\
#23 0x618625dc in gtk_main ()
from D:\Program Files\Inkscape\
#24 0x013a3c3f in Gtk::Main::run ()
from D:\Program Files\Inkscape\
#25 0x004063b0 in sp_main_gui ()
#26 0x0042b30a in Inkscape:
#27 0x00403109 in main ()
(gdb) c
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) c
Continuing.
Program exited with code 030000000005.
(gdb) c
The program is not being run.
(gdb)
- Reproduce template Edit (2.5 KiB, image/svg+xml)
Easier way to reproduce:
1.Open attachment with latest inkscape build
2.Select the black line
3.Activate the node tool
4.Drag the mouse in the red circle part (you don't have to select anything)
5.Sigsegv
- End node dragging fix v2 Edit (684 bytes, text/plain)
Improved patch that also fixes artifacts (without crash) when dragging near the start node.
Committed in trunk r9711 & r9712
This bug was fixed in the package inkscape - 0.48.0-1ubuntu1
---------------
inkscape (0.48.0-1ubuntu1) maverick; urgency=low
* Merge with Debian unstable (LP: #628048, LP: #401567, LP: #456248,
LP: #463602, LP: #591986)
* debian/control:
- Ubuntu maintainers
- Promote python-lxml, python-numpy, python-uniconvertor to Recommends.
- Demote pstoedit to Suggests (universe package).
- Suggests ttf-dejavu instead of ttf-bitstream-vera (LP: #513319)
* debian/rules:
- Run intltool-update on build (Ubuntu-specific).
- Add translation domain to .desktop files (Ubuntu-specific).
* debian/dirs:
- Add usr/share/pixmaps. Allow inkscape.xpm installation
* drop 50-poppler-
* drop 51-paste-
inkscape (0.48.0-1) experimental; urgency=low
* [cae07a3] New Upstream version 0.48.0
* [309c498] add patch to fix crash in node tool
* The highlights of this release are:
- multipath editing
- improved text tool: subscript, superscript, numerical input for text kerning, tracking and more
- new Airbrush tool
- LaTeX export with PDF/PS/EPS
- JessyInk extension to create presentations
- numerous bugfixes
* [56702cf] don't build-depend on libssl-dev (closes: #573338)
* [013b235] wrap lines in debian/control. patch by Benjamin Drung,
many thanks to him (closes: #576357)
* [747d3d1] add README.source adopted from nagios to make lintian a
bit happier
* [4df0df7] Remove all patches since they are applied upstream
-- Alex Valavanis <email address hidden> 2010年9月12日 19:44:58 +0100