java.lang.OutOfMemoryError: Java heap space

ICEsoft JIRA Issue Tracker | Arran Mccullough | 2 years ago
  1. 0

    With the provided PDF file, the images are not loaded correctly. With the ImageReference set to smoothScaled the following is logged: Feb 18, 2015 10:32:45 AM org.icepdf.core.pobjects.ImageStream dctDecode FINER: DCTDecode Image reader: com.sun.imageio.plugins.jpeg.JPEGImageReader@1b932cf Feb 18, 2015 10:32:47 AM org.icepdf.core.pobjects.graphics.SmoothScaledImageReference call WARNING: Error loading image: 8 0R Image stream= {BitsPerComponent=8, Subtype=Image, Filter=DCTDecode, Type=XObject, Length=9 0R, Height=14061, Width=9796, ColorSpace=10 0R} 8 0R Feb 18, 2015 10:32:47 AM org.icepdf.core.pobjects.ImageStream dctDecode FINER: DCTDecode Image reader: com.sun.imageio.plugins.jpeg.JPEGImageReader@602703 Feb 18, 2015 10:32:48 AM org.icepdf.core.pobjects.graphics.SmoothScaledImageReference call WARNING: Error loading image: 8 0R Image stream= {BitsPerComponent=8, Subtype=Image, Filter=DCTDecode, Type=XObject, Length=9 0R, Height=14061, Width=9796, ColorSpace=10 0R} 8 0R With the default ImageReference set it throws an OutOfMemoryException: WARNING: Error loading image: 8 0R Image stream= {BitsPerComponent=8, Subtype=Image, Filter=DCTDecode, Type=XObject, Length=9 0R, Height=14061, Width=9796, ColorSpace=10 0R} 8 0R 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 org.icepdf.core.pobjects.ImageUtility.makeBufferedImage(ImageUtility.java:249) at org.icepdf.core.pobjects.ImageUtility.convertYCbCrToRGB(ImageUtility.java:900) at org.icepdf.core.pobjects.ImageStream.dctDecode(ImageStream.java:551) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:344) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:291) at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:74) at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:40) 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) Feb 18, 2015 6:55:29 AM org.icepdf.core.pobjects.ImageStream dctDecode FINER: DCTDecode Image reader: com.sun.imageio.plugins.jpeg.JPEGImageReader@ea211e Feb 18, 2015 6:55:31 AM org.icepdf.core.pobjects.graphics.ImageStreamReference call WARNING: Error loading image: 8 0R Image stream= {BitsPerComponent=8, Subtype=Image, Filter=DCTDecode, Type=XObject, Length=9 0R, Height=14061, Width=9796, ColorSpace=10 0R} 8 0R 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 org.icepdf.core.pobjects.ImageUtility.makeBufferedImage(ImageUtility.java:249) at org.icepdf.core.pobjects.ImageUtility.convertYCbCrToRGB(ImageUtility.java:900) at org.icepdf.core.pobjects.ImageStream.dctDecode(ImageStream.java:551) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:344) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:291) at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:74) at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:40) at org.icepdf.core.pobjects.graphics.ImageReference.createImage(ImageReference.java:118) at org.icepdf.core.pobjects.graphics.CachedImageReference.getImage(CachedImageReference.java:58) at org.icepdf.core.pobjects.graphics.ImageReference.drawImage(ImageReference.java:78) at org.icepdf.core.pobjects.graphics.commands.ImageDrawCmd.paintOperand(ImageDrawCmd.java:96) at org.icepdf.core.pobjects.graphics.Shapes.paint(Shapes.java:142) at org.icepdf.core.pobjects.Page.paintPageContent(Page.java:584) at org.icepdf.core.pobjects.Page.paint(Page.java:531) at org.icepdf.ri.common.views.PageViewComponentImpl.createBufferedPageImage(PageViewComponentImpl.java:944) at org.icepdf.ri.common.views.PageViewComponentImpl.access$400(PageViewComponentImpl.java:77) at org.icepdf.ri.common.views.PageViewComponentImpl$PagePainter.run(PageViewComponentImpl.java:1069) 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)

    ICEsoft JIRA Issue Tracker | 2 years ago | Arran Mccullough
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    With the provided PDF file, the images are not loaded correctly. With the ImageReference set to smoothScaled the following is logged: Feb 18, 2015 10:32:45 AM org.icepdf.core.pobjects.ImageStream dctDecode FINER: DCTDecode Image reader: com.sun.imageio.plugins.jpeg.JPEGImageReader@1b932cf Feb 18, 2015 10:32:47 AM org.icepdf.core.pobjects.graphics.SmoothScaledImageReference call WARNING: Error loading image: 8 0R Image stream= {BitsPerComponent=8, Subtype=Image, Filter=DCTDecode, Type=XObject, Length=9 0R, Height=14061, Width=9796, ColorSpace=10 0R} 8 0R Feb 18, 2015 10:32:47 AM org.icepdf.core.pobjects.ImageStream dctDecode FINER: DCTDecode Image reader: com.sun.imageio.plugins.jpeg.JPEGImageReader@602703 Feb 18, 2015 10:32:48 AM org.icepdf.core.pobjects.graphics.SmoothScaledImageReference call WARNING: Error loading image: 8 0R Image stream= {BitsPerComponent=8, Subtype=Image, Filter=DCTDecode, Type=XObject, Length=9 0R, Height=14061, Width=9796, ColorSpace=10 0R} 8 0R With the default ImageReference set it throws an OutOfMemoryException: WARNING: Error loading image: 8 0R Image stream= {BitsPerComponent=8, Subtype=Image, Filter=DCTDecode, Type=XObject, Length=9 0R, Height=14061, Width=9796, ColorSpace=10 0R} 8 0R 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 org.icepdf.core.pobjects.ImageUtility.makeBufferedImage(ImageUtility.java:249) at org.icepdf.core.pobjects.ImageUtility.convertYCbCrToRGB(ImageUtility.java:900) at org.icepdf.core.pobjects.ImageStream.dctDecode(ImageStream.java:551) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:344) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:291) at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:74) at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:40) 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) Feb 18, 2015 6:55:29 AM org.icepdf.core.pobjects.ImageStream dctDecode FINER: DCTDecode Image reader: com.sun.imageio.plugins.jpeg.JPEGImageReader@ea211e Feb 18, 2015 6:55:31 AM org.icepdf.core.pobjects.graphics.ImageStreamReference call WARNING: Error loading image: 8 0R Image stream= {BitsPerComponent=8, Subtype=Image, Filter=DCTDecode, Type=XObject, Length=9 0R, Height=14061, Width=9796, ColorSpace=10 0R} 8 0R 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 org.icepdf.core.pobjects.ImageUtility.makeBufferedImage(ImageUtility.java:249) at org.icepdf.core.pobjects.ImageUtility.convertYCbCrToRGB(ImageUtility.java:900) at org.icepdf.core.pobjects.ImageStream.dctDecode(ImageStream.java:551) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:344) at org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:291) at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:74) at org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:40) at org.icepdf.core.pobjects.graphics.ImageReference.createImage(ImageReference.java:118) at org.icepdf.core.pobjects.graphics.CachedImageReference.getImage(CachedImageReference.java:58) at org.icepdf.core.pobjects.graphics.ImageReference.drawImage(ImageReference.java:78) at org.icepdf.core.pobjects.graphics.commands.ImageDrawCmd.paintOperand(ImageDrawCmd.java:96) at org.icepdf.core.pobjects.graphics.Shapes.paint(Shapes.java:142) at org.icepdf.core.pobjects.Page.paintPageContent(Page.java:584) at org.icepdf.core.pobjects.Page.paint(Page.java:531) at org.icepdf.ri.common.views.PageViewComponentImpl.createBufferedPageImage(PageViewComponentImpl.java:944) at org.icepdf.ri.common.views.PageViewComponentImpl.access$400(PageViewComponentImpl.java:77) at org.icepdf.ri.common.views.PageViewComponentImpl$PagePainter.run(PageViewComponentImpl.java:1069) 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)

    ICEsoft JIRA Issue Tracker | 2 years ago | Arran Mccullough
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    java.lang.OutOfMemoryError: Java heap space

    icesoft.org | 5 months ago
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.OutOfMemoryError: Java heap space

    Icesoft | 1 year ago | suraj1992
    java.lang.OutOfMemoryError: Java heap space
  6. 0

    OOM Error in CoverView

    GitHub | 2 years ago | bflorat
    java.lang.OutOfMemoryError: Java heap space

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at java.awt.image.DataBufferInt.<init>()
    2. Java RT
      DirectColorModel.createCompatibleWritableRaster
      1. java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
      2. java.awt.image.Raster.createPackedRaster(Raster.java:467)
      3. java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
      3 frames
    3. org.icepdf.core
      ImageStreamReference.call
      1. org.icepdf.core.pobjects.ImageUtility.makeBufferedImage(ImageUtility.java:249)
      2. org.icepdf.core.pobjects.ImageUtility.convertYCbCrToRGB(ImageUtility.java:900)
      3. org.icepdf.core.pobjects.ImageStream.dctDecode(ImageStream.java:551)
      4. org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:344)
      5. org.icepdf.core.pobjects.ImageStream.getImage(ImageStream.java:291)
      6. org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:74)
      7. org.icepdf.core.pobjects.graphics.ImageStreamReference.call(ImageStreamReference.java:40)
      7 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames