How can I resolve Java error when plotting with R2018b?

24 次查看(过去 30 天)
I recently updated to R2018b on a Linux machine (openSUSE 13.2 (Harlequin) (x86_64) 64-bit)
The plot command gives the following error:
Exception in thread "AWT-EventQueue-0": java.lang.RuntimeException: Waited 5000ms for: <9c124b, 20d9054>[count 2 [ add. 0, orig 2], qsz 0, owner <Startup Class Loader>, add.owner Startup Class Loader-SharedResourceRunner] - <AWT-EventQueue-0>
at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:199)
at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2003)
at com.jogamp.opengl.GLCapabilities.<init>(GLCapabilities.java:84)
at com.mathworks.hg.peer.GLCanvasPeerFactory.getCaps(GLCanvasPeerFactory.java:22)
at com.mathworks.hg.peer.GLCanvasPeerFactory.createHGCanvasPeerWithComponent(GLCanvasPeerFactory.java:63)
at com.mathworks.hg.peer.GraphicsPeerWithComponent.createJOGLCanvas(GraphicsPeerWithComponent.java:31)
at com.mathworks.hg.peer.GraphicsPeer.doCreateCanvas(GraphicsPeer.java:91)
at com.mathworks.hg.peer.GraphicsPeer.access$100(GraphicsPeer.java:14)
at com.mathworks.hg.peer.GraphicsPeer$1.run(GraphicsPeer.java:145)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
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)

采纳的回答

Areej Varamban Kallan
编辑:Areej Varamban Kallan 2019-1-21
Hi Martin,
Please try the following steps:
  1. Update your graphics driver to the latest version and see if the issue is resolved. If not,
  2. Start MATLAB from command prompt using the following command:
matlab -noopengl
Please note that the operating system openSUSE 13.2 is not supported by MathWorks and MATLAB is not qualified on this platform. A list supported operating systems can be found here
  4 个评论
Hyun-su Kim
Hyun-su Kim 2020-3-6
Hi, the second solution works for me too. One more question is that do I have to do this always? So icon in the start menu is not useful anymore?

请先登录,再进行评论。

更多回答(1 个)

Nashmia Ziafat
Nashmia Ziafat 2019-3-18
Hi!
I am the having same problem.I have tried both suggestions but are not working for me.Is there any other option?

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by