NetBeans IDE Dev (Build 201212050001) (#115c4cf91d73)
Linux version 3.0.0-12-generic running on amd64
1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04; Oracle Corporation
Java(TM) SE Runtime Environment 1.7.0_10-ea-b15
cs_CZ (nb); UTF-8
I was working on a simple 1 class Java application. I ran it 3 times, debugged it once and then ran it again twice. Then I opened Favorites view and added a directory with 4 *.class files, 2 *.java files and 1 *.txt file. I opened Hadanka.java into Editor and scrolled down a bit. After a while the OOME occurred.
I can provide both the simple project and mentioned Java file if necessary.
Heap dump was provided off-line to Tomas Hurka.
Created attachment 128919 [details]
Hadanka.java file 100% reproducing the OOME.
Further investigation showed that it's enough just to open this Hadanka.java file and after few seconds the IDE becomes unresponsive.
Heap dump is available at <http://netbeans.org/projects/profiler/downloads/download/Heapdumps/heapdump-223339.zip>
Reassigning to java/hints. 90% of the heap is retained by org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl#1 842,121,908 (90.7%)
Integrated into 'main-golden', will be available in build *201212070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jan Lahoda <email@example.com>
Log: #223339: handling of many embedded loops without exponential explosion
Thanks for the testcase.
Product Version: NetBeans IDE Dev (Build 201212090001)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-ea-b15
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev
Verified. Thanks for the quick fix.
I had the same issue and referenced here.
I already attached the file to the following issue.
Thanks for your concern.
*** Bug 224422 has been marked as a duplicate of this bug. ***
*** Bug 224335 has been marked as a duplicate of this bug. ***
*** Bug 224580 has been marked as a duplicate of this bug. ***