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 255518 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: VERIFIED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P4 normal (vote)
Assignee: Lou Dasaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-23 15:03 UTC by Exceptions Reporter
Modified: 2015-12-05 13:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220140


Attachments
stacktrace (3.44 KB, text/plain)
2015-09-23 15:03 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-09-23 15:03:52 UTC
This issue was reported manually by jhavlin.
It already has 1 duplicates 


Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25
OS: Linux

User Comments:
GUEST: Was just restarting netbeans.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOfRange(Arrays.java:3664)
   at java.lang.StringBuffer.toString(StringBuffer.java:671)
   at org.openide.filesystems.XMLMapAttr$Attr.decode(XMLMapAttr.java:657)
   at org.openide.filesystems.XMLMapAttr.createAttributeAndDecode(XMLMapAttr.java:146)
   at org.openide.filesystems.DefaultAttributes$Table$3.internalStartElement(DefaultAttributes.java:1030)
   at org.openide.filesystems.DefaultAttributes$ElementHandler.startElement(DefaultAttributes.java:1199)
Comment 1 Exceptions Reporter 2015-09-23 15:03:54 UTC
Created attachment 156389 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-09-23 15:12:48 UTC
The issue is caused by scanning of Python sources. There is a lot of string instances held by CachingIndexer$LanguageIndex for PythonLanguage in the heap dump.

Instances of class org.netbeans.modules.python.editor.PythonParerResult have retained size of 463 MB.

Reassigning to python/Code.
Please evaluate. Thank you.
Comment 3 Lou Dasaro 2015-09-23 15:53:41 UTC
Thank you for your report. This has been fixed in Development and the forthcoming 8.1 release as a result of the GSF-to-CSL conversion performed last winter. 
No patch is available for 8.0.2
Leaving this open until 8.1 FCS
Comment 4 Lou Dasaro 2015-11-27 18:41:45 UTC
Unable to reproduce. I believe this has been fixed in the .151118 release or the Python plugin, available from the update center in NetBeans IDE 8.1.

If I am wrong, please reopen with a reproducible test case, and my apologies.