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: | netbeans hangs when i try to do a code-template-expand | ||
---|---|---|---|
Product: | editor | Reporter: | jamespb <jamespb> |
Component: | Completion & Templates | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | tor |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
dump file
user dir dump file |
Description
jamespb
2007-09-25 00:46:02 UTC
Created attachment 49401 [details]
dump file
Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709141330) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Userdir: C:\Users\James\.netbeans\6.0beta1 Created attachment 49402 [details]
user dir
Looks like a threading problem in the code completion code. However, it looks like this code was -just- changed this morning. Your thread dump matches the previous revision of this file, which does not include the fix for issue 116391 which also talks about completion related deadlocks. Since Dusan made those changes I'm starting evaluation with him in case this is indeed the same bug. James, perhaps you can grab a new build from this afternoon and see if it works better. We've also checked in various changes to RHTML indentation today so hopefully that should be mostly working now. By the way, I saw that you modified the Java-side of completion as well. Can you explain what's going on here? (I probably have to make similar adjustments to the Ruby completion) AWT thread should not be blocked in the situation when user tries to insert a common prefix of all items contained in the completion result list (by pressing Tab when the code completion popup is visible) and the result list is not up-to-date (some of the completion providers did not respond yet to refresh() caused by the recent document modifications). Since refresh() could be a time consuming task (for some special completion providers) we decided that it is better just to beep and do nothing than wait(). Fixed. Checking in CompletionImpl.java; /cvs/editor/completion/src/org/netbeans/modules/editor/completion/CompletionImpl.java,v <-- CompletionImpl.java new revision: 1.84; previous revision: 1.83 done I got another hang in 4185 - I'm reopening this since I think 4185 is after dbalek's Tue Sep 25 11:28:06 entry. (Probably just a duplicate report if that's not the case) Slightly different way to get this problem though - I hit as<ctrl-space> this time, not doc<tab>. Dump included. Created attachment 49536 [details]
dump file
Is seems that 4185 does not contain my fix of this issue since your thread dump matches the 1.83 revision of CompletionImpl.java. Please try to use some newer build. |