MATLAB, macOS Catalina 10.15 Java error with accessibility keyboard enabled: Please Fix
Show older comments
java.lang.IndexOutOfBoundsException: Invalid line index=1 >= lineCount=1
at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:91)
at sun.lwawt.macosx.CAccessibleText.getRangeForLine(CAccessibleText.java:338)
at sun.lwawt.macosx.CAccessibleText$11.call(CAccessibleText.java:189)
at sun.lwawt.macosx.CAccessibleText$11.call(CAccessibleText.java:187)
at sun.lwawt.macosx.LWCToolkit$CallableWrapper.run(LWCToolkit.java:597)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Error caused by having accessibility keyboard enabled. Can solve by unchecking box under System Preferences --> Accessibility --> Keyboard --> Accessibility Keyboard

I don't NEED the accessibility keyboard enabled but some people do, please fix bug. I'm running macOS Catalina 10.15.7 and the error was present on both MATLAB 2020b and 2021a.
1 Comment
Hyo Geon Park
on 21 Feb 2022
Thank you very much. This was really helpful for me.
Answers (1)
Cris LaPierre
on 9 Apr 2021
0 votes
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!