Dymo LabelWriter 450 prints blank labels with custom PageSize (regression between 2.2.1-2.1 and 2.2.1.r28)

Aperta
#275 4 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
c, linux

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

  1. Print a label from gLabels to the LabelWriter 450.
  2. gLabels sends PageSize=Custom.116.22x252.28 (41 x 89 mm in points).
  3. 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.
Lingua principale
C
Stelle
20
Fork
89
Merge medio
13h 37m
PR unite (30g)
50

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenPrinting/libcupsfilters

Tutte le issue di OpenPrinting/libcupsfilters

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.