EPS files fail to load if Inkscape isn't started from the terminal

Summary:

I can't import EPS files at all.

Steps to reproduce:

  1. Open a new document in Inkscape
  2. Save the blank document as an EPS named drawing.eps (Attached: drawing.eps)
  3. Close document

Approach 1:
4. Open Inkscape
5. File > Open Recent > drawing.eps

Approach 2:
4. Open Terminal
5. Run inkscape drawing.eps

What happened?

Approach 1:
Error

Approach 2:

Traceback (most recent call last):
  File "ps_input.py", line 41, in <module>
    PostscriptInput().run()
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/base.py", line 130, in run
    self.load_raw()
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/extensions.py", line 119, in load_raw
    document = self.call(input_file, output_file) or output_file
  File "ps_input.py", line 38, in call
    call('ps2pdf', crop, input_file, output_file)
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/command.py", line 188, in call
    stdout = _call(program, *args, **kwargs)
  File "/Applications/Inkscape.app/Contents/Resources/share/inkscape/extensions/inkex/command.py", line 172, in _call
    raise ProgramRunError(f"Return Code: {process.returncode}: {stderr}\n{stdout}\nargs: {args}")
inkex.command.ProgramRunError: Return Code: 1: b'Error: /configurationerror in --setpagedevice--\nAdditional information: [/PageSize [0 0]]\nOperand stack:\n   --nostringval--   (%%BoundingBox: 0 842 0 842)   --dict:1/2(ro)(G)--   --nostringval--   --nostringval--   (%%BoundingBox: 0 842 0 842)   1   0   842   false   --dict:1/1(L)--\nExecution stack:\n   %interp_exit   .runexec2   --nostringval--   0Policy   --nostringval--   2   %stopped_push   --nostringval--   0Policy   0Policy   false   1   %stopped_push   1990   1   3   %oparray_pop   1989   1   3   %oparray_pop   1988   1   3   %oparray_pop   0Policy   1977   1   3   %oparray_pop   1833   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   0Policy   --nostringval--   2   %stopped_push   --nostringval--   %ztokenexec_continue   (scanner state)   0Policy   0Policy   0Policy   0Policy   1986   8   3   %oparray_pop   0Policy   1984   11   3   %oparray_pop   0Policy   1938   10   3   %oparray_pop   0Policy   1937   16   3   %oparray_pop   0Policy   --dict:1/10(L)--   0Policy   13   %dict_continue   1934   19   3   %oparray_pop\nDictionary stack:\n   --dict:731/1123(ro)(G)--   --dict:0/20(G)--   --dict:79/200(L)--\nCurrent allocation mode is local\nLast OS error: Invalid argument\nCurrent file position is 200\nGPL Ghostscript 9.54.0: Unrecoverable error, exit code 1\n'
b''
args: ['/usr/local/bin/ps2pdf', '-dEPSCrop', '/Users/monika/Desktop/drawing.eps', '/var/folders/pj/q9mg94z16jqghz31yzg82t7c0000gn/T/inktmpabx37rsw/output.pdf']

What should have happened?

EPS file imported.

Sample attachments: Attached: drawing.eps

Version Info

  • Inkscape:

    GLib version:     2.66.0
    GTK version:      3.24.20
    glibmm version:   2.60.0
    gtkmm version:    3.24.2
    libxml2 version:  2.9.9
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.43.0
    HarfBuzz version: 2.7.1
    Poppler version:  20.12.1

    OS version:       macOS

Installed via Homebrew. Also tried downloading the dmg from the Inkscape site.

  • OS: macOS Big Sur 11.4
  • Ghostscript: 9.54.0
  • Python: 3.8.2 and 2.7.16

Other

I tried the "quick & dirty" instructions for #4321 . Ghostscript is already on my path:

> echo $PATH
/usr/local/opt/gs:/usr/local/bin/gs:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Users/monika/bin

Second command gives:

> /Applications/Inkscape.app/Contents/MacOS/inkscape
Shortcut::add_shortcut: duplicate shortcut found for: <Primary>comma  Old: SelectionShrinkHalve  New: DialogPreferences !

(org.inkscape.Inkscape:2536): GLib-CRITICAL **: 08:25:34.522: g_date_time_format: assertion 'datetime != NULL' failed
Edited by Nathan Lee
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information