java.lang.OutOfMemoryError: sun.awt.image.BufferedImageGraphics2D

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807551, 1 year ago
sun.awt.image.BufferedImageGraphics2D
java.lang.OutOfMemoryError: sun.awt.image.BufferedImageGraphics2D
at java.lang.Object.clone(Native Method)
at sun.java2d.SunGraphics2D.clone(SunGraphics2D.java:245)
at sun.java2d.SunGraphics2D.create(SunGraphics2D.java:261)
at javax.swing.SwingGraphics.createSwingGraphics(SwingGraphics.java:160)
at javax.swing.JComponent.paint(JComponent.java:554)
at javax.swing.JComponent.paintWithBuffer(JComponent.java:3750)
at javax.swing.JComponent._paintImmediately(JComponent.java:3695)
at javax.swing.JComponent.paintImmediately(JComponent.java:3544)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:365)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:198)
at javax.swing.SystemEventQueueUtilities.processRunnableEvent(SystemEventQueueUtilities.java:398)
at javax.swing.SystemEventQueueUtilities.access$0(SystemEventQueueUtilities.java:394)
at javax.swing.SystemEventQueueUtilities$RunnableTarget.processEvent(SystemEventQueueUtilities.java:435)
at java.awt.Component.dispatchEventImpl(Component.java:2399)
at java.awt.Component.dispatchEvent(Component.java:2312)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:301)
at java.awt.EventDispatchThread.pumpOneEventForComponent(EventDispatchThread.java:120)
at java.awt.EventDispatchThread.pumpEventsForComponent(EventDispatchThread.java:95)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:90)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.