Bug 689958

Summary: Error running pdfopt.ps
Product: Ghostscript Reporter: Marcos H. Woehrmann <marcos.woehrmann>
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: NOTIFIED DUPLICATE    
Severity: normal    
Priority: P4    
Version: master   
Hardware: Macintosh   
OS: MacOS X   
Customer: 932 Word Size: ---

Description Marcos H. Woehrmann 2008-07-09 11:26:19 UTC
The customer reports and I've verified that running pdfopt with the attached file results in an error.  The 
customer reported this with gs8.52, but gs8.62 and head (r8825) also fail.

The command line I'm using:

  bin/gs -- lib/pdfopt.ps ./Newborn_Nutrition.pdf test.pdf

The error message:

Copyright (C) 2008 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Read objects, t = 7
Replaced references, t = 7
24 objects total
Propagated attributes, t = 8
[[14]]
Identified Catalog, t = 8
[15 21 16 18]
Identified first page, t = 8
[[1 10 2 3]]
[]
Identified other pages, t = 8
[4 5 6 7 8 9 11 12 13 17 19 20 22]
Identified non-pages, t = 9
Assigned objects #s, t = 9
Wrote Catalog, t = 9
Wrote first page, t = 12
Wrote other pages, t = 15
Wrote shared objects, t = 15
   **** Warning: wrong generation: 9 1, xref gen#: 0
   **** Warning: wrong generation: 13 1, xref gen#: 0
   **** Warning: wrong generation: 20 1, xref gen#: 0
   **** Warning: wrong generation: 22 1, xref gen#: 0
Error: /undefined in --get--
Operand stack:
   --nostringval--   FirstPageXrefLength   --nostringval--   --dict:9/9(ro)(G)--   filetype
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   -
-nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1905   1   3   
%oparray_pop   1904   1   3   %oparray_pop   1888   1   3   %oparray_pop   1771   1   3   %oparray_pop   --
nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   
%stopped_push   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --
nostringval--   --nostringval--   --nostringval--   --nostringval--   --dict:13/14(L)--   --
nostringval--   7   %dict_continue   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1113/1684(ro)(G)--   --dict:1/20(G)--   --dict:109/200(L)--   --dict:76/200(G)--   --
dict:274/300(ro)(G)--   --dict:18/25(L)--   --dict:48/80(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 36439
GPL Ghostscript SVN PRE-RELEASE 8.63: Unrecoverable error, exit code 1


Note that other PDF files work, so it's not a fundamental problem with pdfopt.ps.
Comment 1 Alex Cherepanov 2008-07-09 16:06:22 UTC

*** This bug has been marked as a duplicate of 689959 ***
Comment 2 Marcos H. Woehrmann 2008-07-09 17:26:14 UTC
Sorry, no idea how I managed to open two identical bugs.
Comment 3 Marcos H. Woehrmann 2011-09-18 21:47:21 UTC
Changing customer bugs that have been resolved more than a year ago to closed.