Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X
GUEST: <Please provide a description of the problem or the steps to reproduce>
I'm just compiling c++ code.
williambacchi: activating java fx and setting a wrong scenebuilder home
Maximum slowness yet reported was 64795 ms, average is 34415
Created attachment 145585 [details]
EDT calls org.netbeans.modules.project.ui.actions.ProjectAction.runSequentially() in a very long loop, further investigation needed.
seems to be repeated recursively many times - resulting in a deep stack and calling progressutils many times but in one AWT cycle -> no wonder the AWT gets stuck
It seems user selected about 50 projects and invoke clean & build on selection.
Created attachment 155944 [details]
(In reply to Alexander Simon from comment #5)
> Created attachment 155944 [details]
> proposed patch
I'll have a (more thorough) look.
The bug seems worth fixing: lots of duplicate reports, quite a long EDT freezes in some of them. What confuses me a bit in the proposed solution is
- the overall complexity
- the fact that now if I invoke build for 50 projects UI won't freeze, but user will get these "Preparing to build" dialogues from time to time (quite unexpectedly)
Created attachment 155959 [details]
proposed patch, variant 2
Created attachment 161365 [details]
fixed, change set:http://hg.netbeans.org/cnd-main/rev/403692127dfb
Integrated into 'main-silver', will be available in build *201607230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Alexander Simon <firstname.lastname@example.org>
Log: fixed Bug #242340 org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventThreadCustomDialogImpl: LowPerformance took 64795 ms.