Null document assertion error when exporting SVG from command line (file with filters/clones)

Migrated from: https://bugs.launchpad.net/inkscape/+bug/1707371

Steps to reproduce:

Run the following command:

inkscape "example.svg" --export-id="Icon_Sprite" --export-id-only --export-plain-svg="921exportid.svg"

Sample file: example.svg

What happened?

The following assertion error is repeated about 500 times:

** (inkscape.exe:4228): CRITICAL **: void SPObject::requestModified(unsigned int): assertion 'this->document != NULL' failed

** (inkscape.exe:4228): CRITICAL **: void SPObject::requestModified(unsigned int): assertion 'this->document != NULL' failed

** (inkscape.exe:4228): CRITICAL **: void SPObject::requestModified(unsigned int): assertion 'this->document != NULL' failed

The SVG is still exported despite the assertion failure.

What should have happened?

No error should appear.

Inkscape Version and Operating System:

  • Inkscape Version: Inkscape 1.0alpha (d666cd1a10, 2019-05-16)
  • Operating System: openSUSE Tumbleweed
  • Operating System version: 20190509

Reproduced on 0.92.1 on Windows 10. Apparently this did not occur in 0.91.

Edited by Nathan Lee