PDF workflow flawed, crashes printers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghostscript (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Lucid |
Won't Fix
|
High
|
Unassigned |
Bug Description
Binary package hint: cups
Under Ubuntu Lucid, the new PDF workflow in CUPS poses various problems for various printers: jobs will either not print (and may crash the printer) or print "very slowly". These are reports from various customers.
We have seen a bunch of Ricoh printers fail (killing the user interface of the printer, a hard reset is necessary to be able to use the printer again); notably a Ricoh Aficio AP4510 PS that crashes; and a Ricoh1224c that sometimes does not print; a Panasonic printer, DP-C265 (printing will sometimes suddenly reset the printer); but also other customers complain about not being able to print anymore, on various brands of printers (we've seen Brother and HP)
We heavily suspect the new PDF workflow in CUPS, as the following workaround works:
change /usr/share/
application/pdf application/
application/
This, essentially, makes the workflow use Postscript again when either PDF or Postscript is presented.
Unfortunately, a crashing printing interface does not normally tell why it is crashing, so I suspect this bug to be quite hard to dig further into. Somewhere between pstopdf, pdftopdf and cpdftocps, something goes wrong. It may even be the file size (but I couldn't find any size information in the ipp backend log messages that Cups sends out with debug-logging enabled).
There are many bugs that may be related to this: bug #655422 (Sending pdf and ps files to a printer routinely fails), Bug #665978 (Slow Printing), Bug #667102 (Printing errors after upgrade).
Changed in cups (Ubuntu Lucid): | |
status: | New → Incomplete |
importance: | Undecided → High |
Your suggestion of modifiying the cost factors of the CUPS filters we have already applied in Maverick. Our implementation is a little different, we have only set
application/ postscript application/ vnd.cups- postscript 65 pstops
so that for a PostScript printer it is avoided to turn incoming PostScript into PDF and back into PostScript. If the incoming data is already PDF, there is not much difference whether one passes it through pdftopdf and then through pdftops or first through pdftops and then through pstops. The change especially eliminates PostScript to be turned to PDF via the (Ghostscript-based) pstopdf filter. I can issue an SRU (Stable Release Update) for Lucid to apply this change.
The main problem is that applications deliver ineffectively made output files which blow up a lot when converting them, ending up with a huge file sent to the printer and the printer simply runs out of memory.
See also bug 668800 describing a possible cause for slow printing and a suggested solution for Natty.
Maverick does not only have the cost factor change for the pstops filter but also several printing improvements in the code of the filters. So if you do not require to stay on LTS, you could try to use Maverick. If you want to stay on LTS, please try also whether only setting
application/ postscript application/ vnd.cups- postscript 65 pstops
in /usr/share/ cups/mime/ mime.convs already solves your problem. Please tell whether this works or only using
application/pdf application/ vnd.cups- postscript 43 pdftops
in addition remedies the problem, so that we can make an appropriate SRU. Also try a Maverick live CD only to see whether Maverick has your problem solved without any additional changes.