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.
Product Version: NetBeans IDE Dev (Build 201106280600) Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17 (JDK build 1.7.0-b147) System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) Something seems to be wrong in the latest build. After using the IDE for about 2 minutes some runaway task begins consuming 100% cpu and functionality like Fix Imports or Refactoring block waiting for a "lengthy operation" to complete. I'm going to attach a thread dump and saved CPU Sampling I took using VisualVM. I suspect the runaway task is org.netbeans.api.lexer.TokenSequence.checkModCount() I am flagging this as high priority because it requires me to restart the IDE every two minutes.
Created attachment 109200 [details] thread dump
Created attachment 109201 [details] cpu sampling taken using VisualVM
To reproduce, use the IDE for a bit (editing code, compiling, etc) then switch away to another task (Microsoft Word in my case), then switch back and continue coding. A few seconds later you will notice a runaway task eating 100% cpu.
Another clue: Netbeans 7.0.1 RC1 does not exhibit this bug.
reassign to perf. team for first evaluation
This issue probably depends on the particular project and source file. The steps to reproduce are too generic. This problem definitely does not occur for any project and any source file. Can you provide better steps to reproduce? From the nps file, it looks like there is a endless loop in org.netbeans.modules.j2ee.persistence.editor.completion.CCParser.findAnnotationStart()
prior to investigation, may it be a duplicate of issue 199773?
at least thread dump have org.netbeans.modules.j2ee.persistence.editor.completion.CCParser.findAnnotationStart(CCParser.java:263) and it was the reason for infinite loop. *** This bug has been marked as a duplicate of bug 199773 ***