Bug 704737 - Fails to convert EPS file using -sDEVICE= pngalpha
Summary: Fails to convert EPS file using -sDEVICE= pngalpha
Status: RESOLVED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Interpreter (show other bugs)
Version: 9.55.0
Hardware: PC Linux
: P4 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-27 20:02 UTC by Hilmar Preuße
Modified: 2021-11-29 08:45 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Sample file (3.28 KB, text/plain)
2021-11-28 16:57 UTC, Hilmar Preuße
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hilmar Preuße 2021-11-27 20:02:00 UTC
Ghostscriot fails to convert the referenced file using -sDEVICE=pngalpha. I tried a few other variants of png devices, like png16 & png265: they work. Hence I assume I look at a valid EPS file. AFAICT, the issue appeared in 9.54, is still present in 9.55.

The file is here: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1000710;filename=hatch_.eps;msg=5

hille@sid:~/devel/TeXLive/git/asymptote/doc/png $ gs -dBATCH -dNOPAUSE -sDEVICE=
pngalpha -sOutputFile=a.png hatch_.eps
GPL Ghostscript 9.55.0 (2021-09-27)
Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Error: /rangecheck in --stroke--
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push   1990   1   3   %oparray_pop   1989   1   3   %oparray_
pop   1988   1   3   %oparray_pop   --nostringval--   1977   1   3   %oparray_po
p   1833   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2
 --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nos
tringval--   fill   (NULL)   (gs_pattern1_instance_t)   (pattern accumulator)
0   %pattern_paint_finish   --nostringval--
Dictionary stack:
   --dict:764/1123(ro)(G)--   --dict:0/20(G)--   --dict:83/200(L)--
Current allocation mode is local
Current file position is 2701
GPL Ghostscript 9.55.0: Unrecoverable error, exit code 1
Comment 1 Ken Sharp 2021-11-28 09:01:35 UTC
(In reply to Hilmar Preuße from comment #0)

> The file is here:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1000710;
> filename=hatch_.eps;msg=5

You need to attach the file to our bug tracker. We need the files to be available to us in future, in case we need to research changes, if they are not hosted in our tracker then they can vanish.

Please attach the file here.
Comment 2 Hilmar Preuße 2021-11-28 16:57:14 UTC
Created attachment 21902 [details]
Sample file
Comment 3 Ken Sharp 2021-11-28 19:16:08 UTC
This appear to be fixed already, I will narrow down the relevant commit tomorrow.