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.
Created attachment 5470 [details] 20071011150023.pdf First example of the Ubuntu bug report, offending page is page 2.
Created attachment 5471 [details] deso07.pdf Second example, offending page is page 8.
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.
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.
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.
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.
*** This bug has been marked as a duplicate of 689150 ***