This issue can be caused by the incompatibility of Magnet App, BetterTouchTool, or similar window-snapping apps with MATLAB on macOS. It has been observed with R2019a, R2019b and R2020a Prerelease on High Sierra and Catalina macOS.
This can also be due to applications like Text Expander and Phase Express.
To work around the issue, please try one of the following solutions to see if it resolves the issue:
1) Switch MATLAB to use OpenJDK™ 8 (Hot Spot) version of JRE that can be downloaded from the following link:
To switch the JRE that MATLAB is using:
- (Recommended) Back up the original JRE folder <matlabroot>/sys/java/jre/maci64
- Replace the original JRE folder <matlabroot>/sys/java/jre/maci64/jre with <jre_root>/Contents/Home
- Confirm the operation by finding “java” executable in the path <matlabroot>/sys/java/jre/maci64/jre/bin/java.
- Launch MATLAB and verify the JRE version with “version -java”. The output should include “AdoptOpenJDK”.
2) Switch MATLAB to use the JetBrains version of JRE that can be downloaded from the following link:
Installing the version of JRE linked above may cause JAVA errors in MATLAB. However, these errors should not have any side effects.
3) If you are using a multi-monitor setup, moving MATLAB to a secondary monitor may prevent the issue. However, moving MATLAB back to the primary monitor may cause the issue to recur.
4) Consider switching to Spectacle. Performance regressions have not been reported on this App thus far. Find more information on the Spectacle App in the link below:
5) You should be able to use keyboard shortcuts with no delays.
6) Closing the window-snapping app and restarting MATLAB may solve this issue. This has been seen to be effective for many past instances of similar behavior.
Alternately, you might also be able to work around this incompatibility by disabling some functionality in the window-snapping app you are using or changing its settings to ignore MATLAB.
For instance, we have seen that BetterTouchTool can be left running, but the "Window Snapping" feature must be disabled for MATLAB to function properly. If quitting the app resolved the issue, you may want to try to disable the "Window Snapping" feature and restart MATLAB, if it is more convenient for your workflow.
16 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_626765
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_626765
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_636435
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_636435
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_645266
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_645266
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_682581
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_682581
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_763048
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_763048
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_771798
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_771798
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_833981
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_833981
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_841687
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_841687
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_841932
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_841932
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_845212
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_845212
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_900540
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_900540
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_951613
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_951613
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_1012804
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_1012804
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_1016788
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_1016788
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_1023313
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_1023313
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_1258743
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/422244-why-do-buttons-apps-or-the-editor-in-matlab-respond-slowly-or-hang-on-macos#comment_1258743
Sign in to comment.