Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1628295 - can not print anything
Summary: can not print anything
Keywords:
Status: CLOSED DUPLICATE of bug 1626818
Alias: None
Product: Fedora
Classification: Fedora
Component: ghostscript
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David Kaspar // Dee'Kej
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-12 17:03 UTC by william.garber
Modified: 2018-09-15 12:28 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-14 13:47:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
result of journalctl -u cups --since=today (709.30 KB, text/x-vhdl)
2018-09-12 17:03 UTC, william.garber
no flags Details

Description william.garber 2018-09-12 17:03:23 UTC
Created attachment 1482794 [details]
result of journalctl -u cups --since=today

Description of problem:

lpq and HPLIP show print job completed.  
$ journalctl -u cups --since=today
shows 
cupsd[7460]: [Job 976] Job stopped due to filter errors; please consult the error_log file for details.


Sep 12 08:57:38 electron cupsd[10431]: [Job 994] Started filter gs (PID 10890)
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] Started filter pstops (PID 10891)
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] STATE: -connecting-to-device
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] STATE: -media-empty-error,media-jam-error,hplip.plugin-error,cover-open-error,toner-empty-error,other
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] ./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find ps_gray.icc
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] + ./base/gsicc_manage.c:255: gsicc_initialize_iccsmask(): failed to load gray smask profile
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] Page = 612x792; 12,12 to 600,780
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] slow_collate=0, slow_duplex=0, slow_order=0
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] This document does not conform to the Adobe Document Structuring Conventions and may not print correctly.
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] ./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_rgb.icc
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] | ./base/gsicc_manage.c:2025: gsicc_set_device_profile(): cannot find device profile
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] GPL Ghostscript 9.24: Unrecoverable error, exit code 1
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] ./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find default_gray.icc
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] | ./base/gsicc_manage.c:2025: gsicc_set_device_profile(): cannot find device profile
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] PID 10890 (gs) stopped with status 1!
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] PID 10891 (pstops) exited with no errors.
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] PID 10887 (/usr/lib/cups/filter/pdftops) stopped with status 1.
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] Hint: Try setting the LogLevel to "debug" to find out more.
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] HP PS filter ENDS
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] PID 10888 (/usr/lib/cups/filter/hpps) exited with no errors.
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] ready to print
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] PID 10889 (/usr/lib/cups/backend/hp) exited with no errors.
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] End of messages
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] printer-state=3(idle)
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] printer-state-message="ready to print"
Sep 12 08:57:38 electron cupsd[10431]: [Job 994] printer-state-reasons=none


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

see 
https://bugs.archlinux.org/task/59952
my version of ghostscript is below ...

Description:

Printing test page through CUPS has missing page content and in /var/log/cups/error_log:

```
D [05/Sep/2018:17:56:42 -0400] [Job 9] ./base/gsicc_manage.c:1244: gsicc_open_search(): Could not find ps_gray.icc
D [05/Sep/2018:17:56:42 -0400] [Job 9] + ./base/gsicc_manage.c:255: gsicc_initialize_iccsmask(): failed to load gray smask profile
```

Downgrading to ghostscript-9.23-2 fixes the issue.

Happy to provide additional info / open a bug upstream if necessary.

Pretty sure the CUPS indirection is unimportant; if someone dumps me a direct `gs`
command which does the same, I can post output.

Additional info:
* ghostscript-9.24-2


Steps to reproduce:

- add printer with cups.
- cupsctl --debug-logging
- less /var/log/cups/error_log



root@electron# rpm -qa | grep ghostscript
ghostscript-core-9.24-1.fc28.x86_64
ghostscript-x11-9.24-1.fc28.x86_64
ghostscript-9.24-1.fc28.x86_64
ghostscript-tools-fonts-9.24-1.fc28.x86_64
ghostscript-tools-printing-9.24-1.fc28.x86_64
root@electron# 

note this was updated last night.


How reproducible:


Steps to Reproduce:
1. reinstall printer
- optional restart printer just for good measure.
2. print something
- print test page, e.g. firefox http://www.google.com
  or print test page from system-config-printer gui.
3. view journalctl -u cups --since=today
4. when done 
$ su -c 'cupsctl --no-debug-logging'

Actual results:
print nothing

Expected results:
print as did yesterday before ghostscript upgrade

Additional info:
not sure how to downgrade ghostscript as suggested by arch linux bug blog 
solution above.

Comment 1 william.garber 2018-09-12 17:31:46 UTC
I checked that the firewall was not interfering with the printer.
Not sure if this was done correctly.
I was able to print "self test page" but not "test page"
from system-config-printer.
I removed the printer from system-config-printer and from HPLIP-gui
and reinstalled in both.  
I re-downloaded and reinstalled the plugin.

system-config-printer "test page" produces:

HP LaserJet MFP M426fdw
3017      1
1

and the rest of the page is blank.
but this demonstrates that it did communicate with the printer.
If I point firefox to the IP address of the printer I see the
printer webserver gui indicating I can communicate that way.

Comment 2 william.garber 2018-09-12 23:44:04 UTC
$ dnf downgrade ghostscript
fixed the problem without screwing up anything else I hope.
Now only problem is that 
$ dnf upgrade
tries to reinstall it.  
This second problem could be fixed by using
exclude=ghostscript*
exclude=libgs*
in the update configuration file.
/etc/dnf/dnf.conf

Comment 3 Rob Sanders 2018-09-13 12:42:06 UTC
Ghostscript's bug:
https://bugs.ghostscript.com/show_bug.cgi?id=699722

Ghostscript's fix:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=c8c01f8c4164

Looks like it's already fixed in rawhide, but not F28 yet:

https://koji.fedoraproject.org/koji/buildinfo?buildID=1142734

Changelog	* Fri Sep 07 2018 Tom Callaway <spot> - 9.24-2
- add upstream fix for reading in ICC profiles

Comment 4 sbobber 2018-09-14 11:52:16 UTC
also for me:

dnf downgrade ghostscript 

(ghostscript x86_64 .23-1.fc28)

fix the problem (as a workaround)

Comment 5 David Kaspar // Dee'Kej 2018-09-14 13:47:55 UTC

*** This bug has been marked as a duplicate of bug 1626818 ***

Comment 6 David Kaspar // Dee'Kej 2018-09-14 13:56:50 UTC
Please, try updating to ghostscript-9.24-3. It should fix your printing issues.

https://bodhi.fedoraproject.org/updates/ghostscript-9.24-3.fc28

Let me know if the thing works for you (karma +/- 1 is welcomed).

Comment 7 william.garber 2018-09-15 12:28:05 UTC
I upgraded to testing ghostscript-9.24-3 and it fixed it immediately.
Added karma + 1
thanks.


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