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.
I got a couple of seconds freeze and made thread dump to see what's going on. Interested was the stack of AWT thread. There are accessed data on disk, which should be avoided.
Created attachment 7955 [details] AWT stack
It would be hard to solve this and I'm not even sure, that the lazy loading will improve the performance, because the display name would have to be refreshed afterwards. Perhaps we should create some reasonable time limit for the disk access so that it will not block AWT if the disk access time is long or something bad happens, and it will not degrade performance when the disk access is fast.
In order to fix this, the file status caching system would have to support the lazy loading from disk. The caching system will be re-designed (issue #32089), making this dependent on it so that this requirement will be addressed.
*** Issue 37679 has been marked as a duplicate of this issue. ***
Fixed by the new cache implementation.