Bugs item #1303619, was opened at 2005-09-25 01:49
Message generated for change (Comment added) made by rwst
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=604306&aid=1303619&group_id=93438
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 9
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Ralf Stephan (rwst)
Summary: Inkscape segfaults when scrolling through a list of icons
Initial Comment:
Hello, I went to file - > open and started browsing
through a list of icons i had, i pressed the down key
and went through the list really fast and inkscape crashed.
here is the output
[Switching to Thread -1212750144 (LWP 29593)]
0x4e1be254 in gdk_window_scroll () from
/usr/lib/libgdk-x11-2.0.so.0
#0 0x4e1be254 in gdk_window_scroll () from
/usr/lib/libgdk-x11-2.0.so.0
#1 0x4e825331 in malloc () from /lib/tls/libc.so.6
Previous frame inner to this frame (corrupt stack?)
----------------------------------------------------------------------
>Comment By: Ralf Stephan (rwst)
Date: 2005-09-29 16:19
Message:
Logged In: YES
user_id=1275729
can you please apply this patch and test?
I'll commit to cvs anyway now as it's safe.
At least here, my tests run positive.
--- inkscape/src/svg-view.cpp~ 2005-09-13 10:52:58.000000000 +0200
+++ inkscape/src/svg-view.cpp 2005-09-29 16:10:26.000000000 +0200
@@ -40,7 +40,7 @@
SPSVGView::~SPSVGView()
{
- if (_drawing)
+ if (doc() && _drawing)
{
sp_item_invoke_hide (SP_ITEM (sp_document_root (doc())), _dkey);
_drawing = NULL;
----------------------------------------------------------------------
Comment By: Peter J. R. Moulder (pjrm)
Date: 2005-09-26 10:58
Message:
Logged In: YES
user_id=827826
Reproduced, but it seems to be a race condition: I have to
go up & down many times to produce the crash.
Steps to reproduce:
- Start inkscape.
- Ctrl+O (File>Open...)
- Ctrl-L (location)
- Type /usr/share/icons/gnome/scalable/filesystems (using
tab completion) and Return.
- Hold down down arrow to scroll to the end, then hold
down up arrow to scroll up to top again, and repeat until
crash (<10 times usually).
Here's one case: item->canvas is NULL in
item->canvas->need_repick = TRUE in
sp_canvas_item_affine_absolute (full backtrace at end of
this comment).
I can reproduce this in current CVS and -D '2005-09-05 12:00
UTC' and same time at 6th and 9th of Sept, but not 4th Sept.
19:00 UTC on 4th Sept crashes after hitting Return in the
Open Location dialog box.
Given these timestamps, I'm going to guess that this is due
to the SPDesktop changes.
#0 0x0845d708 in sp_canvas_item_affine_absolute
(item=0x9638008,
affine=@0xbfc92420) at ../../src/display/sp-canvas.cpp:302
#1 0x08337927 in SPSVGView::doRescale (this=0x96381f8,
event=true)
at ../../src/svg-view.cpp:104
#2 0x08337b08 in SPSVGView::setScale (this=0x96381f8,
hscale=48, vscale=48)
at ../../src/svg-view.cpp:59
#3 0x08337ecb in SPSVGView::onDocumentResized
(this=0x96381f8, width=48,
height=48) at ../../src/svg-view.cpp:215
#4 0x085647e6 in _onDocumentResized (x=48, y=48, v=0x96381f8)
at ../../src/ui/view/view.cpp:71
#5 0x08566725 in sigc::pointer_functor3<double, double,
Inkscape::UI::View::View*, void>::operator()
(this=0x96369e0, _A_a1=@0xbfc92660, _A_a2=@0xbfc92658,
_A_a3=@0x96369e4) at ptr_fun.h:185
#6 0x0856674b in
sigc::adaptor_functor<sigc::pointer_functor3<double, double,
Inkscape::UI::View::View*, void> >::operator()<double
const&, double const&, Inkscape::UI::View::View*&>
(this=0x96369dc, _A_arg1=@0xbfc92660,
_A_arg2=@0xbfc92658, _A_arg3=@0x96369e4) at
adaptor_trait.h:123
#7 0x0856676f in sigc::bind_functor<-1,
sigc::pointer_functor3<double, double,
Inkscape::UI::View::View*, void>, Inkscape::UI::View::View*,
sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil,
sigc::nil>::operator()<double const&, double const&>
(this=0x96369d8, _A_arg1=@0xbfc92660, _A_arg2=@0xbfc92658)
at bind.h:1143
#8 0x08566795 in
sigc::internal::slot_call2<sigc::bind_functor<-1,
sigc::pointer_functor3<double, double,
Inkscape::UI::View::View*, void>, Inkscape::UI::View::View*,
sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil,
sigc::nil>, void, double, double>::call_it (rep=0x96369c0,
a_1=@0xbfc92660, a_2=@0xbfc92658)
at slot.h:173
#9 0x0823ac4f in sigc::internal::signal_emit2<void, double,
double, sigc::nil>::emit (impl=0x9638ff8, _A_a1=@0xbfc92660,
_A_a2=@0xbfc92658) at signal.h:788
#10 0x0823ad27 in sigc::signal2<void, double, double,
sigc::nil>::emit (
this=0x963185c, _A_a1=@0xbfc92660, _A_a2=@0xbfc92658) at
signal.h:1830
#11 0x08236bfb in sp_document_resized_signal_emit
(doc=0x88bae40, width=48,
height=48) at ../../src/document.cpp:536
#12 0x08293d42 in sp_root_modified (object=0x88767c8, flags=27)
at ../../src/sp-root.cpp:571
#13 0xb730e930 in g_cclosure_marshal_VOID () from
/usr/lib/libgobject-2.0.so.0
#14 0xb7301f18 in g_cclosure_new_swap () from
/usr/lib/libgobject-2.0.so.0
#15 0xb73025bb in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#16 0xb7311316 in g_signal_stop_emission () from
/usr/lib/libgobject-2.0.so.0
#17 0xb7312e47 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#18 0xb73131fe in g_signal_emit () from
/usr/lib/libgobject-2.0.so.0
#19 0x08282b8a in SPObject::emitModified (this=0x88767c8,
flags=27)
at ../../src/sp-object.cpp:1305
#20 0x0823694f in SPDocument::_emitModified (this=0x88bae40)
at ../../src/document.cpp:585
#21 0x08236b48 in sp_document_idle_handler (data=0x88bae40)
at ../../src/document.cpp:740
#22 0xb7295931 in g_child_watch_add () from
/usr/lib/libglib-2.0.so.0
#23 0xb72933f1 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#24 0xb7296647 in g_main_context_check () from
/usr/lib/libglib-2.0.so.0
#25 0xb7296b98 in g_main_loop_run () from
/usr/lib/libglib-2.0.so.0
#26 0xb778a99b in gtk_dialog_run () from
/usr/lib/libgtk-x11-2.0.so.0
#27 0xb7e2c8f5 in Gtk::Dialog::run () from
/usr/lib/libgtkmm-2.4.so.1
#28 0x08396d05 in
Inkscape::UI::Dialogs::FileOpenDialogImpl::show (
this=0x8a21be0) at ../../src/dialogs/filedialog.cpp:911
#29 0x0823fa53 in sp_file_open_dialog (object=0x0, data=0x0)
at ../../src/file.cpp:378
#30 0x082c6a72 in Inkscape::FileVerb::perform
(action=0x88bef60, data=0x3,
pdata=0x0) at ../../src/verbs.cpp:759
#31 0x0846139e in sp_action_perform (action=0x88bef60, data=0x0)
at ../../src/helper/action.cpp:150
#32 0x0824388b in sp_ui_menu_activate (object=0x89263e0,
action=0x88bef60)
at ../../src/interface.cpp:315
#33 0xb730e60b in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#34 0xb73025bb in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#35 0xb7311a6d in g_signal_stop_emission () from
/usr/lib/libgobject-2.0.so.0
#36 0xb7312e47 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#37 0xb73131fe in g_signal_emit () from
/usr/lib/libgobject-2.0.so.0
#38 0xb78d828a in gtk_widget_activate () from
/usr/lib/libgtk-x11-2.0.so.0
#39 0xb7808f04 in gtk_menu_shell_activate_item ()
from /usr/lib/libgtk-x11-2.0.so.0
#40 0xb78091c7 in gtk_menu_shell_activate_item ()
from /usr/lib/libgtk-x11-2.0.so.0
#41 0xb780038c in gtk_menu_reorder_child () from
/usr/lib/libgtk-x11-2.0.so.0
#42 0xb77fac7a in _gtk_marshal_BOOLEAN__BOXED ()
from /usr/lib/libgtk-x11-2.0.so.0
#43 0xb7301f18 in g_cclosure_new_swap () from
/usr/lib/libgobject-2.0.so.0
#44 0xb73025bb in g_closure_invoke () from
/usr/lib/libgobject-2.0.so.0
#45 0xb7311c72 in g_signal_stop_emission () from
/usr/lib/libgobject-2.0.so.0
#46 0xb7312c05 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#47 0xb73131fe in g_signal_emit () from
/usr/lib/libgobject-2.0.so.0
#48 0xb78d84d8 in gtk_widget_activate () from
/usr/lib/libgtk-x11-2.0.so.0
#49 0xb77f9199 in gtk_propagate_event () from
/usr/lib/libgtk-x11-2.0.so.0
#50 0xb77f95f9 in gtk_main_do_event () from
/usr/lib/libgtk-x11-2.0.so.0
#51 0xb76a942a in _gdk_events_queue () from
/usr/lib/libgdk-x11-2.0.so.0
#52 0xb72933f1 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#53 0xb7296647 in g_main_context_check () from
/usr/lib/libglib-2.0.so.0
#54 0xb7296b98 in g_main_loop_run () from
/usr/lib/libglib-2.0.so.0
#55 0xb77f8849 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#56 0xb7e505b6 in Gtk::Main::run_impl () from
/usr/lib/libgtkmm-2.4.so.1
#57 0xb7e50461 in Gtk::Main::run () from
/usr/lib/libgtkmm-2.4.so.1
#58 0x08233d58 in sp_main_gui (argc=1, argv=0xbfc93d74)
at ../../src/main.cpp:768
#59 0x0833ca10 in Inkscape::NSApplication::Application::run
(this=0xbfc93cc4)
at ../../src/application/application.cpp:134
#60 0x08232a31 in main (argc=1, argv=0xbfc93d74) at
../../src/main.cpp:641
----------------------------------------------------------------------
Comment By: Bryce Harrington (bryce)
Date: 2005-09-25 05:18
Message:
Logged In: YES
user_id=4782
Hmm, not enough info to debug this one.
Can you work on identifying one file which always causes the
crash, and then upload it here?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=604306&aid=1303619&group_id=93438
|