OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
1.05k stars 187 forks source link

Kyocera FS1041 won't print; error: filter failed #966

Closed AddaxSoft closed 1 month ago

AddaxSoft commented 4 months ago

Before you write the report Read the REPORTING_ISSUES.md file in the main repository and prepare data mentioned there which looks relevant to you issue.

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Print anything including test page

System Information:

Additional context I even found the .ppd and instaleld it the linux host but still getting the same error. here are some syslogs:

D [28/May/2024:22:28:11 +0200] [Job 8] envp[0]=\"CUPS_CACHEDIR=/var/cache/cups\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[1]=\"CUPS_DATADIR=/usr/share/cups\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[2]=\"CUPS_DOCROOT=/usr/share/cups/doc-root\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[3]=\"CUPS_REQUESTROOT=/var/spool/cups\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[4]=\"CUPS_SERVERBIN=/usr/lib/cups\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[5]=\"CUPS_SERVERROOT=/etc/cups\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[6]=\"CUPS_STATEDIR=/run/cups\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[7]=\"HOME=/var/spool/cups/tmp\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[8]=\"PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[9]=\"SERVER_ADMIN=root@cups-server\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[10]=\"SOFTWARE=CUPS/2.4.2\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[11]=\"TMPDIR=/var/spool/cups/tmp\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[12]=\"USER=root\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[13]=\"CUPS_MAX_MESSAGE=2047\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[14]=\"CUPS_SERVER=/run/cups/cups.sock\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[15]=\"CUPS_ENCRYPTION=IfRequested\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[16]=\"IPP_PORT=631\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[17]=\"CHARSET=utf-8\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[18]=\"LANG=en_GB.UTF-8\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[19]=\"PPD=/etc/cups/ppd/Kyocera_FS-1041.ppd\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[20]=\"CONTENT_TYPE=application/vnd.cups-pdf-banner\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[21]=\"DEVICE_URI=usb://Kyocera/FS-1041?serial=R6M9407534\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[22]=\"PRINTER_INFO=Kyocera FS-1041\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[23]=\"PRINTER_LOCATION=\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[24]=\"PRINTER=Kyocera_FS-1041\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[25]=\"PRINTER_STATE_REASONS=none\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[26]=\"CUPS_FILETYPE=document\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[27]=\"FINAL_CONTENT_TYPE=application/vnd.cups-raster\"
D [28/May/2024:22:28:11 +0200] [Job 8] envp[28]=\"AUTH_INFO_REQUIRED=none\"
D [28/May/2024:22:28:11 +0200] [Job 8] Waiting for read thread to exit...
D [28/May/2024:22:28:11 +0200] [Job 8] PID 2930 (/usr/lib/cups/backend/usb) exited with no errors.
D [28/May/2024:22:28:11 +0200] [Job 8] Start rendering...
D [28/May/2024:22:28:11 +0200] [Job 8] Processing page 1...
D [28/May/2024:22:28:11 +0200] [Job 8] **** Error: Page drawing error occurred.
D [28/May/2024:22:28:11 +0200] [Job 8] Could not draw this page at all, page will be missing in the output.
D [28/May/2024:22:28:11 +0200] [Job 8] Rendering completed
D [28/May/2024:22:28:11 +0200] [Job 8] PID 2928 (/usr/lib/cups/filter/gstoraster) exited with no errors.
D [28/May/2024:22:28:11 +0200] [Job 8] End of messages
D [28/May/2024:22:28:11 +0200] [Job 8] printer-state=3(idle)
D [28/May/2024:22:28:11 +0200] [Job 8] printer-state-message="Rendering completed"
D [28/May/2024:22:28:11 +0200] [Job 8] printer-state-reasons=none
zdohnal commented 4 months ago

Hi @AddaxSoft,

please try the latest CUPS version or contact your distribution maintainers for help.

The log looks to be cropped - I don't see any filters starting, their list etc. - please enable debug logging by cupsctl LogLevel=debug2, reproduce the issue and attach files with logs. If your setup is client machine -> print server, please attach logs from both machines.

Thank you in advance!

ValdikSS commented 4 months ago

Your printer requires KPSL driver (filter). You can grab this one and compile it for your Raspberry armv6: https://hub.mos.ru/mikhailnov/rastertokpsl-re/-/tree/master/ Use PPD from Kyocera FS-1040.