ICEpdf
  1. ICEpdf
  2. PDF-1091

Out of memory exception when applying smask on large images.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      any

      Description

      The file in question has an interesting gradient effect for the background which is composed of two very large images (4k x 4k). With a 2GB heap we can decode these two images but when we create the resultant image we blow the stack.

      We should be able to get around this issue but not creating the resultant issue or down scaling the images earlier on during the render cycle.

        Activity

        Hide
        Patrick Corless added a comment -

        Iv'e been able to significant reduce the amount of memory needed to apply the masking image by making sure we reuse the base image when an alpha channel is available. Attempts to scale the image size failed as the the image was drawn in the incorrect location as a result. Significant work would be needed to pass along the scale information to offset the original scale. We will definitely keep this idea for later.

        PDF does render without error with -Xmx1024m but this PDF also ues a type4 mesh shading pattern which we currently don't support. I'm going to take a shot at parsing the patter type and see if we can't support the generated colours at some level.

        Show
        Patrick Corless added a comment - Iv'e been able to significant reduce the amount of memory needed to apply the masking image by making sure we reuse the base image when an alpha channel is available. Attempts to scale the image size failed as the the image was drawn in the incorrect location as a result. Significant work would be needed to pass along the scale information to offset the original scale. We will definitely keep this idea for later. PDF does render without error with -Xmx1024m but this PDF also ues a type4 mesh shading pattern which we currently don't support. I'm going to take a shot at parsing the patter type and see if we can't support the generated colours at some level.
        Hide
        Patrick Corless added a comment -

        Marking as fixed.

        Show
        Patrick Corless added a comment - Marking as fixed.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: