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.
see 3 attached stack traces, on every editor tab switch we access file system from EDT at least 3 times, this freezes IDE when accessing files through slow NFS.
Created attachment 124253 [details] stacktrace1
Created attachment 124254 [details] stacktrace2
Created attachment 124255 [details] stacktrace3
to make it worse FileObj.canWrite does a couple fs requests: - File.isFile (stack traces already attached) - File.canWrite (see the new stack trace)
Created attachment 124659 [details] canWrite stack trace
As far as I understand, all of this is actually done just to change (if needed) name font to italic, which probably could be checked off the EDT and updated later.
here is a slowness report: http://statistics.netbeans.org/analytics/exception.do?id=624085
and it looks like many of the latest reports in: http://statistics.netbeans.org/analytics/detail.do?id=168161 are about the same issue
I am having a look ...
Created attachment 129548 [details] patch-for-test-01
I have attached a small patch that should help. BUT I don't know whether it can cause some regression. Passing to the owner of multi view where the patch is done for evaluation. Also as I did not know the correct owner I have tried window system (if multiview is handled by someone else please re-assigne). Egor, can you also please try the attached patch whether it will help (and not cause a regression)? Thanks a lot, David
Thanks David, I've tried it and it works fine! No fs access from EDT during tab switches.
Thanks for the test! Now we need to make sure that the patch will not cause a regression. Especially whether the name will be always correctly displayed on multiview. After the change is reviewed I will apply the patch ...
I have no idea what EditorSupport does when updating name, reassigning to openide.text owner.
If there are not objections, I will apply the patch.
Changeset: 7da69869efb8 Author: David Strupl <dstrupl@netbeans.org> Date: 2012-12-20 11:21 Message: Do not call updateName when the editor becomes visible (e.g. after switching tabs).
*** Bug 218236 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201212220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7da69869efb8 User: David Strupl <dstrupl@netbeans.org> Log: Issue #218234 - Accessing file system in EDT: 3 times File.isFile on editor tab switch Do not call updateName when the editor becomes visible (e.g. after switching tabs).