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.
Steps to reproduce: - add remote host - create Fractal sample - run it - when execution completes open CPU Hot Spots - double-click on Mandelbrot in the table (while table is being refreshed) - click in the editor Result: Cursor in the editor does not move until annotations appear
Drawing annotations (table updating) takes several seconds (5-10) to complete.
Fixed at least some of the problems: moved annotation preparation code out of AWT thread and now only the painting is done in AWT. If it is still slow, please reopen and we should have Maria take a look. Perhaps AWT is blocked somewhere else before annotation support gets called.
In the latest dev build the editor still freezes (does not respond and does not show annotations) until the details table is fully parsed.
Sasha, please, attach thread dump created during freeze.
Created attachment 90903 [details] treads dump To be precise, now editor freezes until the table is fully parsed if a user right-clicks on the "GlyphGutter" in the editor (see attached threads dump).
Evaluation: As I already do some changes around, I have looked at this issue... So, the problem is that updateSource() method of AnnotatedSourceSupportImpl is synchronized (on the object). And, even when it is executed in non-AWT thread, calling ShowTextAnnotationsAction2.hasAnnotations() in AWT thread causes invocation of AnnotatedSourceSupportImpl.getFileAnnotationInfo() which is also synchronized on the same object... So IDE freezes..
Fixed: now getting info whether pane is annotated or not directly from the pane itself eliminating the need to go through AnnotatedSourceSupportImpl.getFileAnnotationInfo()
Integrated into 'main-golden', will be available in build *200911241400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/9b37fbf6471c User: Thomas Preisler <thp@netbeans.org> Log: #176259 - Editor freezes while drawing annotations