Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 181300 - Sniffing resolver works in AWT thread; this freezes UI in the case file system is slow
Sniffing resolver works in AWT thread; this freezes UI in the case file syste...
Product: platform
Classification: Unclassified
Component: Data Systems
PC Solaris
: P3 (vote)
: 7.0
Assigned To: Jaroslav Tulach
Depends on:
Blocks: 184196
  Show dependency treegraph
Reported: 2010-02-27 05:09 UTC by Vladimir Kvashin
Modified: 2010-09-17 18:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT

AWT thread dump (6.71 KB, text/plain)
2010-02-27 05:10 UTC, Vladimir Kvashin

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2010-02-27 05:09:38 UTC
When I browse a slow file system in explorer (say, via adding to favorites), UI freezes for significant time (10-20 seconds and more). This occurs when I try to expand a node.

Thread dump (see attachment) shows that a sniffing resolver works in the AWT thread. I believe this is incorrect.
Comment 1 Vladimir Kvashin 2010-02-27 05:10:32 UTC
Created attachment 94582 [details]
AWT thread dump
Comment 2 Jaroslav Tulach 2010-04-26 18:36:51 UTC
This one will be harder to solve. Leaving for later version.
Comment 3 Jaroslav Tulach 2010-09-10 06:06:02 UTC
My current idea is to display dummy node and later replace it with real one (with icon, properties, actions). I am not sure how reliable that is going to be. I am working on a less-blocking-189979-and-181300 branch at

There is a builder at
Comment 4 Jaroslav Tulach 2010-09-10 19:14:35 UTC
I tried to delay call to Dataobject.find and do it later from non-AWT thread. The code seems to get far more fragile and I am afraid to do that.

So rather then fixing, let's try some defence: How often this happens? How much files your directories contain? What is their mime type? What are their extensions? Can you genereate self-profiling snapshot?

Btw. when you browse the same directory in Files tab, is it as slow as in Favorites one? If not, then I know what to solve...
Comment 5 Jaroslav Tulach 2010-09-15 16:20:26 UTC
No cooperation, no fix.
Comment 6 Jesse Glick 2010-09-17 18:30:04 UTC
Correcting resolution.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo