MATLAB Answers

How can I resolve Java error when plotting with R2018b?

161 views (last 30 days)
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(
at com.jogamp.opengl.GLProfile.initSingleton(
at com.jogamp.opengl.GLProfile.getDefaultDevice(
at com.jogamp.opengl.GLCapabilities.<init>(
at com.mathworks.hg.peer.GLCanvasPeerFactory.getCaps(
at com.mathworks.hg.peer.GLCanvasPeerFactory.createHGCanvasPeerWithComponent(
at com.mathworks.hg.peer.GraphicsPeerWithComponent.createJOGLCanvas(
at com.mathworks.hg.peer.GraphicsPeer.doCreateCanvas(
at com.mathworks.hg.peer.GraphicsPeer.access$100(
at com.mathworks.hg.peer.GraphicsPeer$
at java.awt.event.InvocationEvent.dispatch(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$500(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

Accepted Answer

Areej Varamban Kallan
Areej Varamban Kallan on 21 Jan 2019
Edited: Areej Varamban Kallan on 21 Jan 2019
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

Sign in to comment.

More Answers (1)

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




Community Treasure Hunt

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

Start Hunting!