Bug 690287

Summary: bitcmyk produces 0 length output
Product: Ghostscript Reporter: Rick Richardson <rick.richardson>
Component: ColorAssignee: Ray Johnston <ray.johnston>
Status: RESOLVED FIXED    
Severity: normal CC: ruzike
Priority: P4    
Version: 8.70   
Hardware: Macintosh   
OS: MacOS X   
Customer: Word Size: ---
Attachments: Redhat test page
gdevbit.c.patch
bitcmyk-blank-output.patch

Description Rick Richardson 2009-02-12 11:20:11 UTC
Try:

$ gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=letter -g5100x6600
-r600x600 -sDEVICE=bitcmyk -dCOLORSCREEN -dMaxBitmap=500000000
'-sOutputFile=xxx.prn' test.ps; 
$ ls -l xxx.prn
-rwxr--r-- 1 rick rick 0 2009-02-12 13:15 xxx.prn

test.ps is the Redhat test page (attached).
Comment 1 Rick Richardson 2009-02-12 11:21:53 UTC
Created attachment 4793 [details]
Redhat test page
Comment 2 Rick Richardson 2009-02-12 11:24:28 UTC
It used to work on 8.63 and before!!!!
Comment 3 Ray Johnston 2009-02-12 14:42:48 UTC
This was fixed by rev 9452 which, unfortunately did not make the 8.64 release.
Comment 4 Ray Johnston 2009-02-12 14:43:32 UTC
Created attachment 4794 [details]
gdevbit.c.patch

This is the fix.
Comment 5 Rick Richardson 2009-02-12 15:02:35 UTC
When is 8.65 coming out?

This affects: HP Color LaserJet 1500/1600/2600/CP1215, Samsung
CLP-300/315/600/610 etc., Xerox 6110 etc., Konica Minolta 2300 DL/2430 DL/2530
DL etc., Lexmark C500.
Comment 6 Ralph Giles 2009-02-12 15:05:56 UTC
The next scheduled release is August. We may do a interm release sooner than
that, but this isn't decided.
Comment 7 Rick Richardson 2009-02-12 15:12:15 UTC
$ pwd
/home/rick/src/ghostscript-8.64
$ patch -p0 <~/tmp/gdevbit.c.patch 
patching file base/gdevbit.c
Hunk #1 succeeded at 653 with fuzz 2.
Hunk #2 FAILED at 671.
1 out of 2 hunks FAILED -- saving rejects to file base/gdevbit.c.rej
Comment 8 Till Kamppeter 2009-02-18 11:14:45 UTC
I can confirm the fix, but the attached patch is broken. I have simply replaced
base/gdevbit.c by the file from trunk (diff is VERY similar) and it worked.
Tested with the test case of the Ubuntu bug report
(https://bugs.edge.launchpad.net/ubuntu/+source/ghostscript/+bug/331127) and
also being able again to print on the HP Color LaserJet 2600n with Rick's driver.

Thanks, Rick, for reporting this, and thanks, Ray, for supplying the patch.
Comment 9 Till Kamppeter 2009-02-18 11:18:47 UTC
Created attachment 4801 [details]
bitcmyk-blank-output.patch

Replacement for the attached patch. This is the which I created for the Ubuntu
package of Ghostscript 8.64 and it fixes the bug.