Tool dialogs end up all in one window when opening multiple documents

Bug #1499980 reported by Thomas ten Cate
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
High
Unassigned

Bug Description

Using Arch Linux on x86_64.
$ inkscape --version
Inkscape 0.91 r13725 (May 25 2015)

Steps to reproduce:

- Make sure it's not some messed up config:
  $ mv ~/.config/inkscape ~/.config/inkscape.bak
- Launch Inkscape:
  $ inkscape
- Draw a rectangle.
- Hit Ctrl+Shift+F and change the rectangle's colour. (Not sure this is needed. Just need to make sure the Fill and Stroke dialog sticks around in the saved file.)
- Save the file twice, as "drawing1.svg" and "drawing2.svg".
- Quit Inkscape.
- Open both documents in one command:
  $ inkscape drawing*.svg

Expected result:

Each Inkscape window contains a copy of the Fill and Stroke window. Inkscape is stable.

Actual result:

One of the windows contains both tool dialogs, in my case it's "drawing2.svg" (screenshot attached). The other Inkscape window has no tool dialogs. Attempts to open, close or manipulate tool dialogs often result in a segfault. The core dump is too large to attach, but gdb gives me the following backtrace:
(gdb) bt
#0 0x00007fdef416e674 in Gtk::Widget::get_parent() ()
   from /usr/lib/libgtkmm-2.4.so.1
#1 0x0000000000a8c658 in ?? ()
#2 0x00000000008b1c39 in ?? ()
#3 0x00007fdeee9652f5 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4 0x00007fdeee97702c in ?? () from /usr/lib/libgobject-2.0.so.0
#5 0x00007fdeee97f688 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#6 0x00007fdeee97f8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#7 0x00000000004eb39a in ?? ()
#8 0x00000000007ed730 in ?? ()
#9 0x00007fdef416c97b in ?? () from /usr/lib/libgtkmm-2.4.so.1
#10 0x00007fdef328090f in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#11 0x00007fdeee9652f5 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0x00007fdeee977332 in ?? () from /usr/lib/libgobject-2.0.so.0
#13 0x00007fdeee97f195 in g_signal_emit_valist ()
   from /usr/lib/libgobject-2.0.so.0
#14 0x00007fdeee97f8ef in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#15 0x00007fdef3397bac in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x00007fdef327f64b in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x00007fdef2ef42cc in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#18 0x00007fdeee6909fd in g_main_context_dispatch ()
   from /usr/lib/libglib-2.0.so.0
#19 0x00007fdeee690ce0 in ?? () from /usr/lib/libglib-2.0.so.0
#20 0x00007fdeee691002 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#21 0x00007fdef327e467 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x000000000047048c in ?? ()
#23 0x00007fdeed4e0610 in __libc_start_main () from /usr/lib/libc.so.6
#24 0x000000000046caa9 in ?? ()

Tags: crash ui
Revision history for this message
Thomas ten Cate (ttencate) wrote :
Revision history for this message
Thomas ten Cate (ttencate) wrote :

After closing and restarting Inkscape *without* any arguments, I still got a window with several duplicate docked tool dialogs.

Revision history for this message
su_v (suv-lp) wrote :

Likely related earlier report:
* Bug #1481719 “Crash when hiding dock with two files open”
  https://bugs.launchpad.net/inkscape/+bug/1481719
(describes similar unstable symptoms caused by the same trigger - opening multiple files via command line arguments)

tags: added: crash ui
Changed in inkscape:
importance: Undecided → High
Revision history for this message
su_v (suv-lp) wrote :

On 2015-09-26 11:00 (+0200), Thomas ten Cate wrote:
> (Not sure this is needed. Just need to make sure the Fill and Stroke
> dialog sticks around in the saved file.)

The dialogs restored from the last session (new feature in Inkscape 0.91) are not stored for a specific file - the feature uses a dialog state saved in Inkscape's preferences file (global, not per SVG document edited ealier).

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP, Inkscape trunk rev. 14506.
Each Inkscape window has it's own docked dialog, and the application doesn't crash.

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Xubuntu 15.10, Inkscape trunk rev. 14512.

When reopening the files, Inkscape shows the following console message:
---
** (inkscape:14042): WARNING **: master 0x7081080: unable to add object 0xba133b0[DialogFillStroke] to the hash. There already is an item with that name (0x804a040).
---

And crashes when existing the application (see attached bt).

Changed in inkscape:
status: New → Triaged
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
David Millar (davmillar) wrote :

Closing as unable to reproduce in Inkscape 1.1. Both windows have the dialogs and they work as expected after following the recommended steps to reproduce.

Closed by: https://gitlab.com/davmillar

Changed in inkscape:
status: Triaged → Invalid
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.