[Kubuntu 16.04] Matlab UI becoming very slow after some time

Working with matlab 2016b on a bi-xeon workstation with 64Gb of RAM on Kubuntu 16.04. Even with very little RAM usage, matlab UI becomes slow after some time (from 1 to several hours). Clicking and typing take several seconds to take effect and i have no other choice but to close matlab and restart it which is as you can image very annoying for work (eventually a show stopper). The rest of my desktop runs fine.
I've searched for similar problems and only found this question which doesn't seem to have any answer.
Any idea on why this is happening?
Thanks

6 Comments

Do you mean a GUI programmed in Matlab or the GUI of Matlab itself? Does this happen even if you do not work with Matlab in this time? What is "the rest of the desktop"?
I mean the gui of matlab. And yes typically i would quit my office then come back the next morning and matlab gui would become very slow. Sometimes it is during the day, it suddenly becomes slow just after i click or type something.
By rest of the desktop i mean to other applications.
No idea so far? My only mean for now is to restart matlab which makes me lose a lot of time (i have to reload all my data which is quite big).
Sorry, no ideas on my end. I cannot use graphics at all on Kubuntu 16.04
Error using gca
While setting property 'Parent' of class 'Axes':
Can't load '/usr/local/MATLAB/R2016b/bin/glnxa64/libmwosgserver.so':
/usr/local/MATLAB/R2016b/bin/glnxa64/libosgViewer.so.80: undefined symbol: glXDestroyGLXPbufferSGIX
Error in newplot (line 73)
ax = gca(fig);
I did spend some time chasing this before so I know it is not something that can be easily fixed.
Dear Walter, Did you find a solution in your case?
No it was pulling in too many packages to bother with.

Sign in to comment.

 Accepted Answer

I think i found the culprit. KDE plasma compositor had vsync (settings>hardware>display and monitor>compositor) on automatic which produced flickering and slow response on some apps (including matlab). Putting it on "full screen repaint" seems to have made the problem disappear. In fact while i was looking for that setting matlab started to slow down again. Checking the full screen repaint option redraw the apps windows and matlab suddenly returned to the normal.
Other solutions evoked here and there lie in the same tab by changing the rendered to Xrender or the latest OpenGL.
I'll check if that happens again though.
Thanks for your help

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Tags

Community Treasure Hunt

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

Start Hunting!