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 208950 - CSS3 parsing: OutOfMemoryError: Java heap space
Summary: CSS3 parsing: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 209079 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-28 13:05 UTC by megazoll
Modified: 2012-04-19 10:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 185372


Attachments
stacktrace (2.89 KB, text/plain)
2012-02-28 13:05 UTC, megazoll
Details

Note You need to log in before you can comment on or make changes to this bug.
Description megazoll 2012-02-28 13:05:14 UTC
Build: NetBeans IDE 7.1 (Build 201112071828)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.antlr.runtime.BitSet.<init>(BitSet.java:73)
   at org.antlr.runtime.BitSet.of(BitSet.java:83)
   at org.netbeans.modules.css.lib.Css3Parser.syncTo_IDENT_RBRACE(Css3Parser.java:6884)
   at org.netbeans.modules.css.lib.Css3Parser.ruleSet(Css3Parser.java:4637)
   at org.netbeans.modules.css.lib.Css3Parser.bodyset(Css3Parser.java:2433)
   at org.netbeans.modules.css.lib.Css3Parser.bodylist(Css3Parser.java:2316)
Comment 1 megazoll 2012-02-28 13:05:16 UTC
Created attachment 116179 [details]
stacktrace
Comment 2 Marek Fukala 2012-04-11 13:36:38 UTC
A lot of memory/performance issue has been addressed in the issue #207991, but I'll keep this one since I haven't optimized the css parsing/nodes size much yet.
Comment 3 Marek Fukala 2012-04-11 14:05:49 UTC
*** Bug 209079 has been marked as a duplicate of this bug. ***
Comment 4 Marek Fukala 2012-04-18 13:42:22 UTC
changeset:   220345:2457d34fb19f
summary:     #208950 - css parse tree TokenNode-s don't hold references to ANTL's CommonToken which are very large objects holding own copy of the token image along with many internal integer fields.
Comment 5 Quality Engineering 2012-04-19 10:00:35 UTC
Integrated into 'main-golden', will be available in build *201204190400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2457d34fb19f
User: Marek Fukala <mfukala@netbeans.org>
Log: #208950 - css parse tree TokenNode-s don't hold references to ANTL's CommonToken which are very large objects holding own copy of the token image along with many internal integer fields.