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 238277 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 244209 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-12 15:33 UTC by ain
Modified: 2014-07-26 01:24 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205195


Attachments
stacktrace (3.13 KB, text/plain)
2013-11-12 15:33 UTC, ain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ain 2013-11-12 15:33:33 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Mac OS X

User Comments:
ain: 2 Yeoman projects open, hangs on background scan.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.netbeans.modules.css.lib.NbParseTreeBuilder.consumeToken(NbParseTreeBuilder.java:228)
   at org.antlr.runtime.debug.DebugTokenStream.consume(DebugTokenStream.java:62)
   at org.netbeans.modules.css.lib.Css3Parser.ws(Css3Parser.java:12567)
   at org.netbeans.modules.css.lib.Css3Parser.styleSheet(Css3Parser.java:514)
   at org.netbeans.modules.css.lib.nbparser.CssParser.parse(CssParser.java:117)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:605)
Comment 1 ain 2013-11-12 15:33:35 UTC
Created attachment 142101 [details]
stacktrace
Comment 2 Exceptions Reporter 2014-05-07 11:54:49 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=205195
Comment 3 Marek Fukala 2014-07-25 10:21:26 UTC
730762, 723956  - everything looks normal. It seems the parsing crashed on a really big file.
Comment 4 Marek Fukala 2014-07-25 10:21:56 UTC
*** Bug 244209 has been marked as a duplicate of this bug. ***
Comment 5 Marek Fukala 2014-07-25 10:34:48 UTC
725653 - dtto
Comment 6 Marek Fukala 2014-07-25 11:11:07 UTC
Workarounded by introducing a limit to the snapshots the CssParser can properly handle. Anything beyond 2MB will not be parsed.

searching for changes
summary:     #238277 - adding a 2MB limit to the css source lenght in CssParser
Comment 7 Quality Engineering 2014-07-26 01:24:44 UTC
Integrated into 'main-silver', will be available in build *201407260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/792bc9ddfef6
User: Marek Fukala <mfukala@netbeans.org>
Log: #238277 - adding a 2MB limit to the css source lenght in CssParser