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 238414

Summary: OOM - JSErrors
Product: javascript Reporter: Exceptions Reporter <exceptions_reporter>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal CC: agamez73, marjss, roti, sanafer_1109, sturi, tveimo, XopoIII
Priority: P1    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205292
Attachments: stacktrace

Description Exceptions Reporter 2013-11-15 09:39:51 UTC
This bug was originally marked as duplicate of bug 225440, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows Vista

User Comments:
GUEST: <Please provide a description of the problem or the steps to reproduce>www

GUEST: Fail

GUEST: Starting up. Seems our codebase is too big to parse.

GUEST: n

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

marjss: After restarting the Netbeans due to power failure.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:2367)
   at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
   at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
   at java.lang.StringBuilder.append(StringBuilder.java:132)
   at jdk.nashorn.internal.runtime.ErrorManager.format(ErrorManager.java:112)
Comment 1 Exceptions Reporter 2013-11-15 09:39:53 UTC
Created attachment 142220 [details]
stacktrace
Comment 2 Petr Pisl 2014-02-03 14:01:44 UTC
Exception Reports 700473, 696065, 692434, 691587 and 690653 are cased by CSS org.netbeans.modules.css.lib.api.properties.FixedTextGrammarElement 

The first one 653540 and the second one 677033 are coming from JSErrorManager and this should be fixed as issue #225440. 

Reassigning to the css.
Comment 3 Marek Fukala 2014-07-22 12:48:51 UTC
*** Bug 238570 has been marked as a duplicate of this bug. ***
Comment 4 Exceptions Reporter 2014-11-21 16:43:01 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=205292
Comment 5 Milutin Kristofic 2015-03-12 14:23:33 UTC
I am sorry but they aren't heap dumps for reports 700473, 696065, 692434, 691587 and 690653 that Petr said are caused by CSS. They are before NB 8.0


I checked following reports that are from NB 8.0.1 and NB 8.0.2 and they are all with big Javascript file or many thousands of JSErrors.

I checked all of these reports:
769307, 767781, 766836, 766752, 766529, 766285, 765126, 765090, 764815, 763220, 763151, 763089, 763088, 762905, 762705, 762255, 761930, 761889, 760967, 760874, 760810, 760280, 760262, 760164, 760122, 759611, 758577, 758058

I checked also this report 761904 but it was corrupted. 

Can Javascript team look at these issues? If you find any of current reports have problem with CSS, please notify me about that. 

Thank you.
Comment 6 Petr Pisl 2015-03-24 15:40:03 UTC
The problem was in parsing files, that has  .js extension with json content and the content is corrupted. Then the error from parser usually contains whole file as a string and if there is many errors, then the content was held for every error. 

Fixed in web-main.
Comment 7 Petr Pisl 2015-03-24 16:01:14 UTC
*** Bug 247587 has been marked as a duplicate of this bug. ***
Comment 8 Quality Engineering 2015-03-25 03:23:08 UTC
Integrated into 'main-silver', will be available in build *201503250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b8492045b7f6
User: Petr Pisl <ppisl@netbeans.org>
Log: #238414 - OOM - JSErrors
Comment 9 roti 2015-03-26 09:24:40 UTC
Tested, and works great!
Thanx!