Summary: | net-print/cups fails with >=x11-libs/cairo-1.18.2: "cfFilterPDFToPDF: load_file failed: temp file: unable to find trailer dictionary while recovering damaged file" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markus Walter <gentoo> |
Component: | Current packages | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo, nathan.zachary, x11 |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://gitlab.freedesktop.org/cairo/cairo/-/issues/870 https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/595 https://gitlab.archlinux.org/archlinux/packaging/packages/cairo/-/issues/2 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info |
Description
Markus Walter
2024-09-14 08:40:49 UTC
Created attachment 902966 [details]
emerge --info
Relevant output from cups error_log: D [14/Sep/2024:10:16:46 +0200] [Job 345] cfFilterChain: ghostscript (PID 19564) started. D [14/Sep/2024:10:16:46 +0200] [Job 345] Set job-printer-state-message to "cfFilterChain: ghostscript (PID 19564) started.", current level=INFO D [14/Sep/2024:10:16:46 +0200] [Job 345] WARNING: cfFilterGhostscript: Output format: CUPS Rastertemp file: file is damaged D [14/Sep/2024:10:16:46 +0200] [Job 345] Set job-printer-state-message to "temp file: can\'t find startxref", current level=WARN D [14/Sep/2024:10:16:46 +0200] [Job 345] Set job-printer-state-message to "temp file: Attempting to reconstruct cross-reference table", current level=WARN D [14/Sep/2024:10:16:46 +0200] [Job 345] cfFilterGhostscript: Copying input to temp file \"/var/spool/cups/tmp/04c6c66f06cc6\" D [14/Sep/2024:10:16:46 +0200] [Job 345] Set job-printer-state-message to "temp file (object 12 0, offset 14742): EOF after endobj", current level=WARN D [14/Sep/2024:10:16:46 +0200] [Job 345] Set job-printer-state-message to "temp file (object 12 0, offset 14596): stream dictionary lacks /Length key", current level=WARN D [14/Sep/2024:10:16:46 +0200] [Job 345] Set job-printer-state-message to "temp file (object 12 0, offset 14686): attempting to recover stream length", current level=WARN D [14/Sep/2024:10:16:46 +0200] [Job 345] Set job-printer-state-message to "temp file (object 12 0, offset 14686): recovered stream length: 17", current level=WARN D [14/Sep/2024:10:16:46 +0200] [Job 345] Set job-printer-state-message to "cfFilterPDFToPDF: load_file failed: temp file: unable to find trailer dictionary while recovering damaged file", current level=ERROR D [14/Sep/2024:10:16:46 +0200] [Job 345] cfFilterChain: pdftopdf completed with status 1. D [14/Sep/2024:10:16:46 +0200] [Job 345] cfFilterGhostscript: Input is empty, outputting empty file. I have also hit this bug. Downgrading from =x11-libs/cairo-1.18.2 back to =x11-libs/cairo-1.18.0 and then restarting cupsd fixes the problem. I have tested printing from Evince. Please try https://gitlab.freedesktop.org/cairo/cairo/-/commit/f19e2fe080ddcfce93c8234a919fd882f3d63362 applied to cairo. (In reply to Sam James from comment #4) > Please try > https://gitlab.freedesktop.org/cairo/cairo/-/commit/ > f19e2fe080ddcfce93c8234a919fd882f3d63362 applied to cairo. Hello Sam, Applying this patch to =x11-libs/cairo-1.18.2 and then restarting cupsd fixes the problem for me. Thank you for your prompt reply. Cheers, Nathan Zachary Thanks! I'll add it shortly. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1013e397bc7000b42a9c2a185b6a1d92e4509d1d commit 1013e397bc7000b42a9c2a185b6a1d92e4509d1d Author: Sam James <sam@gentoo.org> AuthorDate: 2024-09-18 03:44:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-09-18 03:44:53 +0000 x11-libs/cairo: fix cups compat Closes: https://bugs.gentoo.org/939607 Signed-off-by: Sam James <sam@gentoo.org> x11-libs/cairo/cairo-1.18.2-r1.ebuild | 96 ++++++++++++++++++++++++++++ x11-libs/cairo/files/cairo-1.18.2-cups.patch | 32 ++++++++++ 2 files changed, 128 insertions(+) |