How can I resolve Java error when plotting with R2018b?

조회 수: 30 (최근 30일)
Martin McHugh
Martin McHugh 2019년 1월 15일
댓글: Saba Mirzahosseini Barough 2020년 10월 22일
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일
편집: 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?
Saba Mirzahosseini Barough
Saba Mirzahosseini Barough 2020년 10월 22일
The second one solved my problem as well, thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (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