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 241863 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED DUPLICATE of bug 243449
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-14 09:28 UTC by davidsalter
Modified: 2014-04-04 08:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207602


Attachments
stacktrace (3.05 KB, text/plain)
2014-02-14 09:28 UTC, davidsalter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davidsalter 2014-02-14 09:28:43 UTC
This bug was originally marked as duplicate of bug 231782, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201402100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_17-b02
OS: Mac OS X

User Comments:
GUEST: Error display at startup

GUEST: <Please provide a descripton of the problem or the steps to reproduce>

GUEST: after restart netbeans

GUEST: <Please provide a descripton of the problem or the steps to reproduce>

GUEST: starting netbeans

GUEST: Error during run NetBeans

GUEST: starting netbeans

GUEST: <Please provide a descripton of the problem or the steps to reproduce>

GUEST: ??? ???????? ????????? ?????? ??????

GUEST: starting netbeans

GUEST: Log screen

GUEST: Opened NetBeans with a couple of large PHP projects and a sizable Java project, even with max Java memory set to an exorbitant amount (e.g. 3GB).

GUEST: Shows error at startup

jorgemartins: Background scanning of projects

GUEST: start netbeans with empty cache

davidsalter: I opened the latest build of NetBeans and got this error before I did anything in the IDE.

deep_pl: START

GUEST: <Please provide a descripton of the problem or the steps to reproduce>

GUEST: just shutting down

GUEST: Open IDE. Wait for project to finish scanning. Get tons of java errors.

deep_pl: After update

GUEST: start netbeans

GUEST: <Please provide a description of the probem or the steps to reproduce>

GUEST: background scanning I think

GUEST: .

deep_pl: on update

GUEST: Started IDE; background scanning of projects sticks at 67% every time before getting this error.

GUEST: starting netbeans

GUEST: Started IDE with empty cache, "Background scanning of projects" was hung at 33%, cache went to around 4gigs, while it was usually in hundred megs

GUEST: <Please provide a description of the prblem or the steps to reproduce>

GUEST: starting netbeans

GUEST: Clicked on the shortcut to open the IDE for the first time; stuck on background scanning of projects and gave two java out of memory errors

deep_pl: On restart

GUEST: scanning project




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:2367)
   at org.netbeans.modules.parsing.impl.indexing.ClusteredIndexables$DocumentStore.addDocument(ClusteredIndexables.java:897)
   at org.netbeans.modules.parsing.impl.indexing.ClusteredIndexables$DocumentIndexCacheImpl.addDocument(ClusteredIndexables.java:376)
   at org.netbeans.modules.parsing.lucene.DocumentIndexImpl.addDocument(DocumentIndexImpl.java:126)
   at org.netbeans.modules.parsing.impl.indexing.lucene.LayeredDocumentIndex.addDocument(LayeredDocumentIndex.java:94)
   at org.netbeans.modules.parsing.spi.indexing.support.IndexingSupport.addDocument(IndexingSupport.java:157)
Comment 1 davidsalter 2014-02-14 09:28:45 UTC
Created attachment 145182 [details]
stacktrace
Comment 2 Tomas Zezula 2014-02-14 15:20:59 UTC
Infinit recursion in:
org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:110)
        at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:115)
        at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:115)
        at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:115)
        at org.netbeans.modules.javascript2.editor.index.JsIndexer.storeObject(JsIndexer.java:115)
Comment 3 Petr Pisl 2014-04-04 08:59:45 UTC

*** This bug has been marked as a duplicate of bug 243449 ***