Bug 689352 - Regression: Error: /undefinedresource in --showpage-- with Bug689189.pdf at 100 DPI
Summary: Regression: Error: /undefinedresource in --showpage-- with Bug689189.pdf at 1...
Status: NOTIFIED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.56
Hardware: PC Linux
: P4 normal
Assignee: leonardo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 11:14 UTC by Marcos H. Woehrmann
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos H. Woehrmann 2007-07-12 11:14:26 UTC
This is an old regression, gs8.54 is the last version that processes the file
correctly (I'm currently searching for the last revision that worked). gshead
(r8119) works at 72 DPI but produces an error at 100 DPI:

GPL Ghostscript SVN PRE-RELEASE 8.60 (2007-05-12)
Copyright (C) 2007 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
Error: /undefinedresource in --showpage--
Operand stack:
   1   true
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1889   1   3   %oparray_pop   1888
  1   3   %oparray_pop   1872   1   3   %oparray_pop   --nostringval--  
--nostringval--   2   1   1   --nostringval--   %for_pos_int_continue  
--nostringval--   --nostringval--   1761   0   9   %oparray_pop  
--nostringval--   --nostringval--
Dictionary stack:
   --dict:1147/1684(ro)(G)--   --dict:2/20(G)--   --dict:75/200(L)--  
--dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:274/300(ro)(G)--  
--dict:21/25(L)--   --dict:4/6(L)--   --dict:20/31(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript SVN PRE-RELEASE 8.60: Unrecoverable error, exit code 1


The command line I used:

  bin/gs- sDEVICE=ppmraw -sOutputFile=test.ppm -r100 ./Bug689189.pdf
Comment 1 Marcos H. Woehrmann 2007-07-12 12:10:15 UTC
The last version that processed the file correctely at 100 DPI was r7165.  

Here are the r7156 changes:

src/gsfunc3.c
14c14
< /* $Id: gsfunc3.c 6698 2006-04-02 00:17:36Z ray $ */
---
> /* $Id: gsfunc3.c 7166 2006-11-06 18:58:56Z leonardo $ */
365,366c365,368
<       if (vv0 < b1 && vv1 > b1)
<           return 0; /* Consider stitches as monotonity beraks. */
---
>       if (vv0 < b1 && vv1 > b1) {
>           *mask = 1;
>           return 0; /* Consider stitches as monotonity breaks. */
>       }


src/gxshade6.c
14c14
< /* $Id: gxshade6.c 6651 2006-03-13 16:18:19Z stefan $ */
---
> /* $Id: gxshade6.c 7166 2006-11-06 18:58:56Z leonardo $ */
2240,2241d2239
<       *not_monotonic_by_v = true;
<     if (code & 2)
2242a2241,2242
>     if (code & 2)
>       *not_monotonic_by_v = true;
Comment 2 leonardo 2007-08-29 21:20:54 UTC
The test case works fine with current head. There were multiple changes in 
algorithms regarding to that file. Closing with worksforme.