Bug 690657

Summary: **** File has an unbalanced >> (close dictionary).
Product: Ghostscript Reporter: Lee Howard <faxguy>
Component: PDF InterpreterAssignee: Alex Cherepanov <alex>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 8.64   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: sample PDF exhibiting this problem

Description Lee Howard 2009-07-27 08:36:25 UTC
I'm attaching a PDF that exhibits this error in the interpreter:

   **** File has an unbalanced >> (close dictionary).
   **** Error reading a content stream. The page may be incomplete.
   **** Incorrect object count in object stream.
Error: /rangecheck in resolveobjectstream
Operand stack:
   --nostringval--   --dict:10/10(L)--   --dict:103/103(ro)(L)--  
--nostringval--   PageSpotColors   --dict:0/0(L)--   --dict:1/4(L)--   6818   8
  107   --dict:7/15(L)--   58   --nostringval--   false   --nostringval--  
--dict:3/3(L)--   --dict:5/5(L)--   --dict:5/5(L)--   --dict:8/8(L)--  
--dict:3/3(L)--   --nostringval--   --dict:5/5(L)--   --dict:6/6(L)--  
--dict:9/9(L)--   --dict:3/3(L)--   --dict:5/5(L)--   --dict:5/5(L)--  
--dict:8/8(L)--   --dict:5/5(L)--   --dict:6/6(L)--   --dict:9/9(L)--  
--dict:5/5(L)--   --dict:5/5(L)--   --dict:8/8(L)--   --dict:8/8(L)--  
--dict:6/6(L)--   --dict:3/3(L)--   --dict:5/5(L)--   --dict:5/5(L)--  
--dict:8/8(L)--   --dict:8/8(L)--   --dict:9/9(L)--   --dict:5/5(L)--  
--dict:5/5(L)--   --dict:8/8(L)--   --dict:8/8(L)--   --dict:6/6(L)--  
--dict:3/3(L)--   --dict:5/5(L)--   --dict:5/5(L)--   --dict:5/5(L)--  
--nostringval--   BaseFont   Helvetica   Encoding   --nostringval--   FirstChar
  0   LastChar   255   Subtype   Type1   ToUnicode   --nostringval--      Type 
 Font   Widths   --nostringval--   --dict:6/6(L)--   --dict:9/9(L)--  
--dict:3/3(L)--   --dict:5/5(L)--   --dict:8/8(L)--   --dict:5/5(L)--  
--dict:6/6(L)--   --dict:9/9(L)--   --dict:3/3(L)--   --dict:5/5(L)--
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   --nostringval--  
--nostringval--   3   1   10   --nostringval--   %for_pos_int_continue  
--nostringval--   --nostringval--   --nostringval--   --nostringval--  
--nostringval--   --nostringval--   %array_continue   --nostringval--  
--nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1148/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--  
--dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:275/300(ro)(G)--  
--dict:23/25(L)--   --dict:5/5(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.63: Unrecoverable error, exit code 1
Comment 1 Lee Howard 2009-07-27 08:37:15 UTC
Created attachment 5244 [details]
sample PDF exhibiting this problem
Comment 2 Ken Sharp 2009-07-27 08:44:18 UTC
Works for me with current code. Note that although the report says 8.64, the
quoted text says 8.63. You could try using 8.64 to see if the fix is in there.
Alternatively we will be releasing a new version (8.65) shortly and that should
work, since the current HEAD revision is OK.