[gs-bugs] [Bug 691499] New: CUPS Raster device has "Error: /undefined in --setpagedevice--" for some files only in banding mode

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Mon Jul 26 14:25:08 UTC 2010


           Summary: CUPS Raster device has "Error: /undefined in
                    --setpagedevice--" for some files only in banding mode
           Product: Ghostscript
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P4
         Component: CUPS driver
        AssignedTo: till.kamppeter at gmail.com
        ReportedBy: till.kamppeter at gmail.com
         QAContact: gs-bugs at ghostscript.com
                CC: mike at easysw.com, twaugh at redhat.com
   Estimated Hours: 0.0

I am trying to render the attached PDF files with a command line like this:

cat ~/ghostscript/gpl/testfiles/cups-does-not-show/CityMap.pdf | gs
-sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -r720x720
-dcupsBitsPerColor=8 -dcupsColorSpace=1 -_ > out.raster 2> log

This makes Ghostscript (both 8.71 and 9.00 of current SVN) error out like this:

Error: /undefined in --setpagedevice--
Operand stack:
   (/tmp/gs_OZCmcT)   --nostringval--   --dict:11/11(L)--   --dict:6/6(L)--  
setpagedevice   --dict:30/32(L)--   true
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1894   1   3   %oparray_pop  
1893   1   3   %oparray_pop   1877   1   3   %oparray_pop   --nostringval--  
--nostringval--   --nostringval--   2   1   1   --nostringval--  
%for_pos_int_continue   --nostringval--   1862   4   7   %oparray_pop  
--nostringval--   --nostringval--
Dictionary stack:
   --dict:1165/1684(ro)(G)--   --dict:1/20(G)--   --dict:82/200(L)--  
--dict:82/200(L)--   --dict:108/127(ro)(G)--   --dict:290/300(ro)(G)--  
Current allocation mode is local
GPL Ghostscript SVN PRE-RELEASE 9.00: Unrecoverable error, exit code 1

The high resolution ("-r720x720") and the high color depth
("-dcupsBitsPerColor=8 -dcupsColorSpace=1") make the CUPS raster device
rendering in banding mode.

Lowering the resolution to "-r360x360" or raising the driver's cache size via

cat ~/ghostscript/gpl/testfiles/cups-does-not-show/CityMap.pdf |
RIP_MAX_CACHE=1G  gs -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout
-r720x720 -dcupsBitsPerColor=8 -dcupsColorSpace=1 -_ > out.raster 2> log

make the file getting rendered correctly as probably Ghostscript is not using
the banding mode any more.

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list