Bug 691722

Summary: Unrecoverable error when trying to extract page 2 of a PDF
Product: Ghostscript Reporter: Philippe Lang <philippe.lang>
Component: PDF WriterAssignee: Ken Sharp <ken.sharp>
Status: RESOLVED DUPLICATE    
Severity: normal CC: philippe.lang
Priority: P4    
Version: 9.00   
Hardware: Macintosh   
OS: MacOS X   
Customer: Word Size: ---
Attachments: PDF that causes the crash

Description Philippe Lang 2010-10-26 16:45:35 UTC
Hi,

When trying to extract page two of the attached PDF, Ghostscript 9.0 crashes. I tried differents options (CompatibilityLevel, PDFX...), but Ghostscript crashed anyway. Page 1 can be extracted without a problem.

COMMAND:
--------
gs -dPDFSETTINGS=/default -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -dPDFX -sOutputFile=page2.pdf -dFirstPage=2 -dLastPage=2 Ogone_PayPal-Exp-Check_EN.pdf

ERROR:
------
Error: /rangecheck in 3
Operand stack:
   --dict:10/19(L)--   --nostringval--   --nostringval--   BS   --dict:1/1(L)--   F   4   Rect   --nostringval--   --dict:6/6(L)--   --nostringval--   --nostringval--   0
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop   1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   --nostringval--   --nostringval--   3   1   2   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--   1   1   13   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1162/1684(ro)(G)--   --dict:1/20(G)--   --dict:82/200(L)--   --dict:82/200(L)--   --dict:108/127(ro)(G)--   --dict:293/300(ro)(G)--   --dict:23/30(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript  9.00: Unrecoverable error, exit code 1
Comment 1 Philippe Lang 2010-10-26 16:46:53 UTC
Created attachment 6836 [details]
PDF that causes the crash
Comment 2 Ken Sharp 2010-10-26 16:52:39 UTC
(In reply to comment #0)

> When trying to extract page two of the attached PDF, Ghostscript 9.0 crashes. I
> tried differents options (CompatibilityLevel, PDFX...), but Ghostscript crashed
> anyway. Page 1 can be extracted without a problem.

This is not a crash, Ghostscript returns an error message telling you that it could not complete the operation. It is also a problem in the PDF interpreter, not the pdfwrite device.

This is a duplicate of bug #691539.

*** This bug has been marked as a duplicate of bug 691539 ***