Bug 690032 - bjc600 and bjc800 do not work with PDF input data
Summary: bjc600 and bjc800 do not work with PDF input data
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Printer Driver (show other bugs)
Version: 8.63
Hardware: PC Linux
: P4 major
Assignee: Ray Johnston
Depends on:
Reported: 2008-08-20 09:50 UTC by Till Kamppeter
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Word Size: ---

partial fix (517 bytes, patch)
2008-08-21 19:58 UTC, Alex Cherepanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Till Kamppeter 2008-08-20 09:50:28 UTC
Run the command

gs -sDEVICE=bjc600 -sOutputFile=x ~/walking-map-portland-1.pdf

and when

>>showpage, press <return> to continue<<

appears, press return. Then you get

Error: /rangecheck in .installpagedevice
Operand stack:
   --nostringval--   false   --nostringval--   --dict:59/72(ro)(L)--  
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1905   1   3   %oparray_pop   1904
  1   3   %oparray_pop   1888   1   3   %oparray_pop   --nostringval--  
--nostringval--   2   1   1   --nostringval--   %for_pos_int_continue  
--nostringval--   1834   3   7   %oparray_pop   --nostringval--   1818   3   7 
 %oparray_pop   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1153/1684(ro)(G)--   --dict:1/20(G)--   --dict:97/200(L)--  
--dict:97/200(L)--   --dict:106/127(ro)(G)--   --dict:275/300(ro)(G)--  
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.63: Unrecoverable error, exit code 1

Same happens for bjc800. I am not sure but it is possible that when the error
occurs that the one page to be printed is already complete in the output file.
Comment 1 Ralph Giles 2008-08-20 09:59:35 UTC
The test file here is the same as the first attachment on Bug 690025.

Confirmed with HEAD (r9000).
Comment 2 Alex Cherepanov 2008-08-21 19:58:27 UTC
Created attachment 4313 [details]
partial fix

This patch fixes one issue - a float promoted to double is not equal
to the original double.

The sample file still doesn't run. So there must be other bugs somewhere.
Comment 3 Till Kamppeter 2008-10-18 05:32:35 UTC
Fixed in SVN revision 9173.
Comment 4 Till Kamppeter 2008-10-18 05:33:40 UTC
In addition to my fix the attched patch is also included in my commit.