/etc/cups/pdftops.conf doesn't exist

Bug #92274 reported by Joey Stanford
2
Affects Status Importance Assigned to Milestone
gs-esp (Ubuntu)
Fix Released
Medium
Till Kamppeter

Bug Description

Binary package hint: cupsys

When trying to print a PDF file under Edgy, the cups job errors with this information:

E [14/Mar/2007:09:47:22 -0600] [Job 7] pdftops-options: -cfg /etc/cups/pdftops.conf
E [14/Mar/2007:09:47:23 -0600] [Job 7] /undefined in --get--
E [14/Mar/2007:09:47:23 -0600] PID 8742 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!

Revision history for this message
Joey Stanford (joey) wrote :
Revision history for this message
Joey Stanford (joey) wrote :

assigning to pitti

Changed in cupsys:
assignee: nobody → martin-pitt
Revision history for this message
Joey Stanford (joey) wrote :

assigning to the correct pitti

Changed in cupsys:
assignee: martin-pitt → pitti
Revision history for this message
Joey Stanford (joey) wrote :

Contents of my /etc/cups directory after a purge reinstall:

joey@c14n:~$ ls /etc/cups/
command.types cups-pdf.conf mime.types pstoraster.convs ssl
cupsd.conf interfaces ppd raw.convs
cupsd.conf.O mime.convs printers.conf raw.types
joey@c14n:~$

Revision history for this message
Joey Stanford (joey) wrote :

Further testing reveals another error when attempting to print:

I [14/Mar/2007:10:12:25 -0600] Job 8 queued on "DeskJet-6940" by "joey".
I [14/Mar/2007:10:12:25 -0600] Started filter /usr/lib/cups/filter/pstops (PID 10776) for job 8.
I [14/Mar/2007:10:12:25 -0600] Started filter /usr/lib/cups/filter/foomatic-rip (PID 10777) for job 8.
I [14/Mar/2007:10:12:25 -0600] Started backend /usr/lib/cups/backend/socket (PID 10778) for job 8.
E [14/Mar/2007:10:12:25 -0600] [Job 8] /stackunderflow in --exch--
E [14/Mar/2007:10:12:25 -0600] PID 10777 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!

I'll see if I can up the loglevel an get further details.

Revision history for this message
Joey Stanford (joey) wrote :

Further debug data:

D [14/Mar/2007:10:15:21 -0600] [Job 10] Process dying with "Possible error on renderer command line or PostScript error. Check options.", exit stat: 3
D [14/Mar/2007:10:15:21 -0600] [Job 10] error: Illegal seek (29)
D [14/Mar/2007:10:15:21 -0600] [Job 10] Possible error on renderer command line or PostScript error. Check options.
D [14/Mar/2007:10:15:21 -0600] [Job 10] Renderer process finished
D [14/Mar/2007:10:15:21 -0600] [Job 10] Killing process 11140 (KID3)
D [14/Mar/2007:10:15:21 -0600] [Job 10] Process dying with "Error closing renderer", exit stat: 3
D [14/Mar/2007:10:15:21 -0600] [Job 10] error: Bad file descriptor (9)
D [14/Mar/2007:10:15:21 -0600] [Job 10] Error closing renderer
E [14/Mar/2007:10:15:21 -0600] PID 11132 (/usr/lib/cups/filter/foomatic-rip) stopped with status 3!
D [14/Mar/2007:10:15:21 -0600] PID 11133 (/usr/lib/cups/backend/socket) exited with no errors.

Revision history for this message
Marty Pitt (martin-pitt) wrote : RE: [Bug 92274] /etc/cups/pdftops.conf doesn't exist

This bug shouldn't have been assigned to me....

I don't even use Ubuntu.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Joey Stanford
Sent: Thursday, 15 March 2007 3:08 AM
To: Martin Pitt
Subject: [Bug 92274] /etc/cups/pdftops.conf doesn't exist

Public bug reported:

Binary package hint: cupsys

When trying to print a PDF file under Edgy, the cups job errors with
this information:

E [14/Mar/2007:09:47:22 -0600] [Job 7] pdftops-options: -cfg
/etc/cups/pdftops.conf E [14/Mar/2007:09:47:23 -0600] [Job 7] /undefined
in --get-- E [14/Mar/2007:09:47:23 -0600] PID 8742
(/usr/lib/cups/filter/foomatic-rip) stopped with status 3!

** Affects: cupsys (Ubuntu)
     Importance: Undecided
     Assignee: Marty Pitt
         Status: Unconfirmed

--
/etc/cups/pdftops.conf doesn't exist
https://beta.launchpad.net/bugs/92274

Revision history for this message
Martin Pitt (pitti) wrote :

Till, do you have an idea about this? I don't have any problems with printing anything even without /etc/cups/pdftops.conf.

Changed in cupsys:
assignee: pitti → till-kamppeter
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

There is no problem with a missing /etc/cups/pdftops.conf. The current version of /usr/bin/pdftops works perfectly when called with

pdftops -cfg /etc/cups/pdftops.conf walking-map-portland-1.pdf

and not having /etc/cups/pdftops.conf. It simply ignores the missing config. Only problem can perhaps be that it uses the system's default config which is perhaps not the best for printing.

After running the above command I can display walking-map-portland-1.ps with "gv" without problems, so the tool works without /etc/cups/pdftops.conf.

The problem is that GhostScript exits with an error when converting the data to the printer's native language. Perhaps this can be avoided with a proper /etc/cups/pdftops.conf file. Helge Blischke, the author of the alternative pdftops CUPS filter (which we are using here) delivers one with his filter, it is only not delivered with our distribution.

I have attached the /etc/cups/pdftops.conf from Helge Blischke, please put it into your /etc/cups directory and try again. If it still does not work, try commenting out the fontDir line in the /etc/cups/pdftops.conf file.

Changed in cupsys:
importance: Undecided → Medium
status: Unconfirmed → Needs Info
Revision history for this message
Joey Stanford (joey) wrote :
Download full text (3.9 KiB)

Hi Till!

With the pdftops.conf file I no longer get the missing file error however the render error remains:

D [15/Mar/2007:08:26:24 -0600] [Job 11] Starting renderer
D [15/Mar/2007:08:26:24 -0600] [Job 11] JCL: <job data>
D [15/Mar/2007:08:26:24 -0600] [Job 11]
D [15/Mar/2007:08:26:24 -0600] [Job 11] renderer PID kid4=8043
D [15/Mar/2007:08:26:24 -0600] [Job 11] renderer command: gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="deskjet 5600" -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dDuplex=false -r300 -sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7 -dIjsUseOutputFD -sOutputFile=- -
D [15/Mar/2007:08:26:24 -0600] [Job 11] perl: warning: Setting locale failed.
D [15/Mar/2007:08:26:24 -0600] [Job 11] perl: warning: Please check that your locale settings:
D [15/Mar/2007:08:26:24 -0600] [Job 11] LANGUAGE = (unset),
D [15/Mar/2007:08:26:24 -0600] [Job 11] LC_ALL = (unset),
D [15/Mar/2007:08:26:24 -0600] [Job 11] LANG = "en_US"
D [15/Mar/2007:08:26:24 -0600] [Job 11] are supported and installed on your system.
D [15/Mar/2007:08:26:24 -0600] [Job 11] perl: warning: Falling back to the standard locale ("C").
D [15/Mar/2007:08:26:24 -0600] [Job 11] foomatic-gswrapper: gs '-sstdout=%stderr' '-dBATCH' '-dPARANOIDSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=deskjet 5600' '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' '-dDuplex=false' '-r300' '-sIjsParams=Quality:Quality=0,Quality:ColorMode=2,Quality:MediaType=0,Quality:PenSet=2,PS:MediaPosition=7' '-dIjsUseOutputFD' '-sOutputFile=%stdout' '-'
D [15/Mar/2007:08:26:24 -0600] [Job 11]
D [15/Mar/2007:08:26:24 -0600] [Job 11] Closing renderer
E [15/Mar/2007:08:26:24 -0600] [Job 11] /stackunderflow in --exch--
D [15/Mar/2007:08:26:24 -0600] [Job 11] Operand stack:
D [15/Mar/2007:08:26:24 -0600] [Job 11] _pdf_na
D [15/Mar/2007:08:26:24 -0600] [Job 11] Execution stack:
D [15/Mar/2007:08:26:24 -0600] [Job 11] %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-- --nostringval-- --nostringval--
D [15/Mar/2007:08:26:24 -0600] [Job 11] Dictionary stack:
D [15/Mar/2007:08:26:24 -0600] [Job 11] --dict:1130/1686(ro)(G)-- --dict:0/20(G)-- --dict:93/200(L)-- --dict:36/89(L)-- --dict:87/162(ro)(L)-- --dict:64/78(ro)(L)-- --dict:14/18(ro)(L)--
D [15/Mar/2007:08:26:24 -0600] [Job 11] Current allocation mode is local
D [15/Mar/2007:08:26:24 -0600] [Job 11] Last OS error: 2
D [15/Mar/2007:08:26:24 -0600] [Job 11] ESP Ghostscript 815.02: Unrecoverable error, exit code 1
D [15/Mar/2007:08:26:24 -0600] [Job 11] renderer return value: 1
D [15/Mar/2007:08:26:24 -0600] [Job 11] renderer received signal: 1
D [15/Mar/2007:08:26:24 -0600] [Job 11] KID3 exited with statu...

Read more...

Revision history for this message
Joey Stanford (joey) wrote :

ps. This does not change when the fontdir line is commented out.

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

So this one seems definitely not to be a bug of the pdftops filter but an upstream GhostScript problem. Please post the PDF file(s) which cause(s) this problem here, so that I can make a GhostScript upstream bug report.

Revision history for this message
Joey Stanford (joey) wrote :

Hi Till,

All PDFs caused the issue so it's not specific to any one in particular.

I've recently upgraded all of my machines to Feisty beta and the problem does not appear. Meaning, I can print PDFs in Feisty as expected.

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

OK, then I will close this bug as it seems that some GhostScript update fixed it.

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

Other bug subscribers

Remote bug watches

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