[gs-bugs] [Bug 691514] New: PDF 1.7 FTS needs lots of memory

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Fri Jul 30 19:49:21 UTC 2010


           Summary: PDF 1.7 FTS needs lots of memory
           Product: Ghostscript
           Version: HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Graphics Library
        AssignedTo: ray.johnston at artifex.com
        ReportedBy: ray.johnston at artifex.com
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0
          Customer: 532

The customer reports VMerror on fts_17_1704.pdf. The command line is:
   gswin32c -r600 -sDEVICE=ppmraw -o nul: -dBandHeight=128 fts_17_1704.pdf

They only have about 60Mb available during clist playback (rendering) phase
and tracing shows that this file is trying to allocate several large bitmaps
for pattern_cache tiles while rendering, totaling over 55Mb.

I have traced this to a coding error in the 'depth' calculation used to
calculate the size that controls the switch to 'pattern_clist' mode that
causes this to be off by a factor of 24 (for an RGB device, 32 for CMYK)!

I will test the patch then commit the fix.

Note that with MAX_BITMAP_PATTERN_SIZE set to 1Mb (the current default),
this test goes from 24 to 31 seconds (debug build on my laptop).

Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the gs-bugs mailing list