PDF file completely silently fails to print, computer claims it printed, printer shows no trace of it

Bug #1967816 reported by Jonathan Kamens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cups-filters (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I have an HP LaserJet M551dn printer which usually works just fine with CUPS. Tonight, however, I discovered that I was completely unable to print one particular PDF file (unfortunately I can't provide you with the file because it's a scan of a tax form with PII on it). CUPS claimed that it printed the file and there are no errors in the log. On the other side, the printer doesn't show any trace of the file haven't been sent to it. The print job isn't in the job log, and at no point while CUPS claims it's printing does the printer make any noise or any of its lights blink as they usually do when a job is being sent to it.

I don't know how to debug this further. I'm attaching the section of /var/log/cups/error_log from the attempt to print the file.

This is reproducible every time with this particular file, including immediately after updating to all current Jammy packages and rebooting.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: cups 2.4.1op1-1ubuntu4
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
Uname: Linux 5.15.0-23-generic x86_64
ApportVersion: 2.20.11-0ubuntu80
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 4 20:51:23 2022
InstallationDate: Installed on 2019-01-02 (1188 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
Lpstat:
 device for duplex: socket://m551dn.kamens.brookline.ma.us:9100
 device for HP_LaserJet_500_color_M551_1637DA: implicitclass://HP_LaserJet_500_color_M551_1637DA/
 device for simplex: socket://m551dn.kamens.brookline.ma.us:9100
MachineType: Acer Predator G6-710
Papersize: letter
PpdFiles:
 Error: command ['fgrep', '-H', '*NickName', '/etc/cups/ppd/simplex.ppd', '/etc/cups/ppd/duplex.ppd', '/etc/cups/ppd/HP_LaserJet_500_color_M551_1637DA.ppd'] failed with exit code 2: grep: /etc/cups/ppd/simplex.ppd: Permission denied
 grep: /etc/cups/ppd/duplex.ppd: Permission denied
 grep: /etc/cups/ppd/HP_LaserJet_500_color_M551_1637DA.ppd: Permission denied
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-23-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: cups
UpgradeStatus: Upgraded to jammy on 2022-02-20 (43 days ago)
dmi.bios.date: 05/18/2016
dmi.bios.release: 5.11
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: R01-A4
dmi.board.name: Predator G6-710
dmi.board.vendor: Acer
dmi.chassis.type: 3
dmi.chassis.vendor: Acer
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrR01-A4:bd05/18/2016:br5.11:svnAcer:pnPredatorG6-710:pvr:rvnAcer:rnPredatorG6-710:rvr:cvnAcer:ct3:cvr:sku:
dmi.product.family: Acer Desktop
dmi.product.name: Predator G6-710
dmi.sys.vendor: Acer

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

Could you print your file from the command line, using

lp -d duplex file.pdf
lp -d duplex -o pdftops-renderer=gs file.pdf

file.pdf is the file you mention which does not print on your printer.

Please try the 2 command. Tell us which of them prints which of them not.

Your log shows that the job gets correctly filtered and sent off to the printer. The printer might have a bug in its PostScript interpreter making it not print some files. The "-o pdftops-renderer=gs" option of the second command lets another filter for converting your PDF file into PostScript being used. The resulting different PostScript file could perhaps not trigger the bug in the printer.

You can make this setting default via

lpadmin -p duplex -o pdftops-renderer-default=gs

and remove the default setting via

lpadmin -p duplex -R pdftops-renderer-default

Please tell us your experience.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Jonathan Kamens (jik) wrote :

The file prints with pdftops-renderer=gs.

I can fix this for me personally, but is there any way to adjust the default CUPS configuration for the type of printer that I have to make this setting the default for others with the same printer, so they don't also run into this issue?

Changed in cups (Ubuntu):
status: Incomplete → New
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
affects: cups (Ubuntu) → cups-filters (Ubuntu)
Changed in cups-filters (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Backported to upstream 1.x branch in

https://github.com/OpenPrinting/cups-filters/commit/2134daad68

Will be included in cups-filters 1.28.15 in Ubuntu 22.04 (Jammy).

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cups-filters - 1.28.15-0ubuntu1

---------------
cups-filters (1.28.15-0ubuntu1) jammy; urgency=medium

  * New upstream bug fix release.
    - In pdftops identify old LaserJets more precisely for working around
      PostScript interpreter bugs, older printers need Poppler, newer models
      need Ghostscript (LP: #1967816).

 -- Till Kamppeter <email address hidden> Mon, 11 Apr 2022 22:19:21 +0200

Changed in cups-filters (Ubuntu):
status: In Progress → 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.