MESA-LOADER , Fontconfig , Ubuntu 23.04
115 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mostafa Beshr
el 5 de Mayo de 2023
Comentada: Antonio
el 10 de Ag. de 2024
Hello ,
Lately, I upgraded to Ubuntu 23.04 with Gnome 44 and Matlab 2023a
When I open Matlab I get :
┌──(####@##############)-[~]
└─$ matlab
MATLAB is selecting SOFTWARE OPENGL rendering.
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf",
line 6: unknown element "reset-dirs"
MESA-LOADER: failed to open crocus: /usr/lib/dri/crocus_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)
I tested Matlab and Simulink, They take double of time to load compared to 2022b and some blocks are missing their names
can anyone help?
Thanks
0 comentarios
Respuesta aceptada
Seagull White
el 11 de Mayo de 2023
Editada: Seagull White
el 11 de Mayo de 2023
I have same question when I update my Matlab to 2023a. I solve it:
cd /user/local/MATLAB/R2023a/sys/os/glnxa64
sudo mv libstdc++.so.6 libstdc++.so.6.oldbackup
sudo ln -s /use/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6
nano ~/.bashrc
''' #add to end line
alias matlab='echo "-Djogl.disable.openglarbcontext=1">java.opts && /use/local/MATLAB/R2023a/bin/matlab && rm java.opts'
'''
3 comentarios
Antonio
el 10 de Ag. de 2024
Yes, this solved the problem, I got this problem, but with radeonsi, and also worked.
Seagull White, what is doing the last line in the bashrc??, in my case worked without this change
Más respuestas (1)
Andreas Viborg
el 11 de Mzo. de 2024
Editada: Andreas Viborg
el 11 de Mzo. de 2024
I got this error too with MATLAB2023b on Ubuntu 22.04 LTS.
First I updated to the latest mesa drivers:
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update
sudo apt upgrade -y
I found out that when I start MATLAB by clicking the desktop icon it uses the command as specified in /usr/share/applications/matlab.desktop:
[Desktop Entry]
Name=MATLAB R2023b
Comment=Matlab
Icon=/usr/local/MATLAB/R2023b/bin/glnxa64/cef_resources/matlab_icon.png
Exec=/usr/local/MATLAB/R2023b/bin/glnxa64/MATLAB -desktop -prefersoftwareopengl
Terminal=false
Type=Application
Categories=Software
Changing this file to use the startup shell script which seems to patch OpenGL issues solved it:
[Desktop Entry]
Name=MATLAB R2023b
Comment=Matlab
Icon=/usr/local/MATLAB/R2023b/bin/glnxa64/cef_resources/matlab_icon.png
Exec=/usr/local/MATLAB/R2023b/bin/matlab -desktop
Terminal=true
Type=Application
Categories=Software
Strange thing though is that the MESA-LOADER can't find files even though the files are there:
~$> /usr/local/MATLAB/R2023b/bin/glnxa64/MATLAB -desktop -prefersoftwareopengl
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)
failed to load driver: zink
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)
failed to load driver: swrast
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
X11Util: Open X11 Display Connections: 1
X11Util: Open[0]: NamedX11Display[:11.0, 0x7f1c40444d30, refCount 1, unCloseable false]
~$> ls -l /usr/lib/x86_64-linux-gnu/dri
total 514508
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 crocus_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 d3d12_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 d3d12_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 i915_dri.so
-rw-r--r-- 1 root root 1764040 Jul 11 2020 i965_drv_video.so
-rw-r--r-- 1 root root 8004216 Apr 12 2023 iHD_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 iris_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 kms_swrast_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 nouveau_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 nouveau_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 r300_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 r600_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 r600_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 radeonsi_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 radeonsi_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 swrast_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 virtio_gpu_dri.so
-rw-r--r-- 5 root root 15904888 Feb 28 23:00 virtio_gpu_drv_video.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 vmwgfx_dri.so
-rw-r--r-- 13 root root 33652072 Feb 28 23:00 zink_dri.so
0 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!