Docked dialogs in a floating window crashes on shutdown

Bug #494722 reported by Tail Kinker on 2009-12-09
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
High
John Smith

Bug Description

As the subject states, Inkscape crashes messily on exit if I relocate any of the docks. The crash does not take place until I actually try to exit Inkscape, so at this time it's mostly an irritation. When it crashes, the locations and layout of the docks are not saved, and sometimes, when I re-launch Inkscape, the docks will have outlandish sizes listed, like 32k pixels wide by 7 pixels high.

System is Slackware 12.1 on an Intel Pentium D with 1 GB RAM, Inkscape is 0.46 release version, Window Manager (in case it matters) is XFCE or OpenBox.

su_v (suv-lp) on 2009-12-09
tags: added: crash ui
Changed in inkscape:
importance: Undecided → High
su_v (suv-lp) wrote :

Is the crash related to using Inkscape in fullscreen mode and toggling the dialogs (or the dock) with <F12>?
Could you attach any related console messages or even a backtrace from gdb?

possibly related:
Bug #364834 “SIGSEGV recieved on hiding dock”:
<https://bugs.launchpad.net/inkscape/+bug/364834>

su_v (suv-lp) wrote :

… and do you have the possibility to test if the crash happens with Inkscape 0.47 as well?

Tail Kinker (the-tail-kinker) wrote :

I don't use Inkscape in fullscreen - I prefer all my docks to be in a separate window. But I will test it to see what happens there.

It does not happen when I hide the dialogs with F12, but only when I exit.

I will try Inkscape 0.47, and see if it happens there, and I will also capture the console messages. (Can't do that right this instance.)

Frank (franksouza183) wrote :
Download full text (3.6 KiB)

By closing Inkscape (0.47+devel r9281 on Ubuntu Karmic 9.10 - Kernel 2.6.31-20 - Pentium Dual Core 2.0 GHz) with two or more dialog windows dockeds outside the main window, the crash occurs. Was already seen it since version 0.45.

debug - backtrace >>

[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ace457 in Gtk::Window::get_size(int&, int&) const () from /usr/lib/libgtkmm-2.4.so.1
(gdb) bt
#0 0x00007ffff7ace457 in Gtk::Window::get_size(int&, int&) const () from /usr/lib/libgtkmm-2.4.so.1
#1 0x0000000000997f13 in Inkscape::UI::Dialog::Dialog::save_geometry (this=0x73320d8) at ui/dialog/dialog.cpp:241
#2 0x0000000000998109 in Inkscape::UI::Dialog::Dialog::onShutdown (this=0x73e7b70) at ui/dialog/dialog.cpp:157
#3 0x00007ffff4cd45ae in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4 0x00007ffff4ce9983 in ?? () from /usr/lib/libgobject-2.0.so.0
#5 0x00007ffff4cead39 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#6 0x00007ffff4ceb283 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#7 0x000000000046f6db in inkscape_exit () at inkscape.cpp:1364
#8 0x00000000006d67a3 in sp_desktop_widget_destroy (object=0x10d13e0) at widgets/desktop-widget.cpp:590
#9 0x00007ffff4cd44f9 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#10 0x00007ffff4ce9ce6 in ?? () from /usr/lib/libgobject-2.0.so.0
#11 0x00007ffff4cead39 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#12 0x00007ffff4ceb283 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#13 0x00007ffff65397d0 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007ffff4cd6940 in g_object_run_dispose () from /usr/lib/libgobject-2.0.so.0
#15 0x00007ffff648f039 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x00007ffff4cd45ae in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#17 0x00007ffff4ce9ce6 in ?? () from /usr/lib/libgobject-2.0.so.0
#18 0x00007ffff4cead39 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#19 0x00007ffff4ceb283 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#20 0x00007ffff65397d0 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#21 0x00007ffff4cd6940 in g_object_run_dispose () from /usr/lib/libgobject-2.0.so.0
#22 0x00007ffff7ad01fe in Gtk::Window::~Window() () from /usr/lib/libgtkmm-2.4.so.1
#23 0x00000000006db31a in SPDesktopWidget::WidgetStub::destroy (this=0x29d8d10) at widgets/desktop-widget.h:156
#24 0x00000000008cbfa8 in SPDesktop::onDeleteUI (this=0x19eac00) at desktop.cpp:1310
#25 0x00007ffff7acb2e2 in ?? () from /usr/lib/libgtkmm-2.4.so.1
#26 0x00007ffff6516728 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#27 0x00007ffff4cd45ae in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#28 0x00007ffff4ce9f70 in ?? () from /usr/lib/libgobject-2.0.so.0
#29 0x00007ffff4ceabcc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#30 0x00007ffff4ceb283 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#31 0x00007ffff661d71f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#32 0x00007ffff650ff3a in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x00007ffff6184cec in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#34 0x00007ffff3a18bce in g_main_co...

Read more...

Jon A. Cruz (jon-joncruz) wrote :

I could see one way for this to occur if the child window / dialog were destructed before the main window is. A different behavior in the desktop / window manager might be what causes it.

su_v (suv-lp) wrote :

related(?) crash with Inkscape 0.47+devel r9290 on OS X 10.5.8 (Xquartz 2.4.0)

steps to reproduce:

1) launch inkscape with default preferences
2) open Fill&Stroke dialog, detach it as separate dialog window
3) open Layers dialog, detach it as separate dialog window (undocked)
4) show/hide dialogs <F12>
5) dock the Layers dialog into the dock of the Fill&Stroke dialog
6) show/hide dialogs <F12>

-> crash with similar backtrace as in comment #4

su_v (suv-lp) wrote :

same crash (+log) with r9292, no additional console messages.

su_v (suv-lp) wrote :

Crash as described in comment #4 still reproducible with Inkscape 0.48+devel r10812.
(see bug #910344 for latest backtrace on OS X)

John Smith (john-smithi) wrote :
jazzynico (jazzynico) on 2011-12-31
summary: - Inkscape crashes with "encountered an internal error" on exit;
- positions of docks unsaved
+ Docked dialogs in a floating window crashes on shutdown
John Smith (john-smithi) on 2011-12-31
Changed in inkscape:
assignee: nobody → John Smith (john-smithi)
jazzynico (jazzynico) on 2011-12-31
Changed in inkscape:
milestone: none → 0.48.3
status: New → In Progress
jazzynico (jazzynico) wrote :

Fix committed in the trunk (revision 10813) and the 0.48.x branch (revision 9844).
Thanks John!

Changed in inkscape:
status: In Progress → Fix Committed
Ted Gould (ted) on 2012-02-15
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers