Bug 690813 - Rangecheck errors on PDF input files
Summary: Rangecheck errors on PDF input files
Status: RESOLVED DUPLICATE of bug 689150
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.70
Hardware: PC Linux
: P4 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-11 05:49 UTC by Till Kamppeter
Modified: 2009-10-11 12:37 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
20071011150023.pdf (2.11 MB, application/pdf)
2009-10-11 05:55 UTC, Till Kamppeter
Details
deso07.pdf (286.31 KB, application/pdf)
2009-10-11 05:57 UTC, Till Kamppeter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Kamppeter 2009-10-11 05:49:23 UTC
See

https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/294526

Users complain that certain PDF files (example files attached) cannot be
rendered by Ghostscript. I have checked by trying to display them with 8.70.
They do not make Ghostscript segfaulting any more but make it stop with a
rangecheck error:




till@till-laptop:~/ghostscript/gpl/testfiles$ gs deso07.pdf 
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 12.
Page 1
>>showpage, press <return> to continue<<

Page 2
>>showpage, press <return> to continue<<

Page 3
>>showpage, press <return> to continue<<

Page 4
>>showpage, press <return> to continue<<

Page 5
>>showpage, press <return> to continue<<

Page 6
>>showpage, press <return> to continue<<

Page 7
>>showpage, press <return> to continue<<

Page 8
Error: /rangecheck in --run--
Operand stack:
   --dict:13/22(L)--   48.0   721.0
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861
  1   3   %oparray_pop   1845   1   3   %oparray_pop   --nostringval--  
--nostringval--   9   1   12   --nostringval--   %for_pos_int_continue  
--nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--
  --nostringval--
Dictionary stack:
   --dict:1150/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--  
--dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:285/300(ro)(G)--  
--dict:23/25(L)--   --dict:4/6(L)--   --dict:22/40(L)--   --dict:1/1(ro)(G)--  
--dict:9/15(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
till@till-laptop:~/ghostscript/gpl/testfiles$




till@till-laptop:~/ghostscript/gpl/testfiles$ gs 20071011150023.pdf 
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 12.
Page 1
>>showpage, press <return> to continue<<

Page 2
Error: /rangecheck in --run--
Operand stack:
   --dict:11/20(L)--   -14.173   412.913
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1862   1   3   %oparray_pop   1861
  1   3   %oparray_pop   1845   1   3   %oparray_pop   --nostringval--  
--nostringval--   3   1   12   --nostringval--   %for_pos_int_continue  
--nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--
  --nostringval--
Dictionary stack:
   --dict:1150/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--  
--dict:75/200(L)--   --dict:106/127(ro)(G)--   --dict:285/300(ro)(G)--  
--dict:22/25(L)--   --dict:4/6(L)--   --dict:22/40(L)--   --dict:9/15(L)--
Current allocation mode is local
Last OS error: 11
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
till@till-laptop:~/ghostscript/gpl/testfiles$ 




All pages which come before the offending pages are rendered correctly.
Comment 1 Till Kamppeter 2009-10-11 05:55:06 UTC
Created attachment 5470 [details]
20071011150023.pdf

First example of the Ubuntu bug report, offending page is page 2.
Comment 2 Till Kamppeter 2009-10-11 05:57:26 UTC
Created attachment 5471 [details]
deso07.pdf

Second example, offending page is page 8.
Comment 3 Till Kamppeter 2009-10-11 05:59:42 UTC
Both example files display correctly with evince (Poppler-based PDF viewer).
Note that evince produces a lot of "Error: Invalid Font Weight" messages on the
console.
Comment 4 Ken Sharp 2009-10-11 07:47:45 UTC
This seems like it might be a problem with the X device, both files work under
Windows, and both work on Fedora 8 using the tiff24nc device. Both fail when
running to the display.
Comment 5 Till Kamppeter 2009-10-11 09:43:24 UTC
I tried both 32-bit and 64-bit Ubuntu Karmic systems with Ghostscript 8.70 (X
output) and in both cases I get the same error.
Comment 6 Ralph Giles 2009-10-11 10:41:58 UTC
This looks like another instance of the x11alpha conflict with transparency,
tracked in Bugs 689150 and 689734. Both files work fine for me with the x11
(instead of the default x11alpha) device.
Comment 7 Alex Cherepanov 2009-10-11 12:37:31 UTC

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