Bug 699713

Summary: Cannot print with HPLIP and ghostscript 9.24
Product: Ghostscript Reporter: Frederic Bezies <fredbezies>
Component: CUPS driverAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED FIXED    
Severity: normal CC: andyrtr, chris.liddell, htl10, mike, till.kamppeter
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---

Description Frederic Bezies 2018-09-04 18:14:59 UTC
Hello.

This bug was opened following this bug on CUPS bug tracker : https://github.com/apple/cups/issues/5394

I wanted to print some documents with a freshly installed ghostscript 9.24 on an Archlinux. But I got an error "filter failed" in cups web interface.

Here is the output of gs -dSAFER -dNOPAUSE -dBATCH -sOutputFile=%stdout -sDEVICE=cups -dcupsColorSpace=17 -c "showpage" :


GPL Ghostscript 9.24 (2018-03-21)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
| ./base/gsicc_manage.c:1863: gsicc_verify_device_profiles(): Mismatch of ICC profiles and device color model
| ./base/gsicc_manage.c:1990: gsicc_set_device_profile(): Error in device profiles
Unrecoverable error: rangecheck in .putdeviceprops
Comment 1 Till Kamppeter 2018-09-04 20:29:01 UTC
Chris, is it possible that there is a relation between this bug and the bug reported here:

https://github.com/OpenPrinting/cups-filters/issues/59

There also the "cups" device fails, but only if -dSAFER or -dPARANOIDSAFER is used. -dNOSAFER solves the problem described there. Would using -dNOSAFER be a security risk?
Comment 2 Chris Liddell (chrisl) 2018-09-04 20:36:04 UTC
Nope, this bug has nothing to do with the SAFER issues.

The SAFER issues were fixed with:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=0704d18b1031


I have a possible solution for this issue, but I need to check with one of the other engineers before I commit the change.
Comment 3 Till Kamppeter 2018-09-04 20:47:54 UTC
Chris, did this fix for -dSAFER make it into GS 9.24?
Comment 4 Chris Liddell (chrisl) 2018-09-04 20:49:10 UTC
Yes
Comment 5 Chris Liddell (chrisl) 2018-09-05 07:46:27 UTC
Fixed in:

http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=bc3df0773fcc
Comment 6 Frederic Bezies 2018-09-05 11:35:31 UTC
(In reply to Chris Liddell (chrisl) from comment #5)
> Fixed in:
> 
> http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=bc3df0773fcc

Yes, I confirm it. Archlinux produced a new version of ghostscript 9.24 with this patch.

No more problems with my printer. Thanks for the fix.