Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing failed with error message 'Filter failed' #6239

Open
zyzcss opened this issue Dec 20, 2024 · 0 comments
Open

Printing failed with error message 'Filter failed' #6239

zyzcss opened this issue Dec 20, 2024 · 0 comments

Comments

@zyzcss
Copy link

zyzcss commented Dec 20, 2024

Firstly, I connected my printer to the computer via USB, downloaded the printer driver (HPRT), and then http://localhost:631/ Printing the test page was ultimately successful.
environment
Ubuntu
cups 2.2.7
ghostscript 9.26

Then I connected the printer to the Raspberry Pi, following the same procedure as above. First, I downloaded the printer driver (HPRT), and then http://localhost:631/ Print the test page and it says' Filter failed '. I tried upgrading Ghostscript from 9.53.3 to 9.56.0, but still encountered an error.
Selection_023

When I switched the driver to 'Generic IPP Everywhere Printer', I found that the print command could be successfully sent, but the printer did not respond.
Selection_024

environment
Debian
cups 2.3.3
ghostscript 9.56.0/9.53.3

How can I make my printer work properly on Raspberry Pi

Error Log:

D [20/Dec/2024:17:57:11 +0800] [Job 98] Device protocol: 2
D [20/Dec/2024:17:57:11 +0800] [Job 98] 正在向打印机发送数据。
D [20/Dec/2024:17:57:11 +0800] [Job 98] Sent 0 bytes...
D [20/Dec/2024:17:57:11 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:11 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:11 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:11 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] JobProgress
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] PrinterStateChanged
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Job 98] Start rendering...
D [20/Dec/2024:17:57:11 +0800] [Job 98] Processing page 1...
D [20/Dec/2024:17:57:11 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:11 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:11 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:11 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] JobProgress
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] PrinterStateChanged
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:11 +0800] [Notifier] state=3
E [20/Dec/2024:17:57:12 +0800] [Job 98] Unable to open raster stream - : Broken pipe
D [20/Dec/2024:17:57:12 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:12 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:12 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:12 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
I [20/Dec/2024:17:57:12 +0800] Expiring subscriptions...
D [20/Dec/2024:17:57:12 +0800] [Job 98] Error: /ioerror in --showpage--
D [20/Dec/2024:17:57:12 +0800] [Job 98] Operand stack:
D [20/Dec/2024:17:57:12 +0800] [Job 98] true   (/var/spool/cups/tmp/gs_V4921y)   --nostringval--   1   true
D [20/Dec/2024:17:57:12 +0800] [Job 98] Execution stack:
D [20/Dec/2024:17:57:12 +0800] [Job 98] %interp_exit   .runexec2   --nostringval--   showpage   --nostringval--   2   %stopped_push   --nostringval--   showpage   showpage   false   1   %stopped_push   1990   2   3   %oparray_pop   1989   2   3   %oparray_pop   1977   2   3   %oparray_pop   showpage   1978   4   3   %oparray_pop   showpage   showpage   2   1   1   showpage   %for_pos_int_continue   1981   4   7   %oparray_pop   showpage   showpage   1840   3   9   %oparray_pop   showpage   showpage
D [20/Dec/2024:17:57:12 +0800] [Job 98] Dictionary stack:
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] JobProgress
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] PrinterStateChanged
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Job 98] --dict:741/1123(ro)(G)--   --dict:1/20(G)--   --dict:80/200(L)--   --dict:80/200(L)--   --dict:133/256(ro)(G)--   --dict:320/325(ro)(G)--   --dict:33/64(L)--   --dict:6/9(L)--   --dict:7/20(L)--
D [20/Dec/2024:17:57:12 +0800] [Job 98] Current allocation mode is local
D [20/Dec/2024:17:57:12 +0800] [Job 98] Last OS error: Broken pipe
D [20/Dec/2024:17:57:12 +0800] [Job 98] GPL Ghostscript 9.53.3: Unrecoverable error, exit code 1
D [20/Dec/2024:17:57:12 +0800] [Job 98] Rendering completed
D [20/Dec/2024:17:57:12 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:12 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:12 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:12 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] JobProgress
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] PrinterStateChanged
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Notifier] state=3
D [20/Dec/2024:17:57:12 +0800] [Job 98] PID 4349 (/usr/lib/cups/filter/gstoraster) stopped with status 1.
D [20/Dec/2024:17:57:12 +0800] [Job 98] Waiting for read thread to exit...
D [20/Dec/2024:17:57:12 +0800] [Job 98] PID 4351 (/usr/lib/cups/backend/usb) exited with no errors.
D [20/Dec/2024:17:57:12 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:12 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
E [20/Dec/2024:17:57:12 +0800] [Job 98] Job stopped due to filter errors; please consult the /var/log/cups/error_log file for details.
D [20/Dec/2024:17:57:12 +0800] cupsdMarkDirty(---J-)
D [20/Dec/2024:17:57:12 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:12 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:12 +0800] cupsdMarkDirty(----S)
D [20/Dec/2024:17:57:12 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [20/Dec/2024:17:57:12 +0800] [Job 98] The following messages were recorded from 17时57分11秒 to 17时57分11秒
D [20/Dec/2024:17:57:12 +0800] [Job 98] Printer found with device ID: MANUFACTURER:HPRT;COMMAND SET:ESC/POS;MODEL:Q5;COMMENT:Impact Printer;ACTIVE COMMAND:ESC/POS; Device URI: usb://HPRT/Q5?serial=Q5000023280291
D [20/Dec/2024:17:57:12 +0800] [Job 98] End of messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant