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
Claiming Job Completed when GhostScript Runs out of Memory, Causing Print Failed #4824
Comments
It is up to Ghostscript (or the wrapper around it) to report errors as errors. CUPS sees the stderr output as a debug message and logs accordingly. |
True. But the exit code of Ghostscript is 1 instead of 0. I think, if possible, CUPS should report the message as an "error" message instead of "debug" message. That would make debugging this issue much easier. Or is Ghostscript called by GutenPrint, causing the exit code of Ghostscript not accessible by CUPS? |
The wrapper script may be consuming the Ghostscript exit status - please report that upstream to the Ghostscript folks. Similarly, it is up to Ghostscript to tell CUPS its message is an error (via an ERROR: prefix), otherwise CUPS will assume it is a debug message (which has been the documented interface with CUPS since 1998...) |
Ah. Got it. Thank you very much for quick reply. That's very helpful. :) |
I think such issues should not be reported to Ghostscript I suggest to report such issues to the matching upstream The caller of Ghostscript could be something like foomatic-rip If your PPD file /etc/cups/ppd/<queue_name>.ppd contains cupsFilter ... foomatic-rip the Ghostscript caller is foomatic-rip which is nowadays The cups-filters software is from OpenPrinting.org, see Otherwise inspect you /var/log/cups/error_log For example if you /var/log/cups/error_log contains Started filter /usr/lib/cups/filter/gstoraster ... Ghostscript command line: /usr/bin/gs ... -sDEVICE=cups ... then /usr/lib/cups/filter/gstoraster is the caller of Ghostscript |
This is the matching report at Ghostscript Because |
I've found the following in the log:
Does that mean that /usr/lib/cups/filter/gstoraster is the caller? EDIT: There is no |
Yes, /usr/lib/cups/filter/gstoraster is the caller. See "Bug reports" at |
Thanks for making it clear. I'll file a bug report to them soon! |
For completeness: |
Environment:
Steps to reproduce:
Result:
It printed nothing, nor the printer received any print command. However, in /var/log/cups/access_log:
In addition, in /var/log/cups/error_log:
Expected result:
It wasted me a few hours to figure out what's wrong. :(
The text was updated successfully, but these errors were encountered: