Red Hat Bugzilla – Bug 308211
pksmraw output produces blank pages
Last modified: 2008-04-01 04:51:50 EDT
The foo2zjs print driver uses pksmraw output from Ghostscript.
Since updating to rawhide, I seem to just get blank pages.
I am testing http://david.woodhou.se/testpage.ps with the following command line:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=a4 -g9920x7016 -r1200x600
-sDEVICE=pksmraw -dCOLORSCREEN -sOutputFile=testpage.pksmraw testpage.ps
The Gimp seems able to open the resulting file and display _something_, although
it isn't actually correct. It does seem to confirm that the output is entirely
white with ghostscript 8.60 on rawhide, while reverting to 8.15 from F7 makes it
work again. Testing it with the printer right now would make me unpopular, but
I'll verify in the morning that the whole printing process with 8.15 is working
Putting ghostscript into a sensible version control system and then using
git-bisect seems to indicate that it's fixed in HEAD, and it's fixed by this
Building a modified 8.60 package with that patch to test.... it seems that
commit dc01761c07d210974d829c35c33a8886c33b0488 is also required.
Confirmed: With those two patches applied to the rawhide package, printing via
pksmraw works again.
Please try ghostscript-8.60-3.fc8.
Works here; thanks. No real clue _why_ this failure mode happens though.
Comparing strace of each version seems to have a lot of '+read(3,...' where the
8.60-3 version reads stuff back from the first tempfile it opens, while the
8.60-2 version doesn't _ever_ actually read back from that file AFAICT.
I'm slightly concerned that we're just papering over a bug which still persists.
I think the main thing the patch changes is to switch to the LARGEFILE code, so
I think it's probably just that there's a bug in the non-largefile code (which
we're no longer using).
This (or something like it) is happening again with 8.62.
I think it's a different problem. ghostscript-8.61-8.fc8 from F8 updates seems
OK, but ghostscript-8.62-2.fc8 from updates-testing (and 8.62 from rawhide) are
producing blank pages for the following:
gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=a4 -g4960x7016 -r600x600
-sDEVICE=pksmraw -dCOLORSCREEN -sOutputFile=mozilla.pksmraw
Created attachment 299132 [details]
Created attachment 299133 [details]
git-bisect seems to suggest that it's caused by this commit:
This corresponds with SVN revision 8484.
(In reply to comment #12)
> This corresponds with SVN revision 8484.
Judging by the 'git-svn-id' in the git copy, isn't revision 8484 the fifth step
in that sequence of patches? The one which introduces the problem is step 3,
which I believe to be revision 8426.
This seems to fix it for me:
@@ -2399,8 +2406,6 @@ static int apply_create_compositor(gx_device_clist_reader
*ptarget = tdev;
- if (code < 0)
- return code;
/* Perform any updates for the clist device required */
code = pcomp->type->procs.clist_compositor_read_update(pcomp,
Should be fixed in ghostscript-8.62-3.fc9 then. Thanks for tracking it down.
Fixed in Fedora 8 test update as well: ghostscript-8.62-3.fc8.