Bug 693182 - Problems rendering IDL produced postscript file
Summary: Problems rendering IDL produced postscript file
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: X Display Driver (show other bugs)
Version: 9.05
Hardware: PC Linux
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-16 16:50 UTC by Orion Poplawski
Modified: 2012-07-26 23:16 UTC (History)
2 users (show)

See Also:
Customer:
Word Size: ---


Attachments
IDL produced graphics. (43.63 KB, application/postscript)
2012-07-16 16:50 UTC, Orion Poplawski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Orion Poplawski 2012-07-16 16:50:37 UTC
Created attachment 8754 [details]
IDL produced graphics.

With the attached ps file and 9.04 I get:

$ ./ghostscript-9.04-linux_x86/gs-904-linux_x86 /home/orion/nom.ps
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSanL-Regu font from %rom%Resource/Font/NimbusSanL-Regu... 2579524 1241098 2886692 1587967 3 done.
Segmentation fault (core dumped)

With 9.05 I get:

$ ./ghostscript-9.05-linux_x86/gs-905-linux_x86 /home/orion/nom.ps
GPL Ghostscript 9.05 (2012-02-08)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusSanL-Regu font from %rom%Resource/Font/NimbusSanL-Regu... 2542312 1191411 2815976 1523850 3 done.
%%BoundingBox: 81 289 545 605
%%HiResBoundingBox: 81.899998 289.061991 544.499983 604.565982
>>showpage, press <return> to continue<<

GS>

but nothing is displayed on my screen.  This appears to be the case with 9.05 and any ps file on my machine (Fedora 17 32-bit).

I'm trying to test with the attached ps file because with the Fedora provided binaries I see artifacts in the image produced with 9.05.  It may be related to setting the character size very small in IDL in order to suppress axis labels when generating the image.
Comment 1 Alex Cherepanov 2012-07-16 20:06:09 UTC
I confirm the SEGV in v. 9.04.
However, the SEGV is fixed in v. 9.05 and higher.

The fact that gs prints the bounding box info instead of displaying the
picture indicates that x11 drivers have not been compiled.
This can happen if gs was compiled locally but x11 headers were not installed.
Please install x11 development files and recompile gs.

Unfortunately, there is still one problem with the file.
x11alpha driver displays the picture incorrectly. It places extra numbers
to some of the pictures. You need to use x11 device driver:

gs -sDEVICE=x11 norm.ps
Comment 2 Orion Poplawski 2012-07-16 20:25:00 UTC
It seems that your 9.05 binaries are not compiled with x11?

$ ./ghostscript-9.05-linux_x86/gs-905-linux_x86 -sDEVICE=x11 /home/orion/norm.ps
GPL Ghostscript 9.05 (2012-02-08)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Unknown device: x11
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice

The binary is from your download page.

The extra numbers are indeed the original problem that I was trying to report, but I can't get 9.05 to display.
Comment 3 Chris Liddell (chrisl) 2012-07-16 20:36:43 UTC
The Linux binaries on the download page don't have the X11 devices built in. There are two many X11 binary incompatibilites out there to provide binaries linked with the X11 shared libraries.
Comment 4 Alex Cherepanov 2012-07-26 23:16:05 UTC
In preparation for the new release, great number of bugs has been fixed
recently. Current development version now displays the sample file
correctly even on x11alpha device. 

You can get the snapshot here 
http://git.ghostscript.com/?p=ghostpdl.git;a=summary
or wait for a week or two for a new release.