Bug 687183 - rangecheck error when reading .ps file
Summary: rangecheck error when reading .ps file
Status: RESOLVED DUPLICATE of bug 687120
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: 8.11
Hardware: PC Windows 2000
: P2 major
Assignee: Jack Moffitt
URL: http://robotics.stanford.edu/~koller/...
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-04 11:52 UTC by Derrill Dabkoski
Modified: 2007-12-13 12:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Derrill Dabkoski 2003-12-04 11:52:11 UTC
From GhostView 4.5, opening the above URL and scrolling to page 7 results in 
the following:
GSview 4.5 2003-10-18
Unknown in Setup section at line 2071:
  %%BeginPaperSize: Letter

Unknown in Setup section at line 2073:
  %%EndPaperSize

AFPL Ghostscript 8.11 (2003-08-16)
Copyright (C) 2003 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying DSC file C:/Documents and Settings/ddabkosk/Local Settings/Temporary 
Internet Files/Content.IE5/HZ3RL5WE/galapaper[1].ps
Displaying page 1
Loading NimbusRomNo9L-Regu font from D:\Program Files\gs\fonts/n021003l.pfb... 
2254376 937754 1838536 508398 1 done.
Loading NimbusRomNo9L-ReguItal font from D:\Program 
Files\gs\fonts/n021023l.pfb... 2391640 1074988 1838536 511130 1 done.
Displaying page 2
Displaying page 3
Displaying page 4
Displaying page 5
Loading NimbusSanL-Regu font from D:\Program Files\gs\fonts/n019003l.pfb... 
2488712 1166626 1898824 560052 3 done.
Displaying page 6
Displaying page 7
Loading NimbusSanL-Bold font from D:\Program Files\gs\fonts/n019004l.pfb... 
2585784 1261485 1878728 546745 3 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--   false   1   %
stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %
oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --
nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --
nostringval--
Dictionary stack:
   --dict:1116/1686(ro)(G)--   --dict:0/20(G)--   --dict:73/200(L)--   --
dict:140/250(L)--   --dict:18/200(L)--   --dict:38/52(L)--   --dict:1/17(L)--
   --dict:5/17(L)--   --dict:1/3(L)--   --dict:16/20(ro)(L)--
Current allocation mode is local

--- Begin offending input ---
2 0 0 2 33.0504 1014.66 ] concat
%I
[
(PASS)
] Text
End

Begin %I Line
%I b 65535
3 0 1 [] 0 SetB
%I cfg Black
0 0 0 SetCFg
%I cbg Black
0 0 0 SetCBg
none SetP %I p n
%I t
[ 1 0 0 1 -130.133 335.659 ] concat
%I
265 694 236 636 Line
%I 1
End

Begin %I Line
%I b 65535
3 1 0 [] 0 SetB
%I cfg Black
0 0 0 SetCFg
%I cbg Black
0 0 0 SetCBg
none SetP %I p n
%I t
[ 1 0 0 -1 -82.5724 1665.66 ] concat
%I
265 694 236 636 Line
%I 1
End

Begin %I Text
%I cfg Black
0 0 0 SetCFg
%I f *-helvetica-bold-r-*-140-*
Helvetica-Bold 14 SetF
%I t
[ 2 0 0 2 184.367 1014.66 ] concat
%I
[
(BET)
] Text
End

Begin %I Rect
%I b 65535
2 0 0 [] 0 SetB
%I cfg Black
0 0 0 SetCFg
%I cbg White
1 1 1 SetCBg
%I p
0 SetP
%I t
[ 0.5 0 0 0.6 71.2778 529.212 ] concat
%I
352 535 356 618 Rect
End

Begin %I Rect
%I b 65535
2 0 0 [] 0 SetB
%I cfg Black
0 0 0 SetCFg
%I cbg White
1 1 1 SetCBg
%I p
0.25 SetP
%I t
[ 0.84 0 0 0.84 149.919 305.592 ] concat
%I
128 652 178 704 Rect
End

Begin %I Pict
%I b u
%I cfg u
%I cbg u
%I f u
%I p u
%I t
[ 1 0 0 1 132.085 9
--- End offending input ---
file offset = 201062
gsapi_run_string_continue returns -101
Comment 1 Alex Cherepanov 2003-12-04 15:02:18 UTC
The sample PS program is incorrect.

The file can be patched using any text editor, for instance
sed "s|\[FontBBox\]|/FontBBox load |" <galapaper.ps >galapaper-fixed.ps

*** This bug has been marked as a duplicate of 687120 ***