-
Notifications
You must be signed in to change notification settings - Fork 167
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
Long edge / Short edge printing bug with cups 2.4.8 #952
Comments
Hi, thank you for reporting the issue! Would you mind turning on debug logging for CUPS, reproduce the issue and then attach file with logs here? Thank you in advance! |
This is /var/log/cups/error.log after enabling debug logging. The faulty print is [Job 1072], starting at around [17/May/2024:13:14:21 +0200]. |
Hmm, both app and IPP backend sends the correct option and value - I've tested it with my home printer and Fedora 39 + CUPS 2.4.8, and DuplexNoTumble was applied well... Is you printer installed as permanent queue? If it is, can you reinstall the queue, and attach its PPD file from /etc/cups/ppd. @michaelrsweet I don't recall we did something regarding duplex... |
@zdohnal No we haven't touched the duplex handling code in a long time... |
I'm not sure what you mean with 'permanent queue'. The printer is auto discovered (avahi I suppose) and I didn't installed it specifically. |
If you run |
Yes, it's not a permanent queue:
(first printer. The second is my wife's printer, same model and same problem). |
Ok - can you check whether cups-browsed is running and show printer options?
It would help to see screenshot of problematic and successful printing as well + CUPS debug log for older CUPS. I hope I can see some difference between them to realize what is the problem, because I don't see the issue on any of my work printers... |
Here are the first results:
I'll try to provide the log later. But for screenshots, there's nothing different on the screen. I always have both choices in the combo box (long/short edge), it just always print short edge what ever I choose. |
@HROMANO ahh, my bad - by screenshots I meant scans of printer outputs (printed papers) when you try to print DuplexNoTumble with 2.4.7 and 2.4.8 (original file would be great as well). Please create two pdf files with two page, where the first page shows the first page of the sheet, and the second the other page if you turn the sheet by long edge. |
@HROMANO Ad provided data for now - good, I don't see any DuplexTumble (PPD option) or two-sided-short-edge (IPP attribute) in default settings which could override your options from application (they should appear in the log, but I wanted to be sure in case there is a bug which does not show it). |
Here are the files:
Logs for 2.4.7 (Job 1106): Logs for 2.4.8 (Job 1107): I've cut the heads of the logs (previous days, jobs). Not sure how to exactly cut for Note: I rebooted between 2.4.7 and 2.4.8 to be sure to run the right version. |
After bisecting between 2.4.7 and 2.4.8:
I don't know what is |
Thank you for bisecting the code and the logs! URF is a document format for AirPrint and The keyword was added as part of #804 to work around issue in libcupsfilters, which looks to be fixed now. Probably adding the keyword into PPD file triggered an issue in libcupsfilters, which now I realize it is an issue:
The filter hits this error because CUPS now created
and for 2.4.7
I suspect Can you get me PPD file which is created at the moment when you print a file? The PPD will be located in /etc/cups/ppd for a minute and then disappears - I would like to check how cupsUrfSupported looks like for you. Then it would be great if you ran:
and attached ipptool.attr here as attachment. Those files will get me idea how urf-supported looks like and whether CUPS transfers it correctly - if the output is okay, then there is at least one issue regarding urf-supported in libcupsfilters... |
Here are the files for 4.2.8: |
Ok, we generate the cupsUrfSupported badly: From IPP response:
and what we create:
not enough commas :) ... I'm sorry for that, I'll prepare the fix. |
Are you able to compile CUPS with the following patch and check if your printer works as expected?
|
It's good now with the patch. Thanks! |
The PPD keyword got the option values concatenated together without commas, which broke filter processing in libcupsfilters Sometimes more commas better commas :)
The PPD keyword got the option values concatenated together without commas, which broke filter processing in libcupsfilters Sometimes more commas better commas :)
The PPD keyword got the option values concatenated together without commas, which broke filter processing in libcupsfilters Sometimes more commas better commas :)
Describe the bug
With cups 2.4.8, whatever I choose 'Long edge' or 'Short edge', I get a 'Short Edge' print.
When I downgrade to cups 2.4.7, the choices work as usual.
System Information:
Additional context
The printer is a network driverless printer (IPPS)
Model HP ENVY 6032e
The text was updated successfully, but these errors were encountered: