After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 306020 - Cannot open /usr/share/ghostscript/7.07/examples/snowflak.ps
Cannot open /usr/share/ghostscript/7.07/examples/snowflak.ps
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-31 10:33 UTC by Marco Pesenti Gritti
Modified: 2005-06-03 12:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marco Pesenti Gritti 2005-05-31 10:33:22 UTC
We use NODISPLAY rendering somewhere in the code to test if the ps is valid.
That cause this:

Aha, NODISPLAY is really an explanation!  My bet is that with
that option 'pathbox' operator in snowflak.ps gives small enough
values for 'pagewidth' and/or 'pageheight' to end up below 'minsize'.
Therefore 'inwidth' or 'inheight' are set to zero and you are trying
to do a division by zero when calculating 'boxsize'.

If you will change in snowflak.ps these two definitions as follows:

/inwidth pagewidth minsize lt
     {1}{pagewidth minsize div} ifelse def
/inheight pageheight minsize lt
     {1}{ pageheight minsize div} ifelse def

then a resulting file is displayable by 'evince'.  No problems
with "%!" marker.

Original Red Hat bug:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=150722
Comment 1 Marco Pesenti Gritti 2005-06-03 12:27:11 UTC
Fixed in cvs