Matlab editor sluggish on Linux
65 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have recently installed MATLAB 2021b on Ubuntu 20.04 and the editor seems to be very sluggish (slow text highlighting/typing etc.). I have tried reinstalling multiple times which does not seem to fix it. I have also tried installing 2021a which does seem to work fine but I need some of the new 2021b functions for the project I am working on.
Looking at other threads, people have had similar issues but theirs seem to be dependant on the size of the project which is not the case here as my .m file is only 10 lines. On those threads they have suggested kernel or package incompatabilites but I have no idea how to debug those sorts of issues as I am relatively new to linux. I have also tried out all of the fixes that they suggest, none of which have worked. Is there any way I can debug this/figure out what is causing it as it makes using 2021b very difficult?
11 comentarios
Brandon Caasenbrood
el 23 de Mzo. de 2023
I found a possible solution that seems to improve the sluggish editor from Matlab R2022 and on. (tested on R2023a/R2022a). Navigate to MATLAB startup directory. For example
cd /usr/local/MATLAB/R2023a/bin/glnxa64
create and open a file called java.opts
sudo nano java.opts
add following line:
-Dsun.java2d.pmoffscreen=false
Save and exit, reboot matlab.
Frank Niessen
el 27 de Jun. de 2023
Having the same issue here for 2022b and 2023a - none of the suggested fixes work.
This is quite embarrasing for MATLAB - great way to give up on the developer community and accelerate the move to Python. I am going back to R2020b for the things I have left to do in MATLAB.
Respuestas (1)
ma os
el 15 de Jul. de 2022
I can't offer a real solution to the problem. After some testing on different environments, I can at least somewhat confine the problem and provide some helpful information. I found that the sluggish editor behaviour exists for:
- when MATLAB is launched via "ssh -X" on an external server (I tested Ubuntu 20.04 as well as Red Hat Enterprise Linux Server 7.9)
- and only for releases R2021b and R2022a, in older versions the issue has not occured in my case
Workarounds are to avoid "ssh -X" by using MATLAB directly, i.e. not via remote access, or e.g. via VNC.
Another option might be to use R2021a or earlier.
I have also contacted the MathWorks Technical Support Department and am very grateful for their kind assistance. Unfortunately, no solution is currently available, but they are working on fixing the problem in a future release.
2 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!