Crash when running extension from shell mode without gui
Summary:
I am using Inkscape v1.2 to create a script in Ubuntu 20.04.4 LTS 64-bit to automate barcode generation and add it to an existing Inkscape SVG file I created from scratch. When I execute org.inkscape.render.barcode
from the shell, Inkscape crashes. It also crashes when executing org.inkscape.render.barcode
after starting a new file with nothing in it. I can perform this task successfully in the GUI but not CLI.
Steps to reproduce:
- open terminal in Ubuntu
- navigate to working directory with the files I need
- execute
inkscape --shell
- execute
file-open:template.svg
- execute
org.inkscape.render.barcode:000127
<-- also fails by simply executingorg.inkscape.render.barcode
with no argument
What happened?
Output below
Inkscape interactive shell mode. Type 'action-list' to list all actions. Type 'quit' to quit.
Input of the form:
action1:arg1; action2:arg2; ...
Only actions that don't require a desktop may be used.
> file-open:template.svg
> org.inkscape.render.barcode:000127
Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at https://inkscape.org/report
with a detailed description of the steps leading to the crash, so we can fix it.
** Message: 17:01:08.351: Error: Inkscape encountered an internal error and will close now.
Segmentation fault (core dumped)
What should have happened?
I'm not sure what a successful output looks like. When executing action-list
the allowable execution for the barcode extension is as follows:
org.inkscape.render.barcode: Classic
org.inkscape.render.barcode.noprefs: Classic
Sample attachments:
Version info
Inkscape 1.2 (1:1.2+202206011327+fc4e4096c5)
GLib version: 2.64.6
GTK version: 3.24.20
glibmm version: 2.64.2
gtkmm version: 3.24.2
libxml2 version: 2.9.10
libxslt version: 1.1.34
Cairo version: 1.16.0
Pango version: 1.44.7
HarfBuzz version: 2.6.4
OS version: Ubuntu 20.04.4 LTS