Bug 689959 - Error running pdfopt.ps
Summary: Error running pdfopt.ps
Status: NOTIFIED WORKSFORME
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: master
Hardware: Macintosh MacOS X
: P2 normal
Assignee: Ken Sharp
URL:
Keywords:
: 689958 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-09 11:26 UTC by Marcos H. Woehrmann
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer: 932
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 Marcos H. Woehrmann 2008-07-09 11:26:43 UTC
Created attachment 4201 [details]
Newborn_Nutrition.pdf
Comment 2 Alex Cherepanov 2008-07-09 16:06:22 UTC
*** Bug 689958 has been marked as a duplicate of this bug. ***
Comment 3 Alex Cherepanov 2008-07-09 18:53:00 UTC
I cannot reproduce this on HEAD, 32-bit Windows and 32-bit Mac OS X.
Perhaps, it's 64-bit issue.
Comment 4 Ken Sharp 2008-07-10 00:26:47 UTC
I get the wrong generation number warnings under Windows, but not the undefined
in 'get', the resulting file seems OK.

Unfortunately I have neither a Mac nor a 64-bit OS to try this on.
Comment 5 Marcos H. Woehrmann 2008-07-10 07:14:14 UTC
Sorry, my fault, works with head but broken with 8.62.  I'll let the customer know.