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 181300 - Sniffing resolver works in AWT thread; this freezes UI in the case file system is slow
Summary: Sniffing resolver works in AWT thread; this freezes UI in the case file syste...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: PERFORMANCE, THREAD
Depends on:
Blocks: 184196
  Show dependency tree
 
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
Exception Reporter:


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

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
http://hg.netbeans.org/core-main/shortlog/eb9a806f0c37

There is a builder at
http://deadlock.netbeans.org/hudson/job/prototypes-less-blocking-189979-and-181300/
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.