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 254295 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED DUPLICATE of bug 253306
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-12 07:03 UTC by Exceptions Reporter
Modified: 2015-08-12 13:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219107


Attachments
stacktrace (2.83 KB, text/plain)
2015-08-12 07:03 UTC, Exceptions Reporter
Details
Proposed patch (26.66 KB, patch)
2015-08-12 11:54 UTC, Tomas Hurka
Details | Diff
Proposed patch (5.04 KB, patch)
2015-08-12 12:44 UTC, Tomas Hurka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-08-12 07:03:38 UTC
This issue was reported manually by thurka.
It already has 1 duplicates 


Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
GUEST: Facing the problem regularly




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at org.netbeans.modules.css.lib.NbParseTreeBuilder.consumeToken(NbParseTreeBuilder.java:228)
   at org.antlr.runtime.debug.DebugTokenStream.consume(DebugTokenStream.java:62)
   at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:106)
   at org.netbeans.modules.css.lib.Css3Parser.mediaExpression(Css3Parser.java:4365)
   at org.netbeans.modules.css.lib.Css3Parser.mediaQuery(Css3Parser.java:4033)
   at org.netbeans.modules.css.lib.Css3Parser.mediaQueryList(Css3Parser.java:3650)
Comment 1 Exceptions Reporter 2015-08-12 07:03:40 UTC
Created attachment 155280 [details]
stacktrace
Comment 2 Tomas Hurka 2015-08-12 08:17:10 UTC
CssFileModel$LazyEntry instances hold Snapshots in snapshot and topLevelSnapshot instances. Snapshot in turn holds CssParse instance with all parsed data structures (TokenNode, RuleNode). It looks like CssFileModel$LazyEntry does not need parsing informations. It needs just text and two offsets.
Comment 3 Tomas Hurka 2015-08-12 11:54:36 UTC
Created attachment 155290 [details]
Proposed patch

Proposed patch - CssFileModel$LazyEntry does not hold Snapshot instances.
Comment 4 Milutin Kristofic 2015-08-12 12:02:46 UTC
I definitely agree. I was planning same with similar fix in Bug #253306 Thank you fixing it. 

Btw. you have profiler changes in suggested patch.
Comment 5 Tomas Hurka 2015-08-12 12:44:31 UTC
Created attachment 155292 [details]
Proposed patch
Comment 6 Tomas Hurka 2015-08-12 12:44:53 UTC
(In reply to Milutin Kristofic from comment #4)
> I definitely agree. I was planning same with similar fix in Bug #253306
> Thank you fixing it. 
> 
> Btw. you have profiler changes in suggested patch.
Sorry, fixed.
Comment 7 Milutin Kristofic 2015-08-12 13:47:55 UTC

*** This bug has been marked as a duplicate of bug 253306 ***