Crash on create/drag object with certain snap settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I have a document with certain snap settings,
creating or dragging a shape will make Inkscape crash
(Segmentation Fault). These are the steps to reproduce:
a) Create new document (or open existing one)
b) Set snap settings as follows:
Everything off, except:
Object snapping:
Snap nodes to object
Snap to object paths
Grid snapping:
Snap nodes to grid
Always snap
Guide snapping:
Snap points to guides
(Illustrated in this screenshot:
http://
c) Create new, or drag shape
d) Observe crash (internal error/segmentation fault),
if not, then tick off all snapping settings and go back
to step b) (I had to do this once).
Backtrace of SVN April 13, 11:00 CEST:
$ gdb /home/hans/
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it
under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show
warranty" for details.
This GDB was configured as "i686-pc-
host libthread_db library "/lib/libthread
(gdb) run
Starting program: /home/hans/
[Thread debugging using libthread_db enabled]
[New Thread -1227856208 (LWP 407)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1227856208 (LWP 407)]
0x08392ea6 in Path::PointToCu
pos=@0x0) at livarot/
914 {
(gdb) bt
#0 0x08392ea6 in Path::PointToCu
(this=0x0, pos=@0x0) at livarot/
#1 0x0821d473 in get_nearest_
(path=0x0, p=Cannot access memory at address 0x0) at
splivarot.cpp:1573
#2 0x08211a6f in Inkscape:
(this=0x85f10c8, s=@0xbf9c1da0, p=@0xbf9c2000,
cand=@0xbf9c1d00) at nr-point.h:47
#3 0x082122ec in Inkscape:
(this=0x85f10c8, p=@0xbf9c2000, it=@0x0) at
object-
#4 0x0816a807 in Inkscape:
(this=0x85f10c8, t=0, p=@0xbf9c2000, it=@0x0) at
snapper.cpp:120
#5 0x08210dfb in SnapManager:
p=@0xbf9c2000, it=@0xbf9c1e50) at stl_list.h:212
#6 0x082110f7 in SnapManager:
p=@0x0) at snap.cpp:51
#7 0x082040f4 in sp_rect_
(event_
nr-point.h:52
#8 0x081e2fe1 in sp_event_
(event_
event-context.
#9 0x08331ec4 in sp_marshal_
(closure=0x87d0190, return_
n_param_values=0, param_values=
invocation_
helper/
#10 0xb6fa4146 in g_closure_invoke () from
/usr/lib/
#11 0xb6fb54c5 in g_signal_
/usr/lib/
#12 0xb6fb4375 in g_signal_
/usr/lib/
#13 0xb7954103 in gtk_signal_emit () from
/usr/lib/
#14 0x0832ca00 in emit_event (canvas=0x0,
event=0x85c9fe0) at display/
#15 0x0832cfa3 in sp_canvas_button (widget=0x0,
event=0x89be2f8) at display/
#16 0xb79062a0 in gtk_marshal_
/usr/lib/
#17 0xb6fa4409 in g_cclosure_new_swap () from
/usr/lib/
#18 0xb6fa4146 in g_closure_invoke () from
/usr/lib/
#19 0xb6fb4f3b in g_signal_
/usr/lib/
#20 0xb6fb4375 in g_signal_
/usr/lib/
#21 0xb6fb4806 in g_signal_emit () from
/usr/lib/
#22 0xb79fe836 in gtk_widget_activate () from
/usr/lib/
#23 0xb7904797 in gtk_propagate_event () from
/usr/lib/
#24 0xb7904abf in gtk_main_do_event () from
/usr/lib/
#25 0xb779ef32 in gdk_event_
/usr/lib/
#26 0xb6f3c31f in g_main_depth () from
/usr/lib/
#27 0xb6f3d312 in g_main_
/usr/lib/
#28 0xb6f3d64b in g_main_
/usr/lib/
#29 0xb6f3dbc1 in g_main_loop_run () from
/usr/lib/
#30 0xb7903d43 in gtk_main () from
/usr/lib/
#31 0xb7e6a547 in Gtk::Main::run_impl () from
/usr/lib/
#32 0xb7e6a3f2 in Gtk::Main::run () from
/usr/lib/
#33 0x0814ddba in sp_main_gui (argc=1, argv=0xbf9c2cf4)
at main.cpp:642
#34 0x0822ad1c in
Inkscape:
(this=0xbf9c2c20) at application/
#35 0x0814d8ad in main (argc=1, argv=0xbf9c2cf4) at
main.cpp:477
(gdb) quit
The program is running. Exit anyway? (y or n) y
Other attachments