Bug 688401 - Problem with rendering PS from WordPerfect in Ghostscript 8.15/Mandriva 2006.0
Summary: Problem with rendering PS from WordPerfect in Ghostscript 8.15/Mandriva 2006.0
Status: NOTIFIED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: 8.15
Hardware: PC Linux
: P3 normal
Assignee: Stefan Kemper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-26 08:31 UTC by Mark A. Davis
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
WP8 Color PS File (17.65 KB, application/postscript)
2005-11-26 08:33 UTC, Mark A. Davis
Details
CUPS/Ghostscript Error log (15.80 KB, text/plain)
2005-11-26 08:33 UTC, Mark A. Davis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark A. Davis 2005-11-26 08:31:55 UTC
I noticed that I was unable to print from Linux WordPerfect 8 under Mandriva
2006.0.  I use a color postscript printer driver in WP, and call cups, which
calls ghostscript, which then renders to my HP PSC2210 printer.  Nothing has
changed in WP8 for many years and I have successfully used the same setup for
printing in Mandrake 8 through 10.2.  2006.0 is the first time I have had
problems.  The version is: ghostscript-8.15-21mdk.

If I print the output to a file, and trying printing that from the command line,
the results are the same.  I have attached the "wptest.ps" file for testing.

Cups reports the following:
-----------
I [06/Nov/2005:20:06:57 -0500] Started filter /usr/lib/cups/filter/foomatic-rip
(PID32647) for job 3.
I [06/Nov/2005:20:06:57 -0500] Started backend /usr/lib/cups/backend/hp (PID
32648) for job 3.
E [06/Nov/2005:20:07:00 -0500] PID 32647 stopped with status 3!
-----------

I turned on debugging and have attached that as a file called "cupserrors.txt".

To eliminate CUPS, I trying using ps2pdf, since that will also use ghostscript
but notCUPS.  The results are:
-----------
[root@kram ~]# ps2pdf test.ps
Error: /configurationerror in --setpagedevice--
Additional information: [/DeferredMediaSelection true]
Operand stack:
   --nostringval--   --dict:2/2(L)--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3  
%oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2  
--nostringval--   --nostringval--   --nostringval--   2   %stopped_push  
--nostringval--   2   3   %oparray_pop   --nostringval--   --nostringval--  
--nostringval--   --dict:1/2(L)--   --nostringval--   1   %dict_continue
Dictionary stack:
   --dict:1117/1686(ro)(G)--   --dict:0/20(G)--   --dict:82/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 17554
ESP Ghostscript 815.01: Unrecoverable error, exit code 1Current file position is
17554
ESP Ghostscript 815.01: Unrecoverable error, exit code 1
-----------

I have verified the problem is not my particular machine by replicating the
exact same results on another Mandriva 2006.0 machine.  I also verified that
wptest.ps has no trouble printing, displaying (gv), or converting (ps2pdf) on a
Mandriva 10.2 machine, ghostscript-8.15-16mdk.  Note that both are using 8.15,
just a different Mandriva build.

I also tested generating postscript in WordPerfect 8 using its generic "Passthru
Postscript" driver, and that prints/renders file.  I don't use that driver,
because it is not color.  Long ago, I took a WP "HP color laserjet 5 PS" and
used ptr to remove the PJL preambles and created "hp2200ps.prs", which has
always worked great with modern HP inkjet printers + CUPS.  If you select the
stock, WP, "HP color laserjet 5 PS" in WP, save the PS to a file, and try to
print it, you get the exact same error as with my modified WP driver.

I have also reported this problem on qa.mandriva.com
Comment 1 Mark A. Davis 2005-11-26 08:33:11 UTC
Created attachment 1804 [details]
WP8 Color PS File

This is an example of color Postscript created from Linux WordPerfect 8 that
cannot be rendered/printed/converted by Ghostscript in Mandriva 2006.0
Comment 2 Mark A. Davis 2005-11-26 08:33:56 UTC
Created attachment 1805 [details]
CUPS/Ghostscript Error log

A dump of the errors spit out by Ghostscript/CUPS when I attempt to print
wptest.ps
Comment 3 Hin-Tak Leung 2005-11-27 14:28:08 UTC
ps2pdf on attachment 1084 [details] with gs 8.53 linux works correctly.
So whatever the problem is doesn't affect 8.53.
  
The error message "Error: /configurationerror in --setpagedevice--
Additional information: [/DeferredMediaSelection true]" seems
to suggest gs 8.15/Mandriva 2006.0 probably have some unusual
paranoid settings and disallow some setpagedevice operations?
(the test.ps contains two setpagedevice, and both involves /deferredMediaSelection).

Comment 4 Mark A. Davis 2005-11-28 04:48:02 UTC
Well, it is nice to know that it doesn't affect newer versions of Ghostscript.

Suppose that means that either Mandriva compiled gs strangely (reported as bug
19953 on qa.mandriva.com), or the default compile settings for gs 8.15 are too
restrictive.
Comment 5 Mark A. Davis 2005-11-28 06:21:52 UTC
From qa.mandriva.com, Till Kamppeter 2005-11-28 13:52:

"So it seems that you have reported the problem upstream (can you post a link to
your bug report?). But the problem seems to be specific to ESP GhostScript (we
use ESP GhostScript in Mandriva Linux) and does not exist in GPL or AFPL
GhostScript.

Therefore I want to ask you to report this bug in the bug tracking system of
ESP GhostScript:

http://www.cups.org/espgs/str.php

Thanks."

------------------------

Based on his request, I have submitted it to cups as STR #1348
http://www.cups.org/espgs/str.php?L1348+P0+S-2+C0+I0+E0+Q
Comment 6 Stefan Kemper 2005-11-28 12:35:44 UTC
Bugs is in ESP.
Comment 7 Mark A. Davis 2005-12-03 08:27:14 UTC
Now they are saying it is Foomatic.  I have lost track of how many places I have
had to post the bug.  5?

So, posted as issue#1372370

http://sourceforge.net/tracker/index.php?func=detail&aid=1372370&group_id=11202&atid=111202