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 146063 - Navigator blocks startup in AWT thread
Summary: Navigator blocks startup in AWT thread
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-09-03 16:04 UTC by Jaroslav Tulach
Modified: 2008-09-05 06:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump of the blocked AWT thread (5.16 KB, text/plain)
2008-09-03 16:05 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2008-09-03 16:05:00 UTC
Initialization of Navigator window blocks AWT for ages. Can the updateContext be called outside of AWT thread?
Comment 1 Jaroslav Tulach 2008-09-03 16:05:43 UTC
Created attachment 68958 [details]
Thread dump of the blocked AWT thread
Comment 2 David Simonek 2008-09-03 16:26:16 UTC
I don't think so - it was designed to run in EQ.
Comment 3 David Simonek 2008-09-03 16:32:35 UTC
It won't be easy to change architecture to call NavigatorPanel.panelActivated outside EQ and honestly, it doesn't make
much sense to me. Incompatible API change that doesn't make sense - I'm against it. I think it should be fixed on the
side of providers, I think they can show "please wait" and return from panelActivated quickly.

Passing to java/navigation.
Comment 4 Tomas Zezula 2008-09-03 17:17:34 UTC
dsimonek: Thank you for your great idea:
>I think they can show "please wait" and return from panelActivated quickly
The problem is that this is exactly what we are doing, all the parsing is done asynchromously in JavaSource loop, the "slow" code is just a code where we
are looking if the file has a classpath (is a valid java file).
The question why is it so slow is rather for core team, but anyway everyone knows the answer.

Comment 5 Tomas Zezula 2008-09-04 10:55:50 UTC
http://hg.netbeans.org/main/rev/c9c70f7a7e83
Comment 6 Jaroslav Tulach 2008-09-04 13:40:30 UTC
Thanks for replaning out of AWT.
Comment 7 Quality Engineering 2008-09-05 06:15:50 UTC
Integrated into 'main-golden', will be available in build *200809050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c9c70f7a7e83
User: Tomas Zezula <tzezula@netbeans.org>
Log: #146063:Navigator blocks startup in AWT thread