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 196788 - Editor code completion freezes the UI
Summary: Editor code completion freezes the UI
Status: RESOLVED DUPLICATE of bug 194653
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 19:44 UTC by vieiro
Modified: 2011-03-17 12:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (24.50 KB, text/plain)
2011-03-16 19:45 UTC, vieiro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vieiro 2011-03-16 19:44:18 UTC
I think that "org.netbeans.modules.editor.completion.CompletionImpl.keyPressed(CompletionImpl.java:383)" is invoked from within the AWT thread, it invokes 
 "org.netbeans.modules.java.source.JavadocHelper"  which opens an HTTP connection that hangs the UI.

I'm attaching a stack trace in a moment.

(I'm setting this as P2 as I think this could be a major problem)
Comment 1 vieiro 2011-03-16 19:45:43 UTC
Created attachment 107063 [details]
Stack trace

Special attention to AWT-EventQueue-1



"AWT-EventQueue-1" prio=6 tid=10377c000 nid=0x12228f000 runnable [12228c000]
   java.lang.Thread.State: TIMED_WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <7c0ab0b68> (a java.util.concurrent.FutureTask$Sync)
	at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1011)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1303)
	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:227)
	at java.util.concurrent.FutureTask.get(FutureTask.java:91)
	at org.netbeans.modules.java.source.JavadocHelper.doGetJavadoc(JavadocHelper.java:323)
Comment 2 Dusan Balek 2011-03-17 12:37:15 UTC
What is your IDE build number? Is should be fixed since 201103090000.

*** This bug has been marked as a duplicate of bug 194653 ***
Comment 3 vieiro 2011-03-17 12:50:46 UTC
Hi,

Sorry I forgot to add details:

Product Version: NetBeans Platform Dev (Build 201103120400)
Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334
System: Mac OS X version 10.6.6 running on x86_64; MacRoman; es_ES (test)
Userdir: /Users/antonio/.netbeans/dev

I'm afraid the problem is still there. Let me know if I can be of any help.

Cheers,
Antonio