ghostscript still bug under linux

Issue #48 new
another_yekcim
created an issue

It seems that bug #35 (closed) is not an Ubuntu exclusivity. I can't run textext in Debian Sid or Manjaro.

Command pstoedit -f plot-svg /tmp/tmpYAGErw/tmp.pdf /tmp/tmpYAGErw/tmp.svg -dt -ssp -psarg -r9600x9600 -pta failed (code 1): pstoedit: version 3.70 / DLL interface 108 (built: Aug 29 2017 - release build - g++ 7.2.0 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz

 *** WARNING - the DELAYBIND command has been deprecated, and will be
               removed in the next version. For now you can restore
               the behaviour by using -dREALLYDEALYBIND but if you
               require continued use of this command you should contact
               the Ghostscript developers. Commercial customers of
               Artifex should email their support contact, free users
               are encouraged to talk to us on the #ghostscript IRC
               channel on irc.freenode.net.

Unrecoverable error: undefined in DELAYBIND
PostScript/PDF Interpreter finished. Return status 65280 executed command : /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS -r9600x9600 "/tmp/psinT51q5a"
The interpreter seems to have failed, cannot proceed !

Traceback (most recent call last):
  File "/home/carre/.config/inkscape/extensions/asktext.py", line 450, in cb_ok
    self.callback(self.text, self.preamble_file, self.scale_factor)
  File "textext.py", line 207, in <lambda>
    asker.ask(lambda t, p, s: self.do_convert(t, p, s, usable_converter_class, old_node),
  File "textext.py", line 291, in do_convert
    new_node = converter.convert(text, preamble_file, scale_factor)
  File "textext.py", line 942, in convert
    self.pdf_to_svg()
  File "textext.py", line 1018, in pdf_to_svg
    raise RuntimeError(latest_message())
RuntimeError: Command pstoedit -f plot-svg /tmp/tmpYAGErw/tmp.pdf /tmp/tmpYAGErw/tmp.svg -dt -ssp -psarg -r9600x9600 -pta failed (code 1): pstoedit: version 3.70 / DLL interface 108 (built: Aug 29 2017 - release build - g++ 7.2.0 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz

 *** WARNING - the DELAYBIND command has been deprecated, and will be
               removed in the next version. For now you can restore
               the behaviour by using -dREALLYDEALYBIND but if you
               require continued use of this command you should contact
               the Ghostscript developers. Commercial customers of
               Artifex should email their support contact, free users
               are encouraged to talk to us on the #ghostscript IRC
               channel on irc.freenode.net.

Unrecoverable error: undefined in DELAYBIND
PostScript/PDF Interpreter finished. Return status 65280 executed command : /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS -r9600x9600 "/tmp/psinT51q5a"
The interpreter seems to have failed, cannot proceed !
  • ghostscript: version 9.22
  • pstoedit: version 3.70

Comments (9)

  1. Jan Winkler

    This is not a TexText problem. It is a problem in the pstoedit package. TexText calls pstoedit which itself calls gs using the DELAYBIND option which has been marked as deprecated.

    Maybe we should abandon pstoedit and move to e.g. pdf2svg?

  2. another_yekcim reporter

    # aptitude install ghostscript=9.20~dfsg-3.2+deb9u1

    reject all solutions proposing the removal of cups, pstoedit,… accept solution with only 3 downgrades

    # apt-mark hold ghostscript

    \o/ It works!!! Thanks a lot Jan.

    If pstoedit continue to use deprecated functions, pdf2svg could be a long-term solution.

  3. Jan Winkler

    Great to hear! Very bad decision of the ghostscript developers, a lot of other applications are affected by this issue. too. E.G. Scribus and Inkscape itself...

    Just this morning I had a look on pdf2svg. It looks fine but will require a rewrite of major parts of the TexText code. But the svg code produced is much cleaner and easier to handle.

  4. Harold Erbin

    I confirm this bug on Fedora 27 with ghostscript 9.22-1. Downgrading to ghostscript 9.20-14 (minimal available version) leads to bug #35. It is obviously still possible to downgrade by downloading the rpm packages on internet (one needs the version 9.20-2 from f25, the version 9.20-10 from f26 does not work), but this is less convenient.

  5. Jan Winkler

    Apparently, this cannot be solved by us TexText developers. On the one hand, pstoedit is broken with gs > 9.20, on the other hand there are issues in ghostscript in some versions on some Linux distros. Very bad. We need to migrate to another converter framework. Maybe the mentioned pdf2svg or Inkscape itself (called from command line).

  6. Log in to comment