Effacer les filtres
Effacer les filtres

MESA-LOADER , Fontconfig , Ubuntu 23.04

141 vues (au cours des 30 derniers jours)
Mostafa Beshr
Mostafa Beshr le 5 Mai 2023
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

Réponse acceptée

Seagull  White
Seagull White le 11 Mai 2023
Modifié(e) : Seagull White le 11 Mai 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'
'''
  2 commentaires
geofo
geofo le 20 Déc 2023
The correct path for R2023b is:
/usr/local/MATLAB/R2023b/sys/opengl/lib/glnxa64$
but there is no libstdc++.so.6 file there. Does not work.
Ehud
Ehud le 8 Jan 2024
Modifié(e) : Ehud le 8 Jan 2024
there's a typo in the answer, instead of 'use' or 'user' write 'usr'. Worked for me, where he specified it.

Connectez-vous pour commenter.

Plus de réponses (1)

Andreas Viborg
Andreas Viborg le 11 Mar 2024
Modifié(e) : Andreas Viborg le 11 Mar 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

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by