Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError

Exceptioninthread"AWT-EventQueue-0"java.lang.OutOfMemoryError:Javaheapspaceatjava.awt... Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
at java.awt.image.Raster.createPackedRaster(Raster.java:458)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
at sun.awt.Win32GraphicsConfig.createAcceleratedImage(Win32GraphicsConfig.java:250)
at sun.awt.windows.WComponentPeer.createImage(WComponentPeer.java:600)
at java.awt.Component.createImage(Component.java:3336)
at java.awt.Component.createImage(Component.java:3333)
at java.awt.Component.createImage(Component.java:3333)
at prefuse.Display.getNewOffscreenBuffer(Display.java:673)
at prefuse.Display.paintComponent(Display.java:791)
at javax.swing.JComponent.paint(JComponent.java:1029)
at javax.swing.JComponent.paintChildren(JComponent.java:864)
at javax.swing.JComponent.paint(JComponent.java:1038)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1475)
at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1406)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:294)
at javax.swing.RepaintManager.paint(RepaintManager.java:1220)
at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:803)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
at javax.swing.RepaintManager.seqPaintDirtyRegions(RepaintManager.java:694)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:128)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
展开
 我来答
百度网友839b38507
2011-06-23 · TA获得超过111个赞
知道小有建树答主
回答量:162
采纳率:0%
帮助的人:107万
展开全部
内存溢出异常。
1、可能虚拟机内存设置过小,比如在eclipse.ini文件中。初始的内存设置是-Xms64M
-Xmx128M。建议设置成-Xms128M -Xmx512M 或 Xms512M -Xmx1024M。
2、另外,检查代码。看是否有导致对象不能释放的代码。
感觉应该第2种情况比较像你的问题。
tang_he_dong
2011-06-15
知道答主
回答量:4
采纳率:0%
帮助的人:0
展开全部
Java heap space
堆内存溢出了 我觉得是图片太大 或者 创建的图片太多造成的
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
oiovoio
2011-06-10 · TA获得超过253个赞
知道小有建树答主
回答量:240
采纳率:0%
帮助的人:140万
展开全部
话说这个看的我比较头痛!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式