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 - OOM - JSErrors
Summary: OOM - JSErrors
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 238570 247587 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-15 09:39 UTC by Exceptions Reporter
Modified: 2015-03-26 09:24 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205292


Attachments
stacktrace (2.73 KB, text/plain)
2013-11-15 09:39 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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!