Bug 692831

Summary: No color printing using HPLIP and Ghostscript 9.04
Product: Ghostscript Reporter: farcus
Component: GeneralAssignee: Marcos H. Woehrmann <marcos.woehrmann>
Status: RESOLVED DUPLICATE    
Severity: major CC: henry.stiles, jackie.rosen, till.kamppeter
Priority: P4    
Version: 9.04   
Hardware: PC   
OS: Linux   
See Also: https://bugzilla.novell.com/show_bug.cgi?id=735824
Customer: Word Size: ---
Attachments: HPLIP error log
PLIP check log
hpcups job.out
messages
printout
Original file used to test printing
out.ps
ppd file

Description farcus 2012-02-01 17:08:58 UTC
Have a HP B110a printer using on Opensuse 12.1 64bit.
Installed HPLIP is 3.11.12-48
Ghostscript 9.04-66.1

I am unable to print in colour. No matter the setting prints in grayscale only.

Bug report filed with HPLIP maintainers they have confirmed the fault lies with Ghostscript 9.04

https://bugs.launchpad.net/hplip/+bug/924631

reverting to 9.02 color print returns
Comment 1 farcus 2012-02-01 17:11:16 UTC
Created attachment 8321 [details]
HPLIP error log
Comment 2 farcus 2012-02-01 17:11:31 UTC
Created attachment 8322 [details]
PLIP check log
Comment 3 farcus 2012-02-01 17:12:07 UTC
Created attachment 8323 [details]
hpcups job.out
Comment 4 farcus 2012-02-01 17:12:25 UTC
Created attachment 8324 [details]
messages
Comment 5 Till Kamppeter 2012-02-03 20:57:23 UTC
Can you please attach the original input file (and also tell which application you have used to print the file)?

Can you follow the instructions of the section "Capturing print job data" on https://wiki.ubuntu.com/DebuggingPrintingProblems  This should work with eevery distribution. If in your configuration "sudo" does not execute the following command as root, open a second terminal window and get root with "su" there. Execute all commads which start with "sudo" in the second window, but with the "sudo" removed.
Comment 6 farcus 2012-02-05 03:34:29 UTC
Created attachment 8335 [details]
printout
Comment 7 farcus 2012-02-05 03:35:13 UTC
Created attachment 8336 [details]
Original file used to test printing
Comment 8 farcus 2012-02-05 03:38:24 UTC
used stock file downloaded from google images to test printout in Gwenview 2.72 on Opensuse KDE 4.72 (standard release)
Tested in other applications also - libreoffice, gimp, okular with same results.
Comment 9 Till Kamppeter 2012-02-05 09:20:21 UTC
Can you please execute the following command

cupsfilter -m application/vnd.cups-postscript -P /etc/cups/ppd/<print queue name>.ppd -o PageSize=A4 <printout file from comment #6> > out.ps

and attach out.ps? Thanks.
Comment 10 farcus 2012-02-05 09:44:29 UTC
Created attachment 8337 [details]
out.ps
Comment 11 Till Kamppeter 2012-02-05 10:48:05 UTC
Can you attach your PPD file, /etc/cups/ppd/<print queue name>.ppd?

Can you also post the screen output of the "cupsfilter" command execution?
Comment 12 farcus 2012-02-05 11:43:24 UTC
# cupsfilter -m application/vnd.cups-postscript -P /etc/cups/ppd/Photosmart_B110.ppd -o PageSize=A4 printout > out.ps
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="root"
DEBUG: argv[3]="printout"
DEBUG: argv[4]="1"
DEBUG: argv[5]="PageSize=A4"
DEBUG: argv[6]="printout"
DEBUG: envp[0]="<CFProcessPath>"
DEBUG: envp[1]="CONTENT_TYPE=application/pdf"
DEBUG: envp[2]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
DEBUG: envp[4]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[5]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[6]="LANG=en_NZ.UTF8"
DEBUG: envp[7]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[8]="PPD=/etc/cups/ppd/Photosmart_B110.ppd"
DEBUG: envp[9]="PRINTER_INFO=cupsfilter"
DEBUG: envp[10]="PRINTER_LOCATION=Unknown"
DEBUG: envp[11]="PRINTER=cupsfilter"
DEBUG: envp[12]="RIP_MAX_CACHE=128m"
DEBUG: envp[13]="USER=root"
INFO: pdftops (PID 5918) started.
DEBUG: Started filter pdftops (PID 5919)
DEBUG: Started filter pstops (PID 5920)
DEBUG: Page = 595x842; 9,9 to 586,833
DEBUG: slow_collate=0, slow_duplex=0, slow_order=0
DEBUG: Before copy_comments - %!PS-Adobe-3.0
DEBUG: %!PS-Adobe-3.0
DEBUG: % Produced by poppler pdftops version: 0.18.0 (http://poppler.freedesktop.org)
DEBUG: %%Creator:
DEBUG: %%LanguageLevel: 3
DEBUG: %%DocumentSuppliedResources: (atend)
DEBUG: %%DocumentMedia: plain 595 842 0 () ()
DEBUG: %%BoundingBox: 0 0 595 842
DEBUG: %%Pages: 1
DEBUG: %%EndComments
DEBUG: Before copy_prolog - %%BeginDefaults
DEBUG: Before copy_setup - %%BeginSetup
DEBUG: Before page loop - %%Page: 1 1
DEBUG: Copying page 1...
DEBUG: pagew = 577.4, pagel = 823.7
DEBUG: bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 841
DEBUG: PageLeft = 9.0, PageRight = 586.4
DEBUG: PageTop = 832.7, PageBottom = 9.0
DEBUG: PageWidth = 595.4, PageLength = 841.7
DEBUG: Wrote 1 pages...
DEBUG: PID 5919 (pdftops) exited with no errors.
DEBUG: PID 5920 (pstops) exited with no errors.
INFO: pdftops (PID 5918) exited with no errors.
Comment 13 farcus 2012-02-05 11:44:26 UTC
Created attachment 8338 [details]
ppd file
Comment 14 Till Kamppeter 2012-02-05 12:11:34 UTC
I am not able to make Ghostscript produce a grayscale image. I always get color. At least with Ghostscript 9.04 as shipped with Ubuntu Oneiric (I do not have OpenSUSE) this is the case. For me ir seems that there is a problem in hpcups or in the Ghostscript package of OpenSUSE (missing or wrong color profile?).
Comment 15 farcus 2012-02-05 12:26:41 UTC
(In reply to comment #14)
> I am not able to make Ghostscript produce a grayscale image. I always get
> color. At least with Ghostscript 9.04 as shipped with Ubuntu Oneiric (I do not
> have OpenSUSE) this is the case. For me ir seems that there is a problem in
> hpcups or in the Ghostscript package of OpenSUSE (missing or wrong color
> profile?).

what release of 9.04 are you testing with? 9.04-xx.x?
I
Comment 16 Till Kamppeter 2012-02-05 12:59:34 UTC
As I said I am using Ubuntu, the package is ghostscript 9.04~dfsg-0ubuntu11.5. This is the Ghostscript package with several bug fix patches (all backported from the GS 9.05 development) applied (on Ubuntu you get this version when you do all system updates).

Note that there was no bug complaining about CUPS Raster coming out in grayscale when color was requested, the fixes on the CUPS Raster output driver are mainly to remedy segfaults.
Comment 17 farcus 2012-02-05 13:23:38 UTC
is this bug at all relate?

http://bugs.ghostscript.com/show_bug.cgi?id=691922

also see similar problems as mine reported on archlinux here

https://bugs.archlinux.org/task/25519
Comment 18 Till Kamppeter 2012-02-05 19:35:49 UTC
Looking at the date when upstream GS 9.04 has been packaged (Aug 5, 2011, see "gs -h") it has missed the fix of bug 691922 by some days. The Ubuntu package has a patch which backports this fix, added on the day when the fix got committed to the upstream GIT repository of Ghostscript.

The best solution would be if SUSE publishes a bug fix release applying the patches mentioned in bug 691922. These are backported bug-fix patches, so they are not against SUSE's no-distro-patch policy.

Ghostscript 9.05 (to be released next week) will have this bug fixed out-of-the-box.

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