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 250002

Summary: OutOfMemoryError: Java heap space
Product: javascript Reporter: bertl
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: ainos984, dcosacox, exceptions_reporter, pieter_djc, tzezula, volodia
Priority: P2    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208141
Attachments: stacktrace

Description bertl 2015-01-24 10:22:07 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: OpenJDK 64-Bit Server VM, 25.40-b14, OpenJDK Runtime Environment, 1.8.0_40-b10
OS: Linux

User Comments:
GUEST: Error of memory.

GUEST: blah

bertl: at startup

GUEST: Code complete.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.ArrayDeque.doubleCapacity(ArrayDeque.java:157)
   at java.util.ArrayDeque.addLast(ArrayDeque.java:247)
   at java.util.ArrayDeque.add(ArrayDeque.java:418)
   at org.netbeans.modules.parsing.lucene.LuceneIndex.query(LuceneIndex.java:192)
   at org.netbeans.modules.parsing.lucene.DocumentIndexImpl.query(DocumentIndexImpl.java:284)
   at org.netbeans.modules.parsing.impl.indexing.lucene.LayeredDocumentIndex.query(LayeredDocumentIndex.java:205)
Comment 1 bertl 2015-01-24 10:22:10 UTC
Created attachment 151670 [details]
stacktrace
Comment 2 Tomas Zezula 2015-01-26 14:04:33 UTC
Java Script indexer loads all these documents:
    at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport$Query.execute(QuerySupport.java:569)
    at org.netbeans.modules.parsing.spi.indexing.support.QuerySupport.query(QuerySupport.java:368)
    at org.netbeans.modules.javascript2.editor.index.JsIndex.query(JsIndex.java:204)
Comment 3 Tomas Zezula 2015-01-26 14:06:45 UTC
*** Bug 249983 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Hurka 2015-02-02 17:09:35 UTC
*** Bug 249980 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Hurka 2015-02-18 16:02:58 UTC
*** Bug 250497 has been marked as a duplicate of this bug. ***
Comment 6 Tomas Hurka 2015-02-24 10:24:46 UTC
*** Bug 250652 has been marked as a duplicate of this bug. ***
Comment 7 Tomas Hurka 2015-02-24 10:25:37 UTC
A lot of duplicates -> P2.
Comment 8 Tomas Hurka 2015-02-25 17:56:38 UTC
*** Bug 250704 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Hurka 2015-02-25 18:04:01 UTC
*** Bug 250705 has been marked as a duplicate of this bug. ***
Comment 10 Tomas Hurka 2015-02-26 13:53:08 UTC
*** Bug 250728 has been marked as a duplicate of this bug. ***
Comment 11 Petr Pisl 2015-07-17 16:07:06 UTC
All the reports contains many lucine documents. It seems that many items are obtained from the index. This should be already fixed in dev build, but there is still one case when it can happen. When the user press CTRL+SPACE twice.
Comment 12 Petr Pisl 2015-07-20 11:55:53 UTC
Should be fixed now. The algorithm for obtaining many code completion items from index was changed.