ICEpdf
  1. ICEpdf
  2. PDF-1158

OutOfMemoryError: Java heap space

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.4
    • Fix Version/s: 6.2.5
    • Component/s: Core/Rendering
    • Labels:
      None
    • Environment:
      All

      Description

      With the provided PDF the following error stack trace is thrown:

      Jun 08, 2017 1:43:28 PM org.icepdf.core.pobjects.ImageUtility createTranslucentCompatibleImage
      FINER: Creating translucent image buffer 1806x1806
      Jun 08, 2017 1:43:28 PM org.icepdf.ri.common.views.AbstractPageViewComponent$PageImageCaptureTask call
      WARNING: Error during page capture task: Java heap space 0
      java.lang.OutOfMemoryError: Java heap space
      at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
      at java.awt.image.Raster.createPackedRaster(Raster.java:467)
      at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
      at java.awt.GraphicsConfiguration.createCompatibleImage(GraphicsConfiguration.java:186)
      at org.icepdf.core.pobjects.ImageUtility.createTranslucentCompatibleImage(ImageUtility.java:142)
      at org.icepdf.core.pobjects.graphics.commands.FormDrawCmd.createBufferXObject(FormDrawCmd.java:236)
      at org.icepdf.core.pobjects.graphics.commands.FormDrawCmd.paintOperand(FormDrawCmd.java:133)
      at org.icepdf.core.pobjects.graphics.Shapes.paint(Shapes.java:147)
      at org.icepdf.core.pobjects.Page.paintPageContent(Page.java:600)
      at org.icepdf.core.pobjects.Page.paint(Page.java:546)
      at org.icepdf.ri.common.views.AbstractPageViewComponent$PageImageCaptureTask.call(AbstractPageViewComponent.java:429)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved: