How to debug pstoraster-Problem?

Helge Blischke h.blischke at srz.de
Wed Oct 25 10:44:58 PDT 2006


Sven Utcke wrote:
> To follow up un my own posting:
> 
> 
>>for pretty much any nontrivial printjob I see something like the following in the error_log:
>>
>>D [16/Oct/2006:22:32:43 +0200] PID 3746 (/software/cups-1.3svn-r6014/SuSE-7.3/lib/cups/filter/pstops) exited with no errors.
> 
> [...]
> 
>>D [16/Oct/2006:22:32:43 +0200] [Job 35] Last OS error: 2
>>D [16/Oct/2006:22:32:43 +0200] [Job 35] ESP Ghostscript 815.03: Unrecoverable error, exit code 1
>>
>>
>>i.e. pstoraster fails.  This is using cups-1.3svn-r6014, espgs-8.15.3, and gutenprint-5.0.0 (although I get similar results using espgs-7.05.5).  Now, the vexing thing is that running pstoraster on the _original_ PS-file does not produce an error.  In order to debug this some more I need access to the modified PS which get's passed to pstoraster --- any ideas, anyone?
> 
> 
> Ok, I still don't know about the canonical way to debug this, but pstoraster is a script, so I could easily modify that to get a copy of the PS after pstops --- and as it turns out that (pstops) is also the culprit.  Both the pstops from 1.3svn-r6014 as well as 1.2.4 produce PostScript on which all of gs 6.51, espgs 7.05.5, and espgs 8.15.3 fail. I have, for now, replaced the pstops from 1.3svn-r6014 with the one from 1.1.17, which works for me (except for rendering the output of psnup in very low resolution).
> 
> The offending file can, for the time being, be gotten from
> 
> ftp://kogs.informatik.uni-hamburg.de/pub/utcke/misc/gewicht.ps
> 
> Any ideas?
> 
> Sven

I recently hacked a CUPS filter, figpstops, that *should* sanitize those weird bad structured
PS jobs, and it worked perfectly for Version 3.2 patchlevel 4.

But your example is 3.2 patchlevel 3c, and I just tried 3.2 patchlevel 5somewhat
and got quite different garbage out. Do those xfig guys know how to read
specifications?

As a workaround I'd suggest
(1) make a pdf (using Ghostscript)
(2a) print that PDF
or
(2b) make a ps from that PDF (using xpdf's pdftops utility).

Helge

PS: I'm going to rework my filter but can't give a schedule now.

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list