Skip to content

inkscape quits after closing dialog after importing PDF

Originally reported in Debian: https://bugs.debian.org/895649.

Steps to reproduce:

set -Ceux

# Create an empty home directory for test prefs
temp_home=$(mktemp -d -t temphome-XXXXXXXX)
trap 'rm -rf "$temp_home"' EXIT

# Create PDF file (from https://stackoverflow.com/a/17280876) (any will work)
cat > "$temp_home/blank.pdf" <<'PDF'
%PDF-1.0
1 0 obj<</Pages 2 0 R>>endobj 2 0 obj<</Kids[3 0 R]/Count 1>>endobj 3 0 obj<</MediaBox[0 0 3 3]>>endobj
trailer<</Root 1 0 R>>
PDF

# Make Layers visible by default in preferences
HOME=$temp_home inkscape --verb DialogLayers --verb FileQuit

# Run Inkscape and open any two PDF files
# User Action Required:
# - Press OK on each of the two Import Options dialogs
# - Should produce two Inkscape windows with both Layers dialogs in one window.
# - Close the two Layers dialogs then switch focus to the other window to crash.
HOME=$temp_home gdb -q -ex run --args \
	inkscape "$temp_home/blank.pdf" "$temp_home/blank.pdf"

What happened?

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug


** (inkscape:31538): CRITICAL **: 19:05:24.625: void Inkscape::UI::Dialog::LayersPanel::_layersChanged(): assertion 'document != nullptr' failed

** (inkscape:31538): CRITICAL **: 19:05:24.714: void Inkscape::UI::Dialog::LayersPanel::_layersChanged(): assertion 'document != nullptr' failed
[Thread 0x7fffeca8f700 (LWP 32382) exited]
[Thread 0x7fffed290700 (LWP 32381) exited]
[Thread 0x7fffedb20700 (LWP 32380) exited]
[Thread 0x7fffee321700 (LWP 32379) exited]
[Thread 0x7fffeeb22700 (LWP 32378) exited]
[Thread 0x7fffeee68b40 (LWP 31538) exited]
[Inferior 1 (process 31538) exited normally]

i.e., it's not a crash, it's not a segfault, inkscape just quits (retcode = 0)

Inkscape Version and Operating System:

  • Inkscape Version: that above is with 1.0beta1
  • Operating System: Debian 10

This also used to be reported at https://bugs.launchpad.net/inkscape/+bug/1541848 but was closed as unreproducible.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information