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 255056 - OutOfMemoryError: PHP code completion (IndexQueryImpl.getTopLevelElementsImpl())
Summary: OutOfMemoryError: PHP code completion (IndexQueryImpl.getTopLevelElementsImpl())
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-07 11:49 UTC by stophi
Modified: 2016-06-21 14:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 208977


Attachments
stacktrace (2.54 KB, text/plain)
2015-09-07 11:49 UTC, stophi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stophi 2015-09-07 11:49:15 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) Client VM, 24.71-b01, Java(TM) SE Runtime Environment, 1.7.0_71-b14
OS: Windows 7

User Comments:
GUEST: I closed a project and then deleted it from disk.
NB started doing a background check while I was trying to create a new clone of a repo.

GUEST: Task Manager shows 57% and 900MB

GUEST: Started Netbeans, it freezed for ever

GUEST: Configure programa

stophi: When I came back to my computer after one hour, NetBeans didn't react anymore. The only solution was to kill the NetBeans process and start NetBeans again.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:64)
   at java.lang.StringBuilder.<init>(StringBuilder.java:97)
   at org.openide.filesystems.FileObject.constructName(FileObject.java:317)
   at org.openide.filesystems.FileObject.constructName(FileObject.java:313)
   at org.openide.filesystems.FileObject.constructName(FileObject.java:313)
   at org.openide.filesystems.FileObject.constructName(FileObject.java:313)
Comment 1 stophi 2015-09-07 11:49:17 UTC
Created attachment 155941 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-09-10 10:27:34 UTC
Duplicate 792540 moved to report 212374 (bug 253771) - JSIndex.query().
Duplicate 784905 moved to report 216519 (bug 251576) - CDNJS Libraries OOME.
Comment 3 Jaroslav Havlin 2015-09-10 10:37:52 UTC
Duplicate 768003:

The biggest object is an ArrayDeque$DeqIterator with retained size of 280 MB.
Its GC root is Java frame at o.n.m.php.editor.elements.IndexQueryImpl.getTopLevelElementsImpl().

(I think we can ignore duplicates from older releases.)

Reassigning to php/Editor. 
Please evaluate. Thank you.
Comment 4 Tomas Mysik 2016-06-21 14:38:06 UTC
Please, download NetBeans 8.1, this issue should be fixed there.

Thanks.