When the mupdf filter is used to print a PDF file, the log displays unsupported raster data.
Japhier opened this issue · 3 comments
Describe the bug
Scenario: Printing a pdf file
Filter used: pdftopdf --> mupdftaster --> rastertopwg
Error message: unsupported raster data.
Want to know if this is my cups profile problem or filter chain problem or pdf file problem?
ERROR_LOG:
D [17/Apr/2023:11:03:09 +0800] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [17/Apr/2023:11:03:09 +0800] [Job 8] page /tmp/00d50644918dd 1 colorDEBUG: Duplex = 0
D [17/Apr/2023:11:03:09 +0800] [Job 8] HWResolution = [ 600 600 ]
D [17/Apr/2023:11:03:09 +0800] [Job 8] ImagingBoundingBox = [ 0 0 0 0 ]
D [17/Apr/2023:11:03:09 +0800] [Job 8] Margins = [ 0 0 ]
D [17/Apr/2023:11:03:09 +0800] [Job 8] ManualFeed = 0
D [17/Apr/2023:11:03:09 +0800] [Job 8] MediaPosition = 0
D [17/Apr/2023:11:03:09 +0800] [Job 8] NumCopies = 0
D [17/Apr/2023:11:03:09 +0800] [Job 8] Orientation = 0
D [17/Apr/2023:11:03:09 +0800] [Job 8] PageSize = [ 594 840 ]
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsWidth = 4956
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsHeight = 7008
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsMediaType = 0
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsBitsPerColor = 8
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsBitsPerPixel = 24
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsBytesPerLine = 14868
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsColorOrder = 0
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsColorSpace = 19
D [17/Apr/2023:11:03:09 +0800] [Job 8] cupsCompression = 0
D [17/Apr/2023:11:03:09 +0800] [Job 8] PAGE: 1 0
D [17/Apr/2023:11:03:09 +0800] cupsdMarkDirty(----S)
D [17/Apr/2023:11:03:09 +0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [17/Apr/2023:11:03:09 +0800] cupsdMarkDirty(---J-)
D [17/Apr/2023:11:03:09 +0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [17/Apr/2023:11:03:09 +0800] [Job 8] In pixels: Width: 0 Height: 0 Left: 0 Right: 4294962340 Top: 4294960288 Bottom: 0
D [17/Apr/2023:11:03:09 +0800] [Notifier] state=3
E [17/Apr/2023:11:03:09 +0800] [Job 8] Unsupported raster data.
D [17/Apr/2023:11:03:09 +0800] cupsdMarkDirty(---J-)
D [17/Apr/2023:11:03:09 +0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [17/Apr/2023:11:03:09 +0800] [Job 8] Set job-printer-state-message to "Unsupported raster data.", current level=ERROR
D [17/Apr/2023:11:03:09 +0800] [Job 8] Bad bottom/left/top margin on page 1.
D [17/Apr/2023:11:03:09 +0800] cupsdMarkDirty(----S)
D [17/Apr/2023:11:03:09 +0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [17/Apr/2023:11:03:09 +0800] cupsdMarkDirty(----S)
D [17/Apr/2023:11:03:09 +0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [17/Apr/2023:11:03:09 +0800] [Notifier] state=3
D [17/Apr/2023:11:03:09 +0800] [Notifier] state=3
D [17/Apr/2023:11:03:09 +0800] [Notifier] state=3
D [17/Apr/2023:11:03:09 +0800] [Notifier] PrinterStateChanged
D [17/Apr/2023:11:03:09 +0800] [Job 8] error: cannot fwrite: Broken pipe
D [17/Apr/2023:11:03:09 +0800] [Job 8] PID 3409 (/usr/lib/cups/filter/rastertopwg) stopped with status 1.
D [17/Apr/2023:11:03:09 +0800] [Client 3] POST / HTTP/1.1
D [17/Apr/2023:11:03:09 +0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
Expected behavior
The hope is that the printing is successful.
System Information:
- OS and its version: [Ubuntu 22.04]
- CUPS version [ 2.4.2]
Hi,
based on the log it seems the mupdftoraster does not generate the correct data - please upload .txt file with debug logs from error_log for whole job, your file and PPD file.
I'll move this to cups-filters, where the filter is implemented.
Okay, thank you very much! I'll sort it out and provide the logs and source files later.
I wanted to test the mupdftoraster filter, so I delete cupsfilters-ghostscript.convs and cupsfilters-poppler.convs, leaving only cupsfilters-mupdf.convs. the log files, ppd files, and print files are as follows:
log_printFile_ppd.zip