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 258253

Summary: OutOfMemoryError: Java heap space
Product: javascript Reporter: Exceptions Reporter <exceptions_reporter>
Component: DebuggerAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 222866
Attachments: stacktrace

Description Exceptions Reporter 2016-03-05 07:23:41 UTC
This bug was originally marked as duplicate of bug 253291, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 10

User Comments:
GUEST: Only start Netbeans ide..




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3332)
   at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
   at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:421)
   at java.lang.StringBuffer.append(StringBuffer.java:272)
   at org.json.simple.JSONArray.toJSONString(JSONArray.java:91)
Comment 1 Exceptions Reporter 2016-03-05 07:23:42 UTC
Created attachment 158751 [details]
stacktrace
Comment 2 Martin Entlicher 2016-05-21 12:50:23 UTC
One single response JSON object has 441 MB. This is a defect of the protocol that it does not have any limits for the message size.
The affected class is: org.netbeans.modules.web.webkit.debugging.spi.Response