gs-esp dies when it is called by cups

Bug #23461 reported by Markus Wigge
34
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Undecided
Unassigned
foomatic-filters (Ubuntu)
Fix Released
Medium
Ian Jackson

Bug Description

For now I'm not able to print anything using a (very old) DeskJet720C with
pnm2ppa driver.
It does work with Hoary which is installed in a different partition.
I tried to print out of Acroread and Firefox with the same result, so it
should'nt be anything application related.

ioerror and "illegal seek" sounds to me a bit like a harddisk error, but I
did'nt have any other trouble with it yet, so it's hard to believe in that but I
will check it as soon as I can, too.
BTW I got the same results using gs-gpl which is a different binary, so the
harddisk error is even harder to believe...

My cups errorlog says the following in debug-mode. (I'm trying to print over
network, to other cups-server):
------------------------------------------------------------------------------------------------------------
D [05/Oct/2005:21:22:07 +0200] [Job 2] Starting renderer
D [05/Oct/2005:21:22:07 +0200] [Job 2] JCL: <job data>
D [05/Oct/2005:21:22:07 +0200] [Job 2]
D [05/Oct/2005:21:22:07 +0200] [Job 2] renderer PID kid4=17248
D [05/Oct/2005:21:22:07 +0200] [Job 2] renderer command: gs -q -dNOPAUSE
-dPARANOIDSAFER -dBATCH -r600 -sDEVICE=ppmraw -sOutputFile=- - | pnm2ppa -v 720
 -B 2 -t 10 -b 150 -l 10 -r 10 -x 160 -y 50 -i - -o -
D [05/Oct/2005:21:22:07 +0200] [Job 2] perl: warning: Setting locale failed.
D [05/Oct/2005:21:22:07 +0200] [Job 2] perl: warning: Please check that your
locale settings:
D [05/Oct/2005:21:22:07 +0200] [Job 2] LANGUAGE = (unset),
D [05/Oct/2005:21:22:07 +0200] [Job 2] LC_ALL = (unset),
D [05/Oct/2005:21:22:07 +0200] [Job 2] LANG = "de"
D [05/Oct/2005:21:22:07 +0200] [Job 2] are supported and installed on your system.
D [05/Oct/2005:21:22:07 +0200] [Job 2] perl: warning: Falling back to the
standard locale ("C").
D [05/Oct/2005:21:22:07 +0200] [Job 2] foomatic-gswrapper: gs '-dNOPAUSE'
'-dPARANOIDSAFER' '-dBATCH' '-r600' '-sDEVICE=ppmraw' '-sOutputFile=/dev/fd/3'
'/dev/fd/0' 3>&1 1>&2
D [05/Oct/2005:21:22:07 +0200] [Job 2] ESP Ghostscript 7.07 (2003-07-12)
D [05/Oct/2005:21:22:07 +0200] [Job 2] Copyright 2003 artofcode LLC and Easy
Software Products, all rights reserved.
D [05/Oct/2005:21:22:07 +0200] [Job 2] This software comes with NO WARRANTY: see
the file PUBLIC for details.
D [05/Oct/2005:21:22:07 +0200] [Job 2]
D [05/Oct/2005:21:22:07 +0200] [Job 2] Closing renderer
D [05/Oct/2005:21:22:09 +0200] [Job 2] Error: /ioerror in --.outputpage--
D [05/Oct/2005:21:22:09 +0200] [Job 2] Operand stack:
D [05/Oct/2005:21:22:09 +0200] [Job 2] 1 true
D [05/Oct/2005:21:22:09 +0200] [Job 2] Execution stack:
D [05/Oct/2005:21:22:09 +0200] [Job 2] %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 .runexec2
  --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval-- 0 6 %oparray_pop --nostringval-- --nostringval--
--nostringval-- --nostringval--
D [05/Oct/2005:21:22:09 +0200] [Job 2] Dictionary stack:
D [05/Oct/2005:21:22:09 +0200] [Job 2] --dict:1056/1417(ro)(G)--
--dict:0/20(G)-- --dict:78/200(L)-- --dict:35/89(L)--
--dict:87/162(ro)(L)-- --dict:64/78(ro)(L)--
D [05/Oct/2005:21:22:09 +0200] [Job 2] Current allocation mode is local
D [05/Oct/2005:21:22:09 +0200] [Job 2] Last OS error: 32
D [05/Oct/2005:21:22:09 +0200] [Job 2] ESP Ghostscript 7.07.1: Unrecoverable
error, exit code 1
D [05/Oct/2005:21:22:09 +0200] [Job 2] renderer return value: 1
D [05/Oct/2005:21:22:09 +0200] [Job 2] renderer received signal: 1
D [05/Oct/2005:21:22:09 +0200] [Job 2] Process dying with "Possible error on
renderer command line or PostScript error. Check options.", exit stat: 3
D [05/Oct/2005:21:22:09 +0200] [Job 2] error: Illegal seek (29)
D [05/Oct/2005:21:22:09 +0200] [Job 2] Possible error on renderer command line
or PostScript error. Check options.
D [05/Oct/2005:21:22:09 +0200] [Job 2] tail process done writing data to STDOUT
D [05/Oct/2005:21:22:09 +0200] [Job 2] KID4 finished
D [05/Oct/2005:21:22:09 +0200] [Job 2] KID3 exited with status 3
D [05/Oct/2005:21:22:09 +0200] [Job 2] Renderer exit stat: 3
D [05/Oct/2005:21:22:09 +0200] [Job 2] Renderer process finished
D [05/Oct/2005:21:22:09 +0200] [Job 2] Killing process 17247 (KID3)
D [05/Oct/2005:21:22:09 +0200] [Job 2] Process dying with "Error closing
renderer", exit stat: 3
D [05/Oct/2005:21:22:09 +0200] [Job 2] error: Illegal seek (29)
D [05/Oct/2005:21:22:09 +0200] [Job 2] Error closing renderer
E [05/Oct/2005:21:22:09 +0200] PID 17240 stopped with status 3!
...

Revision history for this message
Matt Zimmerman (mdz) wrote :

*** Bug 23551 has been marked as a duplicate of this bug. ***

Revision history for this message
Ian Jackson (ijackson) wrote :

I think the ioerror actually means pnm2ppa is failing. Can you please try the
following and give a transcript of steps 2 onwards and a description of what the
printer does ?

1. Print from Firefox to a file rather than to your printer.
2. gs -q -dNOPAUSE -dPARANOIDSAFER -dBATCH -r600 -sDEVICE=ppmraw
-sOutputFile=test.ppm file-from-firefox.ps
3. pnm2ppa -v 720 -B 2 -t 10 -b 150 -l 10 -r 10 -x 160 -y 50 -i - -o - <test.ppm
>test.ppa
4. lpr -o raw test.ppa

If, as I suspect, step 3 fails, could you attach test.ppm to this bug report.

Revision history for this message
Markus Wigge (markus-cultcom) wrote :

> 1. Print from Firefox to a file rather than to your printer.
done.
> 2. gs -q -dNOPAUSE -dPARANOIDSAFER -dBATCH -r600 -sDEVICE=ppmraw
> -sOutputFile=test.ppm file-from-firefox.ps
done.
> 3. pnm2ppa -v 720 -B 2 -t 10 -b 150 -l 10 -r 10 -x 160 -y 50 -i - -o - <test.ppm
> >test.ppa
done and no problem ...

> 4. lpr -o raw test.ppa
did'nt print it yet.

> If, as I suspect, step 3 fails, could you attach test.ppm to this bug report.
Sorry but step 3 did'nt fail as I suspected too. Maybe the problem lies
somewhere else?

Revision history for this message
Ian Jackson (ijackson) wrote :

It seems that there is something wrong with your printer's connection and/or with your CUPS setup. Are you able to print by catting the .raw file to the /dev/lp device on the machine with the printer attached (shut down cupsys before trying this) ?

Changed in gs-esp:
status: Unconfirmed → Needs Info
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you also try the following:

Replace your /usr/bin/foomatic-gswrapper by the newest one from linuxprinting.org:

cd /usr/bin
mv foomatic-gswrapper foomatic-gswrapper.orig
wget http://www.linuxprinting.org/foomatic-gswrapper
chmod 755 foomatic-gswrapper

Can you print using your originally created print queue now?

If this works, the foomatic-filters package should be replaced by the newest snapshot from linuxprinting.org:

http://www.linuxprinting.org/download/foomatic/foomatic-filters-3.0-20060904.tar.gz

or newer.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you update foomatic-filters to the current version and try whether printing works for you now?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Fix in foomatic-filters confirmed as working in bug #34971. Closing ...

Changed in cupsys:
status: Unconfirmed → Rejected
Changed in foomatic-filters:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.