Unable to start MATLAB R2023a in Ubuntu Linux 23.04, it stops after "MATLAB is selecting SOFTWARE OPENGL rendering." message

47 views (last 30 days)
Hi there,
I'm trying to solve this problem for hours, yet I don't have any solution. Looked through installation docs, but couldn't find why the problem occurs. I installed MATLAB R2023a without a problem via the ISO file which my school gave me. When I try to run the matlab, "MATLAB is selecting SOFTWARE OPENGL rendering." message comes and after a second, process stops without an error(?). The program wouldn't start either.
My gcc and g++ versions were 12, I downgraded them to 11 since its says the latest version it supports is 11 in Matlab docs. However it didn't work.
I also tried
./matlab -nosoftwareopengl
this time the message I mentioned earlier doesn't come up, but process again stops after a second.
I checked my system resources, my CPU usage increases for a second but memory usage stands still.
I installed two times into different locations to check if it's about permissions or whatnot, but it didn't help.
I tried other suggestions from this forum, but no help.
No solution yet.. I'd be happy if we can sort this out :(
My machine has AMD Ryzen 4600H as a CPU, and also integrated GPU known as AMD Radeon Graphics.
UPDATE:
I tried to use free-trial version from the website, it's R2023b and worked fine. These are the some logs after running it:
MATLAB is selecting SOFTWARE OPENGL rendering.
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
Gtk-Message: 21:36:13.537: Failed to load module "canberra-gtk-module"
MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
Also when I run some basic tasks like imshow(), and rgb2gray(); it gives this warning:
Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information,
click here.
I'm adding these outputs for troubleshooting. If you need anything else, I can provide happily!

Accepted Answer

Furkan
Furkan on 19 Oct 2023
I was able to fix the problem by providing a `license.dat` file from my school. This file is requested in the install, but I was able to skip it because it didn't force me to. Also it didn't give any error. Anyway, it's solved.
Not showing the proper warnings, and errors is really awful design from Mathworks. Their install GUI already sucks...

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!