Bug 688672 - insufficient data for an image at high resolution
Summary: insufficient data for an image at high resolution
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Graphics Library (show other bugs)
Version: master
Hardware: PC Linux
: P2 normal
Assignee: Timothy Osborn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-21 18:19 UTC by Ralph Giles
Modified: 2008-12-19 08:31 UTC (History)
1 user (show)

See Also:
Customer: 850
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Giles 2006-04-21 18:19:24 UTC
The attached customer file fails with:

   **** Warning: File has insufficient data for an image.
Error: /typecheck in --closefile--

rendering to the tiff24nc device a resolutions above 420 dpi (original report
was for -r600) Even at 600 dpi this shouldn't be over 1 GB of data.

Complete command line:
bin/gs -Ilib -I../fonts -dSAFER -dBATCH -sDEVICE=tiff24nc
-sOutputFile=10439r600.tiff -r600 10439.pdf

It renders correctly at lower resolutions. On 8.53 the error is different:

  /ioerror in --.inittransparencymask--

Setting -dMaxBitmap higher makes it work for larger -r values, but it eventually
fails even with -dMaxBitmap=500000000. The effect is similar in HEAD.
Comment 1 Ralph Giles 2006-04-21 18:22:02 UTC
Created attachment 2170 [details]
problem file
Comment 2 Timothy Osborn 2007-05-03 08:00:04 UTC
I ran this both locally on my Mac (OSX 10.4.9) and on peeves (Linux) with the
command line specified. The file ran to a normal completion without any errors
or warnings. I got a complete and valid tiff file that is 949174292 bytes in
size both times.

Please double check that this bug happens with the latest sources. If it does...
we may need to look closer at the specific environment it is running in when the
problem occurs.
Comment 3 Marcos H. Woehrmann 2007-05-03 19:16:48 UTC
I've verified that gs8.56 fixes this problem.  I was able to duplicate in under Mac OS X with a release of 
Ghostscript from 04/2006.