Inkscape 1.1 crash on command line with no display server

Summary:

I'm trying to render an SVG file to PNG from the command line. This used to work fine, even when no display server was set; but with more recent versions of inkscape, it seems to want to access the display server, even when this is not necessary, resulting in a crash.

Steps to reproduce:

  • Set up an environment that cannot access a display server (e.g., docker)
  • Run inkscape --batch-process -o foo.png foo.svg

What happened?

Inkscape crashes.

backtrace

(I have a core dump, but it's 70+MiB and gitlab won't allow me to upload files that are larger than 10MiB).

What should have happened?

Inkscape should have rendered the SVG file to PNG, and exited, without crashing.

Sample attachments:

just-title.svg

(the above is the file that I tried to convert, but I suspect the exact file is not relevant)

Version info

Inkscape 1.1.1 (3bf5ae0d25, 2021-09-20)

    GLib version:     2.70.2
    GTK version:      3.24.31
    glibmm version:   2.66.2
    gtkmm version:    3.24.5
    libxml2 version:  2.9.12
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.48.10
    HarfBuzz version: 2.7.4
    Poppler version:  20.09.0

    OS version:       Debian GNU/Linux bookworm/sid