Community
Participate
Working Groups
Created attachment 287106 [details] Error log entries for one particular UI freeze I constantly get UI freezes in the Java Editor when deleting/inserting any amount text while moving the mouse over the changed text. The following minimal example triggers the UI freeze: public class Test { public static void main(String[] args) { Object obj = new Object(); obj.toString(); } } To produce a UI freeze, position the text caret somewhere inside "toString". Then while moving the mouse cursor back and forth over "toString" remove or add one letter with the keyboard and then undo the change. Undoing the change causes a UI freeze, probably because the mouse hover event handler waits on the UI thread. The log is attached. For context, I have almost 500 plugin projects opened in my workspace. I use the Package Explorer and not the Project Explorer. I have the Project Explorer closed because I read in another issue that it could cause lag, but it does not appear to be the cause of this particular issue.
At line 299 in JavaElementHyperlinkDetector: CompilationUnit astRoot= SharedASTProviderCore.getAST(input, SharedASTProviderCore.WAIT_YES, null); Maybe should be: CompilationUnit astRoot= SharedASTProviderCore.getAST(input, SharedASTProviderCore.WAIT_NO, null); ^
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/185179
A problem is that when I set SharedASTProviderCore.WAIT_NO, I can't get the tests to pass. That's why I set it to WAIT_YES when I added the feature not noticing any freeze in the IDE. When running the IDE it works fine with WAIT_NO. Does anyone have some better insight why this is happening?
I also see this freeze frequently at a client machine.
Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/185179 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=ad42f86740eb7a362c118be703475daebdb89a71
Tested ok, in build eclipse-SDK-I20210926-0600-win32-x86_64