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 250692 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Inspection (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-25 13:55 UTC by salmander
Modified: 2015-03-12 14:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 215666


Attachments
stacktrace (2.28 KB, text/plain)
2015-02-25 13:55 UTC, salmander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description salmander 2015-02-25 13:55:12 UTC
This issue was reported manually by thurka.
It already has 1 duplicates 


Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
salmander: Crashed




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 salmander 2015-02-25 13:55:13 UTC
Created attachment 152213 [details]
stacktrace
Comment 2 Tomas Hurka 2015-02-25 13:57:17 UTC
Retained size of org.netbeans.modules.web.inspect.webkit.WebKitPageModel#1 is 278,888,268 bytes.
Comment 3 Jan Stola 2015-03-12 14:46:08 UTC
The heap dump shows around 180000 elements loaded by the inspected page. We cannot do much when the inspected page is that large. I have added a warning when the number of elements reaches 100000. This warning tells the user (s)he may run into OutOfMemoryError and suggests closing of the page/stopping of the page inspection.

Modified file: https://hg.netbeans.org/web-main/rev/6c82c8d42e2a