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 224555 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: JSON (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-07 06:20 UTC by soloincc
Modified: 2015-02-04 03:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 197243


Attachments
stacktrace (3.15 KB, text/plain)
2013-01-07 06:20 UTC, soloincc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soloincc 2013-01-07 06:20:55 UTC
Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
VM: OpenJDK 64-Bit Server VM, 20.0-b12, OpenJDK Runtime Environment, 1.6.0_24-b24
OS: Linux

Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.lang.String.toCharArray(String.java:2737)
   at com.oracle.nashorn.runtime.Source.<init>(Source.java:80)
   at org.netbeans.modules.javascript2.editor.parser.JsonParser.parseSource(JsonParser.java:64)
   at org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:133)
   at org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:113)
   at org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseSource(SanitizingParser.java:101)
Comment 1 soloincc 2013-01-07 06:20:56 UTC
Created attachment 129946 [details]
stacktrace
Comment 2 Petr Cyhelsky 2013-01-08 15:33:12 UTC
There are two instances of europeana-swe.json held in memory (char[] #162162 and #162163) one is just being parsed. Maybe it would be cool not to parse it or to show some dialogue whether user wants to parse such a big file (70M)
Comment 3 Petr Hejl 2013-01-08 15:41:00 UTC
Petre this might have the same solution (disable parsing) as for Jarda's file. Thanks.
Comment 4 Petr Pisl 2013-09-12 09:45:55 UTC
Yes, we can just skip the parsing of such big file. The limit is 1 mb for javascript files.
Comment 5 Quality Engineering 2015-02-04 03:31:33 UTC
Reported for 7.3.x or earlier, no new info since then -> closing as worksforme, please reopen in case you see it.