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.
Build: NetBeans IDE 8.0.2 (Build 201411181905) VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15 OS: Windows 8 User Comments: kpatrick2: <Please provide a description of the problem or the steps to reproduce> Stacktrace: java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.Arrays.copyOfRange(Arrays.java:0) at java.lang.StringBuffer.toString(StringBuffer.java:0) at java.net.URLStreamHandler.toExternalForm(URLStreamHandler.java:0) at java.net.URL.toExternalForm(URL.java:0) at org.netbeans.JarClassLoader$JarSource.getIdentifier(JarClassLoader.java:830) at org.netbeans.Archive.getData(Archive.java:190)
Created attachment 155109 [details] stacktrace
OOME is caused by parsing large (36M) javascript file.
The file is not parsed, but is lexed. There is created over 13 millions DefaultTokens from lexer. The lexing is processed even when the file is not opened. The initial signal comes from RepositoryUpdater, which ask for the Parser. The parser itself recognized that this file is so big and returns empty result. But then other features try to run (JsHints etc.) And some features requires TokenSequence and the file start to be lexed even if the file is not opened.
I have add check into JsIndexer. So the indexer doesn't process such file at all now. But coloring is run still from csl - SemanticHighligter. There should be check whether to provide coloring for such big files.
Integrated into 'main-silver', will be available in build *201509110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1c75ff698dbb User: Petr Pisl <ppisl@netbeans.org> Log: #254054 - OutOfMemoryError: GC overhead limit exceeded
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss