Command line crashes with 'FileQuit' or anything but --batch-process

Summary:

These commands crash with different error messages in 1.1rc:

inkscape --actions="select-by-id:rect857;EditDuplicate;select-by-id:rect853;SelectionUnion;EditDeselect;select-by-id:rect857;EditDuplicate;select-by-id:rect855;SelectionUnion;EditDeselect;FileSave;FileQuit" --with-gui Zeichnung.svg

Error: (org.inkscape.Inkscape:77435): Gtk-CRITICAL **: 21:07:15.740: gtk_container_resize_children: assertion 'GTK_IS_CONTAINER (container)' failed

inkscape --actions="select-by-id:rect857;EditDuplicate;select-by-id:rect853;SelectionUnion;EditDeselect;select-by-id:rect857;EditDuplicate;select-by-id:rect855;SelectionUnion;EditDeselect;FileSave;FileQuit" Zeichnung.svg

Error: ** (org.inkscape.Inkscape:77374): CRITICAL **: 21:06:59.047: static void Inkscape::EditVerb::perform(SPAction*, void*): assertion 'ensure_desktop_valid(action)' failed"

If I leave out the 'FileQuit' it still crashes, but there's no error message except for the info about the Emergency save.

This command works:

inkscape --actions="select-by-id:rect857;EditDuplicate;select-by-id:rect853;SelectionUnion;EditDeselect;select-by-id:rect857;EditDuplicate;select-by-id:rect855;SelectionUnion;EditDeselect;FileSave" --batch-process Zeichnung.svg

Steps to reproduce:

  • download test file: Zeichnung.svg
  • open command line
  • try out the different commands

What happened?

Crashes.

What should have happened?

No crashes. Informative error messages, if the command is wrong. If the command is correct, it should work.

Version Info:

- Inkscape Version: Inkscape 1.1-rc (52f87abb86, 2021-05-02)
- Operating System: Linux MIn 20.1