MATLAB freezes at splash screen on Ubuntu
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Stefan van der Linden
il 15 Ago 2018
Commentato: Veethahavya Kootanoor Sheshadrivasan
il 17 Mag 2019
I am trying to start MATLAB 2018a on an Ubuntu machine. However, the application freezes at startup when showing the splash screen. I have attached a log file which shows the Java stack trace, starting with:
java.lang.RuntimeException: cannot load system cursor: CopyDrop.32x32
What I've seen from similar questions posed on this board seem to indicate it's related to a bug in Java and the X window system. It is possible to run MATLAB without GUI though and on a separate Windows machine I tried it also went without a hitch. I have therefore tried various other configurations such as running under GNOME, KDE, XFCE and on a different distro (Fedora), and rolling back to 2017a and 2017b. I have also updated OpenJDK. All are giving the same results. I hope someone knows of a workaround or, even better, a full fix.
2 Commenti
Rolling Osure
il 26 Set 2018
Are you running Linux inside a virtual (cloud) environment? I have the same problem. Running on VirtualBox is fine but on an actual cloud environment with the same OS I get this error.
Risposta accettata
Rolling Osure
il 27 Set 2018
Here is my final solution which worked on Ubuntu 16.04:
1- Edit following file:
nano /etc/default/grub
2- Edit the variable GRUB_CMDLINE_LINUX_DEFAULT to only have the content "nomodeset"
3- Run on terminal: sudo grub-mkconfig -o /boot/grub/grub.cfg
4- Reboot.
Matlab should now be able to start without any problems.
My reference was https://codedump.io/share/UJieoRlppEoJ/1/cannot-load-system-cursor-copydrop32x32-exception-in-java-on-centos-7
2 Commenti
Veethahavya Kootanoor Sheshadrivasan
il 17 Mag 2019
Hi Rolling.
I have applied your fix but the problem still persists for me.
Could you please help?
Also how do I generate a log file?
I tried to run matlab -desktop logfile test.log. But that did not create a log or I couldn't find it (although I performed a systemwide search).
Thanks in advance!
Più risposte (1)
Rolling Osure
il 26 Set 2018
Found out something interesting. Starting matlab over SSH with X forwarding is successful!
ssh -X matlabhost
./matlab
0 Commenti
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!