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 238666 - [OOM] org.netbeans.modules.csl.navigation.BreadCrumbsTask blocks AWT
Summary: [OOM] org.netbeans.modules.csl.navigation.BreadCrumbsTask blocks AWT
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 238337 238620 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-21 16:28 UTC by IGweJK
Modified: 2016-07-07 07:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205477


Attachments
stacktrace (1.89 KB, text/plain)
2013-11-21 16:28 UTC, IGweJK
Details
nps Snapshot (27.53 KB, application/octet-stream)
2013-11-21 16:34 UTC, Tomas Hurka
Details
Sample file to reproduce this issue (483.19 KB, text/css)
2013-11-26 09:54 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description IGweJK 2013-11-21 16:28:09 UTC
This issue was reported manually by thurka.
It already has 1 duplicates 


Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 8

User Comments:
IGweJK: NB said it's saving snapshot. Well, that took forever. I shut down and restarted...and here I am again, ratting out NB's drunkeness.




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.util.TreeMap.put(TreeMap.java:533)
   at javax.management.openmbean.CompositeDataSupport.makeMap(CompositeDataSupport.java:142)
   at javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:118)
   at sun.management.StackTraceElementCompositeData.getCompositeData(StackTraceElementCompositeData.java:74)
   at sun.management.StackTraceElementCompositeData.toCompositeData(StackTraceElementCompositeData.java:60)
   at sun.management.ThreadInfoCompositeData.getCompositeData(ThreadInfoCompositeData.java:84)
Comment 1 IGweJK 2013-11-21 16:28:10 UTC
Created attachment 142453 [details]
stacktrace
Comment 2 Tomas Hurka 2013-11-21 16:34:49 UTC
Created attachment 142455 [details]
nps Snapshot

nps Snapshot extracted from heap dump. AWT is blocked by "org.netbeans.modules.csl.navigation.BreadCrumbsTask" thread, which has really deep stack traces.
Comment 3 Tomas Hurka 2013-11-21 16:43:36 UTC
The problem is caused by opening of 549K css file.
Comment 4 Tomas Hurka 2013-11-21 17:39:58 UTC
*** Bug 238620 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Mysik 2013-11-26 09:53:50 UTC
*** Bug 238337 has been marked as a duplicate of this bug. ***
Comment 6 Tomas Mysik 2013-11-26 09:54:56 UTC
Created attachment 142580 [details]
Sample file to reproduce this issue

Attaching a sample file which can be used to reproduce this issue.

Thanks.
Comment 7 Tomas Mysik 2013-11-26 09:56:30 UTC
Adding "OOM" to the issue summary (perhaps this issue is P2?).
Comment 8 Milutin Kristofic 2013-11-26 12:24:00 UTC
There are thousands of equal StructureItem objects in css file since CSSRuleStructureItem declares equals just on element name. And file Tomas posted is preparing same structureItems thousand times. Nodes Api is trying to work with equals and it makes this mess. 

I will discuss with Svata, how to fix this.
Comment 9 Martin Balin 2016-07-07 07:32:09 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss