Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GdlSwitcher

Replicate

  1. Install Inkscape v1.0 (4035a4fb49, 2020-05-01) on Arch Linux running XFCE
  2. Open a terminal (e.g., xfce4-terminal)
  3. Start Inkscape from the command line by typing: inkscape
  4. Ensure Inkscape has focus (e.g., click anywhere on its window)
  5. Press Alt+Tab to cycle back to the terminal window

Expected

Inkscape quietly loses focus

Actual

Inkscape noisily writes numerous "CRITICAL" errors to standard error; see attached inkscape.log.

inkscape.log

Additional Details

These errors cause a noticeable lag when switching away from Inkscape (because writing to standard output and/or standard error is a slow operation). Moreover, it looks to be a programming error with respect to GTK.

Could lead to unexpected behaviour, such as crashes, which we see in other reported issues?

Version

$ inkscape --version
Inkscape 1.0 (4035a4fb49, 2020-05-01)
    Pango version: 1.44.7
Edited by Dave Jarvis