java.lang.OutOfMemoryError: Java heap space

mathworks.com | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at java.awt.image.DataBufferInt.<init>()
  2. Java RT
    SystemEventQueueUtilities$ComponentWorkRequest.run
    1. java.awt.image.DataBufferInt.<init>(Unknown Source)
    2. java.awt.image.Raster.createPackedRaster(Unknown Source)
    3. java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
    4. sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
    5. sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)
    6. sun.awt.image.VolatileSurfaceManager.initialize(Unknown Source)
    7. sun.awt.image.SunVolatileImage.<init>(Unknown Source)
    8. sun.awt.image.SunVolatileImage.<init>(Unknown Source)
    9. sun.awt.image.SunVolatileImage.<init>(Unknown Source)
    10. sun.awt.image.SunVolatileImage.<init>(Unknown Source)
    11. sun.awt.windows.WComponentPeer.createVolatileImage(Unknown Source)
    12. java.awt.Component.createVolatileImage(Unknown Source)
    13. java.awt.Component$BltBufferStrategy.createBackBuffers(Unknown Source)
    14. java.awt.Component$BltBufferStrategy.<init>(Unknown Source)
    15. java.awt.Component$BltSubRegionBufferStrategy.<init>(Unknown Source)
    16. java.awt.Component.createBufferStrategy(Unknown Source)
    17. java.awt.Window.createBufferStrategy(Unknown Source)
    18. javax.swing.BufferStrategyPaintManager$BufferInfo.createBufferStrategy(Unknown Source)
    19. javax.swing.BufferStrategyPaintManager$BufferInfo.createBufferStrategy(Unknown Source)
    20. javax.swing.BufferStrategyPaintManager$BufferInfo.getBufferStrategy(Unknown Source)
    21. javax.swing.BufferStrategyPaintManager.prepare(Unknown Source)
    22. javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
    23. javax.swing.RepaintManager.paint(Unknown Source)
    24. javax.swing.JComponent.paint(Unknown Source)
    25. java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
    26. sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
    27. sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
    28. java.awt.Container.paint(Unknown Source)
    29. javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    30. javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
    31. javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
    32. javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
    32 frames