Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP GhostScript does not display/print files produced with GNU libplot #5

Closed
michaelrsweet opened this issue Apr 4, 2003 · 4 comments

Comments

@michaelrsweet
Copy link
Collaborator

Version: 7.05.6
CUPS.org User: till.kamppeter

A user of Mandrake Linux 9.0 reported the following bug already some time ago

https://qa.mandrakesoft.com/show_bug.cgi?id=431

He has found out that all plots created with the GNU libplot library cause an error when trying to display or print these with ESP GhostScript 7.05.5 or 7.05.6. They work fine with GNU or AFPL GhostScript.

I could reproduce the bug. The file

http://www.linuxprinting.org/till/tmp/ESP_GS_7.05.5_does_not_display_this.ps

causes an error in ESP GhostScript (Mandrake 9.0 or 9.1, ESP GhostScript 7.05.5 or 7.05.6) and works correctly with GNU GhostScript (version 6.53 from Mandrake 8.2).


$ gs -sDEVICE=x11 ESP_GS_7.05.5_does_not_display_this.ps

ESP Ghostscript 7.05 (2002-09-02)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 2038856 677148 1642520 351139 0 done.
Using NimbusSansL-Regu font for NimbusSanL-Regu.
Error: /rangecheck in --get--
Operand stack:
--nostringval-- --nostringval-- --nostringval-- descender 0 --nostringval-- 1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3
%oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1047/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)-- --dict:39/50(L)-- --dict:2/17(L)-- --dict:5/17(L)-- --dict:1/3(L)-- --dict:13/14(ro)(L)--
Current allocation mode is local
Current file position is 11008
ESP Ghostscript 7.05.5: Unrecoverable error, exit code 1

$

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

The problem code in question is on line 297 of the sample file. The code:

[FontBBox] 1 get

doesn't work, while:

FontBBox 1 get

does, which implies that either the previous fix in 7.05.4 (that caused other problems) was correct or the PS file is incorrect. I will do some testing with real PostScript interpreters to see what they accept.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

OK, the empty -c command stuff is causing the problem. Will update either the pstoraster script or fix gs.c itself...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in CVS...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: till.kamppeter

I have tried again with the current CVS of ESP GhostScript (after 7.07.1rc1). The bug is still not fixed (the file is exactly the same as of the initial report, raw printing of the file on the HP LaserJet 4050 works just fine):


[root@majax printerdrake]# gs -sDEVICE=x11 ESP_GS_7.05.5_does_not_display_this.ps
ESP Ghostscript 7.07 (2003-07-12)
Copyright 2003 artofcode LLC and Easy Software Products, all rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb... 2089640 720515 1642520 352093 0 done.
Error: /rangecheck in --get--
Operand stack:
--nostringval-- --nostringval-- --nostringval-- descender 0 --nostringval-- 1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1048/1417(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)-- --dict:39/50(L)-- --dict:2/17(L)-- --dict:5/17(L)-- --dict:1/3(L)-- --dict:13/14(ro)(L)--
Current allocation mode is local
Current file position is 11008
ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1

[root@majax printerdrake]#

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant