Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 937789

Summary: net-print/cups-filters-2.0 breaks printing with HP Color Laserjet PCL 6 driver
Product: Gentoo Linux Reporter: Harris Landgarten <harrisl>
Component: Current packagesAssignee: Printing Team <printing>
Status: UNCONFIRMED ---    
Severity: normal CC: eschwartz, harrisl, oschoett
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/apple/cups/issues/6200
Whiteboard:
Package list:
Runtime testing required: ---

Description Harris Landgarten 2024-08-11 23:02:00 UTC
Every print attempt since the upgrade fails with "gstopxl filter failed."
Comment 1 Harris Landgarten 2024-08-12 11:16:15 UTC
More info: This is from the cups error log:

D [11/Aug/2024:18:31:08 -0400] [Job 296] cfFilterGhostscript: Ghostscript using Any-Part-of-Pixel method to fill paths.
D [11/Aug/2024:18:31:08 -0400] [Job 296] cfFilterGhostscript: Ghostscript command line: gs -dQUIET -dSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dUsePDFX3Profile -sstdout=%stderr -sOutputFile=%stdout -dDuplex -r600x600 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -sDEVICE=pxlmono -scupsBackSideOrientation=Normal -dcupsManualCopies -I/usr/share/cups/fonts -sOutputICCProfile=srgb.icc -c \'<</.HWMargins[11.990551 11.990551 11.990540 11.990540] /Margins[0 0]>>setpagedevice\' -f -_
D [11/Aug/2024:18:31:08 -0400] [Job 296] cfFilterGhostscript: Started Ghostscript (PID 142918)
D [11/Aug/2024:18:31:08 -0400] [Job 296] cfFilterGhostscript: Started logging (PID 142919)
D [11/Aug/2024:18:31:08 -0400] [Job 296] hrDeviceDesc=\"HP Color LaserJet M553\"
D [11/Aug/2024:18:31:08 -0400] [Job 296] prtMarkerColorantValue.1.1 = \"black\"
D [11/Aug/2024:18:31:08 -0400] [Job 296] cfFilterGhostscript: Unrecoverable error: undefined in .putdevicepropsOperand stack:
D [11/Aug/2024:18:31:08 -0400] [Job 296] cfFilterGhostscript:     .putdeviceprops  --nostringval--  unknownerror
D [11/Aug/2024:18:31:08 -0400] [Job 296] prtMarkerColorantValue.1.2 = \"cyan\"
D [11/Aug/2024:18:31:08 -0400] [Job 296] Set job-printer-state-message to "cfFilterGhostscript: write failed: Broken pipe", current level=ERROR
D [11/Aug/2024:18:31:08 -0400] [Job 296] PID 142912 (/usr/libexec/cups/filter/gstopxl) stopped with status 1.
Comment 2 Oliver Schoett 2024-11-01 06:34:10 UTC
Here is a PDF document that reliably triggers this bug:

https://www.rki.de/DE/Content/Infekt/EpidBull/Archiv/2024/Ausgaben/02_24.pdf?__blob=publicationFile

It is from a German public web site.

Trying to print just page 3 from the document using GNOME desktop and evince creates the following error in the CUPS jobs administration:

Status
angehalten 
"cfFilterGhostscript: write failed: Broken pipe"

("angehalten" is German for "stopped")

My GNOME desktop enviroment is stable, updated today (but the bug has been present for at least a week, and I remember seeing it several weeks ago)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-01 08:37:14 UTC
Could you both share the output of:
emerge -pvO net-print/cups-meta net-print/cups net-print/cups-filters net-print/libcupsfilters app-text/ghostscript-gpl?

Thanks.
Comment 4 Oliver Schoett 2024-11-01 08:41:02 UTC
The problem disappears (the page prints) when I switch from grayscale to color printing (in the GNOME printing dialog, tab "Color").

Unfortunately, for my printer HP_ColorLaserJet_MFP_M278-M281 I bought a high capacity B+W toner cartridge, but smaller colour toner cartridges (cyan/magenta/yellow) that are significantly more expensive per page.  So I would like for my printer to work in grayscale mode also (the color in the test document I referenced seems to be mostly decorative and not to carry significant information).
Comment 5 Oliver Schoett 2024-11-01 08:44:18 UTC
As requested, the output of the "emerge" command given above:

# emerge -pvO net-print/cups-meta net-print/cups net-print/cups-filters net-print/libcupsfilters app-text/ghostscript-gpl

These are the packages that would be merged, in order:

[ebuild   R    ] net-print/cups-meta-1::gentoo  USE="browsed foomatic pdf poppler postscript -zeroconf" 0 KiB
[ebuild   R    ] net-print/cups-2.4.11::gentoo  USE="X acl dbus pam usb -debug -kerberos -openssl (-selinux) -static-libs -systemd -test -xinetd -zeroconf" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] net-print/cups-filters-2.0.1::gentoo  USE="foomatic" 0 KiB
[ebuild   R    ] net-print/libcupsfilters-2.1.0::gentoo  USE="dbus exif jpeg pdf png poppler postscript tiff -test" 0 KiB
[ebuild   R    ] app-text/ghostscript-gpl-10.03.1:0/10.03::gentoo  USE="X cups dbus gtk (unicode) -static-libs" L10N="de (-ja) -ko -zh-CN -zh-TW" 0 KiB

Total: 5 packages (5 reinstalls), Size of downloads: 0 KiB
Comment 6 Harris Landgarten 2024-11-01 12:28:35 UTC
sudo emerge -pvO net-print/cups-meta net-print/cups net-print/cups-filters net-print/libcupsfilters app-text/ghostscript-gpl

These are the packages that would be merged, in order:

[ebuild   R    ] net-print/cups-meta-1::gentoo  USE="browsed foomatic pdf poppler postscript -zeroconf" 0 KiB
[ebuild   R    ] net-print/cups-2.4.11::gentoo  USE="X acl dbus pam systemd usb -debug -kerberos -openssl (-selinux) -static-libs -test -xinetd -zeroconf" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild   R    ] net-print/cups-filters-2.0.1::gentoo  USE="foomatic" 0 KiB
[ebuild   R    ] net-print/libcupsfilters-2.1.0::gentoo  USE="dbus exif jpeg pdf png poppler postscript tiff -test" 0 KiB
[ebuild   R    ] app-text/ghostscript-gpl-10.03.1:0/10.03::gentoo  USE="X cups dbus gtk (unicode) -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB
Comment 7 Harris Landgarten 2024-11-01 12:29:27 UTC
note: I worked around this issue by installing hplip which has a driver that works