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.
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4040-on-091003) VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Windows XP, 5.1, x86 User Comments: GUEST: Switching to NB. Most likely it was swapped out. Maximum slowness yet reported was 30324 ms, average is 16682
Created attachment 89004 [details] nps snapshot
AWT is stuck on java.io.File.canWrite(). Versioning has to call this method, is there a chance you don't access FS in AWT? Please evaluate. The first two calls come from org.openide.nodes.FilterNode, the third then from CloneableEditorSupport.
Maybe PasteAction state could be updated asynchronously out of AWT
Created attachment 91565 [details] nps snapshot
It has over 100 duplicates already. Can anyone take a look at it?
http://statistics.netbeans.org/exceptions/exception.do?id=361926 is about canWrite being slow. http://statistics.netbeans.org/exceptions/exception.do?id=360317 is about canWrite being slow. Seems to me that recent reports that took over 10s lead to versioning. But looking at 360270, the versioning is unlikely to be the cause (as there is just a single query canWrite state). There is another thread with does File.listFiles (but again only once), but that may be the cause of the slowdown. Maybe WinNT system is blocked by that query.
Let's use this issue to track: http://statistics.netbeans.org/exceptions/exception.do?id=370387 Building an editor tooltip seems to require disk access! That is unfortunate, the CloneableEditorSupport already knows whether the file is read-only or read write.
(In reply to comment #7) > Let's use this issue to track: > http://statistics.netbeans.org/exceptions/exception.do?id=370387 ReadOnlyFilesHighlighting was added in 6.9 and so the above snapshot has nothing to do with the original snapshots. If somebody suggests how to determine the read-only status of an edited file I can change this highlighting layer. This, however, is unlikely to fix the other problems.
Bug prior to 7.0, not touched for the last 2 years --> P4.
The last report is over one year now. Probably not a problem any more (or?). Closing as works for me.