figures suddenly very slow
Show older comments
Suddenly, it takes ~15 seconds to render even one point in a figure. There was some update to the machine over the weekend and I also recently installed 2021a. I'd try 2017 again, but 2017 says my license is no good now.
>> memory
Maximum possible array: 50646 MB (5.311e+10 bytes) *
Memory available for all arrays: 50646 MB (5.311e+10 bytes) *
Memory used by MATLAB: 2315 MB (2.427e+09 bytes)
Physical Memory (RAM): 32520 MB (3.410e+10 bytes)
>> tic; plot(1); toc
Elapsed time is 0.016784 seconds.
This opens a figure right away. However, the console is unresponsive and the plot doesn't show data for another 15 seconds
If I run it again and re use the figure it is fast.
So I tried running 'bench' and it crashes the matlab console all together. But not always.
>> bench
Exception in thread "AWT-EventQueue-0": java.lang.RuntimeException: Waited 5000ms for: <19db8c0b, 532b36d3>[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:88)
at com.mathworks.hg.peer.GraphicsPeerWithComponent.createJOGLCanvas(GraphicsPeerWithComponent.java:19)
at com.mathworks.hg.peer.GraphicsPeer.doCreateCanvas(GraphicsPeer.java:119)
at com.mathworks.hg.peer.GraphicsPeer.access$100(GraphicsPeer.java:16)
at com.mathworks.hg.peer.GraphicsPeer$1.run(GraphicsPeer.java:174)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
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.awt.EventQueue.dispatchEvent(EventQueue.java:728)
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)
Exception in thread "AWT-EventQueue-0": java.lang.RuntimeException: Waited 5000ms
How can I debug this? Is it a Java version problem? Is it a Nvidia driver problem? Opengl? And I don't have admin rights on my machine so some of my options are limited. Doing a re-install or moving to 2021b is a big hassle for me.
2 Comments
Walter Roberson
on 28 Oct 2021
I would first tend to suspect a graphics driver problem. Not necessarily NVIDIA as maybe you have more than one graphics card; use opengl info to see what it thinks about your graphics cards.
My suspicion after that would be the possibility that a different JAVA version got linked in.
Jason Doyle
on 28 Oct 2021
Accepted Answer
More Answers (2)
Jason Doyle
on 30 Oct 2021
0 votes
Ali Özgür Argunsah
on 18 Aug 2023
0 votes
If the "Parallel Pool" is running, it takes longer to make figures.
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!