Bug 1708988 - Samsung ML-1676P Laser printer fails to print document
Summary: Samsung ML-1676P Laser printer fails to print document
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 30
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1721637 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-12 09:34 UTC by Anil Seth
Modified: 2019-06-20 08:42 UTC (History)
7 users (show)

Fixed In Version: cups-2.2.11-3.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-18 18:13:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
journalctl output (114.45 KB, text/plain)
2019-05-15 05:14 UTC, Anil Seth
no flags Details
The log of job (34.29 KB, text/plain)
2019-05-15 06:54 UTC, Anil Seth
no flags Details
file for job in cups spool (977 bytes, application/octet-stream)
2019-05-17 16:22 UTC, Anil Seth
no flags Details
Test page (234 bytes, text/plain)
2019-05-17 16:23 UTC, Anil Seth
no flags Details
ppd fille for Samsung ML 1670 Printer (40.52 KB, text/plain)
2019-05-17 16:29 UTC, Anil Seth
no flags Details
debug from journal (318.16 KB, application/gzip)
2019-05-30 19:04 UTC, Jan
no flags Details

Description Anil Seth 2019-05-12 09:34:54 UTC
Description of problem:
Samsung ML-1676P Laser printer fails to print with internal error

Version-Release number of selected component (if applicable):


How reproducible:
Any document with an image

Steps to Reproduce:
1.Print a document
2.
3.

Actual results:
INTERNAL ERROR is printed instead of the document. No error is indicated by Cups

Expected results:


Additional info:
Downgraded to Cups 2.2.8-10 using the source from Fedora 29 and built it on Fedora 30. The printer works fine.

While it is really an issue with the printer driver, Samsung has exited the business and it is unlikely that HP will put any resources on it or release the driver source. 
So, if Cups can help, it will be greatly appreciated. There is no reason to believe that the current solution will work on future versions of Fedora.

Comment 1 Zdenek Dohnal 2019-05-13 11:05:59 UTC
Hi Anil!

thank you for reporting the issue! Would you mind following https://fedoraproject.org/wiki/How_to_debug_printing_problems and attach requested files please?

Comment 2 Anil Seth 2019-05-15 05:14:02 UTC
Created attachment 1568784 [details]
journalctl output

The cups debug level was set to debug2. The printing was completed at 10:31:01

Comment 3 Zdenek Dohnal 2019-05-15 05:37:01 UTC
Hmm... I cannot find the start of the job in the log... would you mind attaching file with logs for this specific job ($ journalctl -u cups JID=<NNN> > cups_job_log)? <NNN> is a job ID, you can find it by listing all old jobs by 'lpstat -W all' and it will be last entry - the first string will look like your_print_queue_name-NNN and these NNN numbers are JID.
Thank you for your cooperation!

Comment 4 Anil Seth 2019-05-15 06:54:31 UTC
Created attachment 1568803 [details]
The log of job

The job log for the same task as in the earlier log

Comment 5 Sergio Basto 2019-05-16 04:06:11 UTC
After update to F30 my computer (server) which have the Samsung printer SCX-3200 attached , I had lots of problems to print .

I found in logs [1] 

I also found /etc/cups/cupsd.conf.rpmnew, after mv /etc/cups/cupsd.conf.rpmnew  /etc/cups/cupsd.conf and restart cups.service the printer is not more located in network ... 

Seems we have multiple  problems ... 


[1]
PID 4112 (/usr/lib/cups/filter/rastertoqpdl) stopped with status 4.

Comment 6 Zdenek Dohnal 2019-05-16 05:17:14 UTC
Sergio,

please file 2 new bugs - one for cups and second on splix - describe your network topology and provide data mentioned in https://fedoraproject.org/wiki/How_to_debug_printing_problems . 

Your issue is different from Anil's (yours is printer discovery and rastertoqpdl filter from splix).

Please do not mix bugs.

Comment 7 Zdenek Dohnal 2019-05-16 08:43:01 UTC
Anil,

thank you for the info! The job log shows no error, but the output of filters can be corrupted - unfortunately, I can check only outputs of first two filters, because the third is not in Fedora and do not have output format which AFAIK I can open in some viewer.

Would you mind providing me data:
1) How do you try to print and what document you try to print (testpage from control-center, document from some app, from command line...)
 - if it is some document, provide document, the file which goes to cups (it is in /var/spool/cups dir, the name starts by letter 'd' and it should contain Job ID number. If there is no such file, reproduce the problem again and the new one should appear) and the name of application you used for printing
2) your ppd file - it is in /etc/cups/ppd, with the name <your_print_queue_name>.ppd

Comment 8 Anil Seth 2019-05-17 16:22:02 UTC
Created attachment 1570169 [details]
file for job in cups spool

the result is the same with the test page as well.

Comment 9 Anil Seth 2019-05-17 16:23:23 UTC
Created attachment 1570170 [details]
Test page

Comment 10 Anil Seth 2019-05-17 16:29:45 UTC
Created attachment 1570172 [details]
ppd fille for Samsung ML 1670 Printer

Comment 11 Jan 2019-05-30 07:11:04 UTC
On my ML-1860 printed page looks like:
INTERNAL ERROR - uw_color == 4
SYSTEM : h6fw_5.49/x1_image
LINE : 341
VERSION : SPL 5.49 10-20-2010

Downgrade of cups to version provided by Fedora 29 is workaround.
It might be a bug within uld (UnifiedLinuxDriver) provided by Samsung (now HP).

As I'm using printer connected to router, it might be possible to capture network content send to printer with old and new cups.
If someone is able to get some sense of such attachments. but maybe other options are there. If I understand correctly cups sends job for processing to uld binary. 
So either newer cups provides different input to that samsung blob, or the output of blob is additionally filtered (for various reasons like security) before being send to remote printer.
I could run a test or two, but I do not know what and how to capture useful data.

Comment 12 Zdenek Dohnal 2019-05-30 14:36:06 UTC
Anil,

please provide file from /var/spool/cups which starts by 'd'. Plus I have a question - it is the same file which was tried to print during catching the logs? Because I get different filters for your attached file than they are in logs.

Jan,

you can provide the same files as I requested from Anil in tarball. I need to check if some Fedora shipped filter is producing garbage - the steps which I will try are in the link from comments above.

Comment 13 Zdenek Dohnal 2019-05-30 14:37:37 UTC
As you probably find out, I'm still unable to reproduce the issue, Fedora filters are still creating valid file for the file which Anil provided (test page).

Comment 14 Anil Seth 2019-05-30 15:25:59 UTC
The logs were for a printing of a pdf file. I then found that the problem was reproducible for the test page as well. Hence, I sent the d file from the cups directory for the test page.

If needed, I can rerun the test page print out and send the logs and the d file from the /var/spool/cups directory. Also, if the d-file with cups downgraded will help, I can do that as well.

I had got the suggestion to downgrade cups from the following post - that is that the issue is cropping up with cups 2.2.11:
https://www.bchemnet.com/suldr/forum/index.php?topic=363

thanks
Anil

Comment 15 Jan 2019-05-30 19:04:36 UTC
Created attachment 1575356 [details]
debug from journal

Tested print test page with 2.2.8 - worked OK. Then updated to current 2.2.11 from repository, and test page failed. No error on my machine. Just on paper the message was that internal error instead of standard test page.
Files in /var/spool/cups for both runs attached - but they look similar.
Attaching also journalctl output. Is there a way to clearly record what cups send to remote printer (p910nd)?

Comment 16 Zdenek Dohnal 2019-05-31 06:04:16 UTC
(In reply to Anil Seth from comment #14)
> The logs were for a printing of a pdf file. I then found that the problem
> was reproducible for the test page as well.

That's unfortunate, because different files use different filters and options and that makes log irrelevant... please attach file and 'd' file of job when you caught the logs, or catch logs for test page job. 

> Hence, I sent the d file from
> the cups directory for the test page.

Unfortunately, you attached 'c' file - it gives a little more info, but it is not what I needed. Please upload relevant 'd' file.

> 
> If needed, I can rerun the test page print out and send the logs and the d
> file from the /var/spool/cups directory.

That will give me more insight into it, thank you!

> Also, if the d-file with cups
> downgraded will help, I can do that as well.
> 
> I had got the suggestion to downgrade cups from the following post - that is
> that the issue is cropping up with cups 2.2.11:
> https://www.bchemnet.com/suldr/forum/index.php?topic=363

Looking a little into upstream and I found this https://github.com/apple/cups/issues/5562 - IMHO https://github.com/apple/cups/issues/5562#issuecomment-483393639 says it all...

I'll backport the issue to Fedora 30, but be aware it will go away in the future, so please press on Samsung/HP to fix their filter.

> 
> thanks
> Anil

Comment 17 Zdenek Dohnal 2019-05-31 06:06:09 UTC
Jan, Anil,

Would you mind testing the builds before they go to bodhi? For to be sure it is really the case.

Comment 18 Zdenek Dohnal 2019-05-31 06:23:33 UTC
Here are the rpms - https://koji.fedoraproject.org/koji/taskinfo?taskID=35161976

Comment 19 Fedora Update System 2019-05-31 06:44:00 UTC
FEDORA-2019-d754a7fa00 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-d754a7fa00

Comment 20 Anil Seth 2019-05-31 06:54:59 UTC
Thanks a million. The test page worked.
So did a pdf file.

Thanks again. Next time before buying a printer have to check that no ppd files are being used :)

Comment 21 Jan 2019-05-31 13:40:12 UTC
Tested the rpms - 2.2.11-3 - print works again.
Thank you.

Comment 22 Fedora Update System 2019-06-01 01:34:57 UTC
cups-2.2.11-3.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-d754a7fa00

Comment 23 Fedora Update System 2019-06-18 18:13:32 UTC
cups-2.2.11-3.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 24 Zdenek Dohnal 2019-06-20 08:42:53 UTC
*** Bug 1721637 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.