cfFilterPDFToPDF fails on single-copy HP USB queue: "tempfilename wasn't created"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start by reproducing the one-copy PDF or CUPS test-page job with libcupsfilters 2.2.1 and compare its logs with the successful 2.1.1-4.4 run. Trace the pdftopdf filter path around “tempfilename wasn't created” and the empty input passed to cfFilterGhostscript. Done means the same HP USB queue completes a one-copy job and records one page without the failure.
Written by the indexing model from the issue text.
Description
Summary
Printing a one-copy PDF or CUPS test page to an HP Color LaserJet MFP M282/M285 fails in pdftopdf with tempfilename wasn't created. The job reaches the CUPS filter chain, but no page is produced.
Downgrading libcupsfilters from 2.2.1 to 2.1.1-4.4 made a subsequent one-page test job complete successfully in CUPS. This appears separate from #227/#228, which concern losing requested copies when printing multiple copies.
System
- OS: CachyOS, x86_64
- CUPS: 2.4.19
- cups-filters: 2.0.1-3.1
- libcupsfilters: 2.2.1.r23.gdee3b387-1.1 (CachyOS package)
- libppd: 2.1.1-2.1
- Ghostscript: 10.08.0
- HPLIP: 3.26.6-1.1
- Printer: HP Color LaserJet MFP M282/M285, connected over USB
CUPS queue device URI uses the hp:/usb/ backend. The failing jobs requested one copy.
Steps to reproduce
- Configure the HP USB printer as a CUPS queue.
- Submit a PDF or the CUPS test page with copies set to 1.
- Check
/var/log/cups/error_log.
Actual result
The job fails during PDF conversion. Representative log messages:
[Job 35] tempfilename wasn't created
[Job 35] pdftopdf filter function failed.
[Job 35] PID ... (/usr/lib/cups/filter/pdftopdf) stopped with status 1.
[Job 35] cfFilterGhostscript: Input is empty, outputting empty file.
The hp backend exits without an error, but the job produces no page.
Expected result
The filter chain completes and sends the page to the printer.
Comparison after downgrade
I downgraded only libcupsfilters to 2.1.1-4.4 and submitted /usr/share/cups/data/testprint to the same queue. CUPS recorded the job as completed, and page_log recorded one page. The previous 2.2.1 jobs failed with the pdftopdf error above.
Could this be a regression in the 2.2.1 PDF-to-PDF filter path? I can provide a sanitized debug log and queue PPD if useful.
- Dominant language
- C
- Stars
- 20
- Forks
- 89
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 50
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OpenPrinting/libcupsfilters
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OpenPrinting/libcupsfilters#257 · 22 comments ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
OpenPrinting/libcupsfilters#222 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OpenPrinting/libcupsfilters#174 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
OpenPrinting/libcupsfilters#355 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
OpenPrinting/libcupsfilters#339 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
All issues in OpenPrinting/libcupsfilters
Similar issues
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or laterPossibly taken @colinhacks claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tursodatabase/libsql#2333 ·
Maintainers usually reply within 11 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenPrinting/cups#1826 ·
Maintainers usually reply within 1 day
-
Backport to 3.0 advertises a suffix that does not existPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
389ds/389-ds-base#8152 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RetroAchievements/rcheevos#580 · 1 comment ·
Maintainers usually reply within 5 days