after upgrade to bionic, printing fails without explanation / logs / debuggability
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtk+3.0 (Ubuntu) |
Fix Released
|
High
|
Till Kamppeter | ||
Bionic |
Fix Released
|
High
|
Till Kamppeter | ||
Cosmic |
Won't Fix
|
High
|
Till Kamppeter |
Bug Description
[Impact]
The problem occurs when the printer's driver package is updated and with this the PPD is replaced and one of the default settings of the queue is not available any more in the new PPD file. Then the setting is prefixed with "Custom." and with this the jobs fail.
See comment #15 for more info.
[Test Case]
- Create a print queue with a PPD.
- evince an arbitrary PDF file
- Click the print icon
- In the print dialog choose the newly created queue and choose some uncommon paper size (not custom). Click "Print".
- Check /var/log/
- Close evince.
- Stop CUPS, edit the PPD file (in /etc/cups/ppd/) removing the paper size you have selected for your job in the PageSize, PageRegion, PaperDimension, and ImageableArea lines.
- Start CUPS.
- Open the same PDF file again with evince, click Print and then select "Print" in the print dialog without changing anything.
- The job fails, in /var/log/
With the fixed package installed the job will print.
[Regression Potential]
The change applies only to saved settings of the print dialog not matching with any of the settings available in the PPD file. In rare cases the fix could fail by mis-understanding the setting and this way not being effective. For options which do not support setting custom values (the vast majority) the patch should always prevent a job failure though.
[Other Info]
Complete info about the bug and the fix in comment #15,
Original bug description:
I am unable to print to my network-attached printer after upgrade to bionic. ps shows:
lp 26047 0.0 0.0 91668 5756 ? S 15:06 0:00 \_ HP-ENVY-4500-new 473 vorlon USCIS Form I-9 1 print-content-
lp 26050 0.1 0.0 0 0 ? Z 15:06 0:00 | \_ [gs] <defunct>
lp 26048 0.0 0.0 79908 3836 ? S 15:06 0:00 \_ HP-ENVY-4500-new 473 vorlon USCIS Form I-9 1 print-content-
root 26049 0.0 0.0 84388 6192 ? S 15:06 0:00 \_ ipp://HP645106E
Note the un-reaped gs process.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cups 2.2.7-1ubuntu2
ProcVersionSign
Uname: Linux 4.15.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu4
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Apr 12 15:07:49 2018
InstallationDate: Installed on 2010-09-24 (2757 days ago)
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
MachineType: LENOVO 2306CTO
Papersize: letter
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: cups
UpgradeStatus: Upgraded to bionic on 2018-03-21 (21 days ago)
dmi.bios.date: 10/25/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: G2ET97WW (2.57 )
dmi.board.
dmi.board.name: 2306CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Defined
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad X230
dmi.product.name: 2306CTO
dmi.product.
dmi.sys.vendor: LENOVO
modified.
Changed in cups (Ubuntu): | |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
Changed in gtk+3.0 (Ubuntu): | |
status: | New → Triaged |
tags: | added: patch |
Changed in cups-filters (Ubuntu Bionic): | |
status: | New → Invalid |
Changed in cups-filters (Ubuntu Cosmic): | |
status: | New → Invalid |
Changed in gtk+3.0 (Ubuntu): | |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
Changed in gtk+3.0 (Ubuntu Bionic): | |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
Changed in gtk+3.0 (Ubuntu Cosmic): | |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
description: | updated |
Changed in gtk+3.0 (Ubuntu): | |
status: | Triaged → In Progress |
Changed in gtk+3.0 (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in gtk+3.0 (Ubuntu Cosmic): | |
status: | New → In Progress |
no longer affects: | cups-filters (Ubuntu Bionic) |
no longer affects: | cups-filters (Ubuntu Cosmic) |
Changed in gtk+3.0 (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in gtk+3.0 (Ubuntu Cosmic): | |
importance: | Undecided → High |
no longer affects: | cups-filters (Ubuntu) |
tags: | added: patch-forwarded-upstream |
tags: |
added: patch-accepted-upstream removed: patch-forwarded-upstream |
The particular printer instance showing this failure is one that I've set up specifically in the course of trying to debug this (hence, '-new' in the queue name), but the problem exists also with my previously-existing queue.