[cups.bugs] Re: [HIGH] STR #1172: cups driver within pstoraster

Till Kamppeter till.kamppeter at gmx.net
Wed Jun 15 14:09:32 PDT 2005


[STR New]

I have exactly the same problem both with subversion revision 99 (rc3) and
104 (current state). See

http://qa.mandriva.com/show_bug.cgi?id=16313

-------------------------------------------------------------------------
Original report from Ian Payton <ian_mandriva at payton.org.uk>:

I cannot print from Mozilla Firefox or Thunderbird, and this appears to be
related to the CUPS print filter using 'pstoraster', and the consequent
call to
ghostscript failing.

When I turn cups logging to debug and try to print from Firefox or
Thunderbird,
I get (amongst a lot of other output) the following error line:

D [05/Jun/2005:09:47:23 +0100] [Job 30] Error: /rangecheck in
--setpagedevice--

followed quickly by:

D [05/Jun/2005:09:47:23 +0100] [Job 30] ESP Ghostscript 815.01:
Unrecoverable
error, exit code 1
E [05/Jun/2005:09:47:23 +0100] PID 17092 stopped with status 1!
E [05/Jun/2005:09:47:23 +0100] [Job 30] No pages found!
E [05/Jun/2005:09:47:23 +0100] PID 17093 stopped with status 1!

....and the print job gets cancelled.

I can reproduce this on the command-line by getting Firefox or Thunderbird
to
print to a postscript file ("mozilla.ps"). This postscript file displays
properly in, for instance, konqueror, but cannot be printed (I get the
same set
of errors as above in the CUPS log). if I manually run the cups
"pstoraster"
command on this file like so:

/usr/lib/cups/filter/pstoraster < mozilla.ps

....I get exactly the same error appear on standard output as I see in the
cups
error log.

Googling around led me to this post on the CUPS site
http://www.cups.org/espgs/str.php?L1172+P0+S-2+C0+I0+E0+Q which shows the
same
problem in SUSE9.3 distribution, and apparently the problem is due to a
particular version of ghostscript, and that it is fixed in version
8.15rc3.


------- Additional Comment #1 From Till Kamppeter 2005-06-15 03:47 -------

Should be fixed in the ghostscript-8.15-17mdk package on the Cooker (it is
rc3).
Please update and report whether it works then.


------- Additional Comment #2 From Ian Payton 2005-06-15 19:50 -------

Created an attachment (id=3131) [edit]
Thunderbird output which displays in Konqueror, but fails with gs

This attachment displays correctly in Konqueror.  However, it demonstrates
this
gs bug if gs is invoked in the following way (this is how it is invoked by
the
CUPS pstoraster filter):

cat mozilla.ps | /usr/bin/gs -dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE
-dBATCH
-dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr -sOUTPUTFILE=%stdout -c -


------- Additional Comment #3 From Ian Payton 2005-06-15 19:57 -------

Unfortunately, ghostscript-8.15-17mdk does not fix the problem (which is  
disappointing, given the information in the cups.org link in the original 

report).  
  
I have also attached an example .ps file and 'gs' command line which  
demonstrate the problem - hopefully you will be able to reproduce it. 
 


------- Additional Comment #4 From Till Kamppeter 2005-06-15 20:57 -------

Yes, I can reproduce it. It seems that in 17mdk the problem is absolutely
untouched. I will try current CVS and if necessary open a new, independent
STR
at cups.org.

-------------------------------------------------------------------------

The file attached to that bug report I have attached to this STR now.

I can reproduce the problem with the following command line:

-------------------------------------------------------------------------
cat mozilla.ps | /usr/bin/gs -dQUIET -dDEBUG -dPARANOIDSAFER -dNOPAUSE
-dBATCH -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr -sOUTPUTFILE=%stdout
-c - > x
-------------------------------------------------------------------------

I get following error output:

--------------------------------------------------------------------------
[...]
DEBUG2: Adding cupsRowFeed
DEBUG2: Adding cupsRowStep
DEBUG2: Leaving cups_get_params()
Checking.
-dict-
-dict-
-mark-
-dict-
Merging.
-dict-
-dict-
-mark-
-dict-
Selecting.
-dict-
-dict-
-dict-
-mark-
-dict-
Constructing.
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
Error: /rangecheck in --setpagedevice--
Operand stack:
   --dict:1/1(L)--   --nostringval--   --dict:66/66(ro)(L)--  
--dict:1/1(L)--   --dict:8/67(L)--   --dict:1/2(L)--   --nostringval--  
--dict:3/3(L)--   true   --nostringval--   %MediaSource   0  
%MediaDestination   0   MediaPosition   0   --dict:8/67(L)--
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   1   3   %oparray_pop   .runexec2  
--nostringval--   --nostringval--   --nostringval--   2   %stopped_push  
--nostringval--   1   3   %oparray_pop   --nostringval--   --nostringval--
  --nostringval--
Dictionary stack:
   --dict:1117/1686(ro)(G)--   --dict:0/20(G)--   --dict:80/200(L)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 815.00: Unrecoverable error, exit code 1
DEBUG2: cups_close(0x86296f4)
[root at majax g]#
------------------------------------------------------------------------

Also for me mozilla.ps is displayed correctly on the screen (with "gv").
So the same ESP GhostScript version can handle the file when using the
"x11" device but not when using the "cups" device.

Link: http://www.cups.org/str.php?L1172
Version: 8.15-current
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mozilla.ps
Type: application/octet-stream
Size: 40916 bytes
Desc: not available
URL: <https://lists.cups.org/pipermail/cups/attachments/20050615/641250de/attachment.obj>


More information about the cups mailing list