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.
Summary: | AWT EventQueue blocked inserting code template | ||
---|---|---|---|
Product: | editor | Reporter: | mklaehn <mklaehn> |
Component: | Completion & Templates | Assignee: | Dusan Balek <dbalek> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmirilovic |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Other | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
five threaddumps made within 15 minutes while the EventQueue is blocked
profiling snapshot of code template expansion for "fore" after ca 2 minutes blockng the EventQueue small project to reproduce |
Could you please create a profiler snapshot and attach it to the issue? Thanks. i'll attach profiling snapshot shortly. had to switch system due to limited processing power and memory. same build but on mac. was win 2k previously. Created attachment 106828 [details]
profiling snapshot of code template expansion for "fore" after ca 2 minutes blockng the EventQueue
problem is also present in netbeans-trunk-nightly-201103080000-ml.zip Thanks for the snapshot. It seems that there is an infinite loop inside JavaCodeTemplateProcessor.updateDefaultValues(). Could you please extract a simple reproducible test case from your sources and attach it to the issue? Thanks. Created attachment 106845 [details]
small project to reproduce
the GroupingDataObject classes are the relevant ones. while trying to initialize the array i stumbled upon this problem.
Thanks for the reproducible test case. Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/f79f4efe2a99 The patch seems fine to me. Integrated into 'main-golden', will be available in build *201103110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f79f4efe2a99 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #196443: AWT EventQueue blocked inserting code template - fixed. Product Version: NetBeans IDE Dev (Build 201103140400) Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Verified in the trunk build above. I agree with integration in 70. Fix integrated into release70. http://hg.netbeans.org/releases/rev/5c5131901dc7 Verified in 70: Product Version: NetBeans IDE 7.0 RC1 (Build 201103160000) Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) |
Created attachment 106825 [details] five threaddumps made within 15 minutes while the EventQueue is blocked I've been editing in a constructor and wanted to have for each loop inserted and the EventQueue is blocked since pressing the tab key to expand it. Currently it's going on 15 minutes and the cpu is fully utilized! I'm using nbm-and-javadoc-6771-on-110303. I will attach some Threaddumps made with visualVM.