Dymo LabelWriter 450 prints blank labels with custom PageSize (regression between 2.2.1-2.1 and 2.2.1.r28)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- c, linux
- Domain
- operating-systems
Research direction
Start from the Ghostscript filter in libcupsfilters (the code behind cfFilterGhostscript, see the -dDEVICEWIDTHPOINTS=117 -dDEVICEHEIGHTPOINTS=252 -scupsPageSizeName=41.32x88.9mm line in the log) and trace how a PageSize=Custom.WxH option is parsed and turned into device options versus a named media. Compare the handling of the .HWMargins/Margins setpagedevice snippet between 2.2.1-2.1 and r28, using git log/git bisect across those tags since r23 was not tested. Done means a custom-size job produces non-blank output while lp -o media=w118h252 still works, verified against the Dymo raster2dymolw path described in the issue.
Written by the indexing model from the issue text.
Description
Summary
A Dymo LabelWriter 450 prints blank labels when the job requests a custom
page size, using the old Dymo CUPS driver (dymo-cups-drivers 1.4.0.5,
filter raster2dymolw). The same job with the named size prints correctly.
Downgrading libcupsfilters fixes it.
Environment
❯ pacman -Q libcupsfilters cups cups-filters ghostscript dymo-cups-drivers glabels
-libcupsfilters 2.2.1-2.1
-cups 2:2.4.20-1
-cups-filters 2.0.1-3.1
-ghostscript 10.08.0-1.1
-dymo-cups-drivers 1.4.0.5-5.1
-glabels 3.4.1-14.1
Steps to reproduce
- Print a label from gLabels to the LabelWriter 450.
- gLabels sends PageSize=Custom.116.22x252.28 (41 x 89 mm in points).
- Labels feed but come out blank.
Working comparison
Printing the same content as a PDF with the named size prints correctly:
lp -d DYMO-LabelWriter-450 -o media=w118h252 output.pdf
Printing with the custom size prints blank:
lp -d DYMO-LabelWriter-450 -o PageSize=Custom.116.22x252.28 output.pdf
Relevant debug log (Job 223)
PageSize=Custom.116.22x252.28 number-up=1 Resolution=300dpi
DymoPrintDensity=Normal DymoHalftoning=ErrorDiffusion DymoPrintQuality=Text
cfFilterGhostscript: gs ... -r300x300 -dDEVICEWIDTHPOINTS=117
-dDEVICEHEIGHTPOINTS=252 ... -scupsPageSizeName=41.32x88.9mm
-c '<</.HWMargins[4.081890 4.308661 2.891342 16.554337] /Margins[0 0]>>setpagedevice'
Notes
- The setup worked for years until a recent update.
- I downgraded libcupsfilters to 2.2.1-2.1 and gLabels printed correctly again.
- I have not tested the versions between 2.2.1-2.1 and r28 (including r23).
- I'm not sure whether the fault is in the filter chain or in how the old
Dymo driver handles the page it receives. Happy to test patches.
- 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