This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250634

Summary: OutOfMemoryError: Java heap space
Product: guibuilder Reporter: albystar
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 215610
Attachments: stacktrace

Description albystar 2015-02-23 14:52:06 UTC
This issue was reported manually by thurka.
It already has 1 duplicates 


Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) Client VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13
OS: Windows 8

User Comments:
albystar: trying to run program but error showing low memory




Stacktrace: 
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.image.BufferedImage.<init>(BufferedImage.java:340)
   at com.sun.java.swing.plaf.windows.XPStyle$SkinPainter.createImage(XPStyle.java:673)
   at sun.swing.CachedPainter.paint0(CachedPainter.java:139)
Comment 1 albystar 2015-02-23 14:52:08 UTC
Created attachment 152162 [details]
stacktrace
Comment 2 Tomas Hurka 2015-02-23 14:59:51 UTC
There is a lot of images held by form editor classes. Total retained size of images is 170 MB. All big images are there several times. Please investigate if those duplicities can be removed.
Comment 3 Tomas Pavek 2015-09-10 16:42:36 UTC
The memory held by images should be significantly improved by the fix in bug 251623. But the actual OOME here is from painting a tabbed pane with no obvious relation to GUI builder.