FS#56284 - [texlive-bin] latex/xdvi: embedded eps preview with ghostscript not working anymore

Attached to Project: Arch Linux
Opened by Jochen Autschbach (jautschbach) - Thursday, 09 November 2017, 18:15 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 15 April 2018, 00:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: when viewing DVI (compiled LaTeX 'device independent') files with embedded eps (encapsulated postscript) images, the images do not show up. Instead, there are errors from ghostscript (copied below).

This problem appeared after I updated to ghostscript 9.22-1

When I revert to the last installed version, ghostscript 9.21-3, the problem disappears, and it re-appears when I update to 9.22-1 again. A minimal latex example, gs-test.tex, producing the error is attached. The included eps file is the same as /usr/share/ghostscript/9.22/examples/tiger.eps

Packages:

texlive-bin 2017.44590-7
texlive-core 2017.44918-1
ghostscript 9.22-1

Steps to reproduce:

copy /usr/share/ghostscript/9.22/examples/tiger.eps and the attached gs-test.tex to working directory
latex gs-test
xdvi gs-test

shows the following error when using ghostscript 9.22-1

> xdvi gs-test.dvi
gs: Error: /undefined in flushpage
gs: Operand stack:
gs:
gs: Execution stack:
gs: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fals
gs: e 1 %stopped_push 2015 1 3 %oparray_pop 2014 1 3 %oparray_pop
gs: 1998 1 3 %oparray_pop 1884 1 3 %oparray_pop --nostringval--
gs: %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
gs: 2 %stopped_push --nostringval-- --nostringval-- %loop_continue --nost
gs: ringval--
gs: Dictionary stack:
gs: --dict:986/1684(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
gs: Current allocation mode is local
gs: Last OS error: No such file or directory
gs: GPL Ghostscript 9.22: Unrecoverable error, exit code 1


This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 15 April 2018, 00:04 GMT
Reason for closing:  Fixed
Comment by Rémy Oudompheng (remyoudompheng) - Wednesday, 15 November 2017, 23:43 GMT
Ghostscript 9.22 has removed the flushpage command (and many others) that was used by xdvi in its communication layer.
I am not a PostScript expert, so at the moment a fix seems extremely difficult.
Comment by Jochen Autschbach (jautschbach) - Saturday, 14 April 2018, 18:59 GMT
After I reported the bug I downgraded to ghostscript 9.21-3 and kept using that version for several months. Today, along with a full system update, I installed ghostscript 9.23-1 and the problem seems to have disappeared. Not sure if this was fixed in ghostscript or xdvi but I'll request closure of this task.

Loading...