Why do I receive a Java exception when I open the Profiler on Mac?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 28 Juil 2017
Réponse apportée : MathWorks Support Team
le 31 Juil 2017
Whenever I open the Profiler or make it the current window, I receive the following Java exception in the MATLAB Command Window. This happens in both MATLAB R2016b and R2017a on my Mac.
java.lang.NullPointerException
at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:54)
at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)
at java.lang.reflect.Field.get(Field.java:379)
at sun.lwawt.macosx.CAccessible.getCAccessible(CAccessible.java:62)
at sun.lwawt.macosx.CAccessibility$30.call(CAccessibility.java:525)
at sun.lwawt.macosx.CAccessibility$30.call(CAccessibility.java:521)
at sun.lwawt.macosx.LWCToolkit$CallableWrapper.run(LWCToolkit.java:521)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:738)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:699)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:713)
at java.awt.EventQueue$4.run(EventQueue.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:710)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Réponse acceptée
MathWorks Support Team
le 28 Juil 2017
This error is likely being caused by a third-party accessibility tool on Mac, such as Moom or BetterSnapTool.
To see if a tool is enabled, follow these steps:
1. From the Apple menu, select System Preferences.
2. Open Security & Privacy.
3. Click the Privacy tab.
4. Select Accessibility in the list on the left.
If there are any tools enabled here, try unchecking them to resolve this incompatibility.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!