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 251896 - OutOfMemoryError: Many instances of DefaultToken and ArrayList (JS scanning)
Summary: OutOfMemoryError: Many instances of DefaultToken and ArrayList (JS scanning)
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Lexer (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-16 19:23 UTC by inonit
Modified: 2016-07-07 07:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 216804


Attachments
stacktrace (1.93 KB, text/plain)
2015-04-16 19:23 UTC, inonit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description inonit 2015-04-16 19:23:04 UTC
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-b14
OS: Mac OS X

User Comments:
inonit: unsure, happened on startup




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at com.sun.proxy.$Proxy1.fileChanged(.java:0)
   at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEventImpl(FCLSupport.java:178)
   at org.openide.filesystems.FCLSupport$DispatchEventWrapperSingle.dispatchAllEventsSync(FCLSupport.java:224)
   at org.openide.filesystems.FCLSupport$DispatchEventWrapper.dispatchEvent(FCLSupport.java:137)
   at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:105)
   at org.openide.filesystems.FileObject$ED.dispatch(FileObject.java:1318)
Comment 1 inonit 2015-04-16 19:23:05 UTC
Created attachment 153239 [details]
stacktrace
Comment 2 Jaroslav Havlin 2015-08-13 12:48:01 UTC
Almost 3.5 million instances of org.netbeans.lib.lexer.token.DefaultToken.
Also over 2 million instances of ArrayList (most of them seem to contain jdk.nashorn.internal.ir.* objects and having GC root at o.n.m.parsing.impl.indexing.FileObjectCrawler#1 - java frame at o.n.m.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:3146)).

So the problem occurred probably during background scanning of JavaScript sources.

Reassigning to editor/Lexer. Please evaluate.
(May be duplicate of bug 252501.)
Thank you.
Comment 3 Martin Balin 2016-07-07 07:28:06 UTC
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