libGL error in linux

17 visualizzazioni (ultimi 30 giorni)
Kwame Atta Gyamfi
Kwame Atta Gyamfi il 26 Mag 2020
Today, I upgraded my linux ubuntu OS and the open GL has started to misbehave. When I run matlab from the terminal, the following error messages shows up in the terminal:
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
Gtk-Message: 19:01:01.023: Failed to load module "canberra-gtk-module"
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast
In addition, when matlab opens, i get the following error messages in MATLAB prompt:
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x21f25922, isOwner false, <7e533fff, 73c0ad7a>[count 0, qsz 0, owner <NULL>]]]
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:326)
at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:297)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.jogamp.opengl.GLException: AWT-EventQueue-0-SharedResourceRunner: Unable to create temp OpenGL context(1)
at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:368)
at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:759)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:642)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
... 2 more
For this reason, the figures are poorly rendered.
Any help please?

Risposta accettata

Kwame Atta Gyamfi
Kwame Atta Gyamfi il 27 Mag 2020
I have just managed to solved this problem now.
I asked matlab to change the value of the MESA driver loader to the previous driver before the upgrade in the .bashrc:
phd7@phd7-HP-EliteBook-830-G5:~$ export MESA_LOADER_DRIVER_OVERRIDE=i965; matlab.
  4 Commenti
LeChat
LeChat il 19 Apr 2021
Actually it worked but I need to run this command everytime I reboot my computer... Any way to make this change durable?
Mitchell O'Sullivan
Mitchell O'Sullivan il 29 Set 2021
You could make the i965 driver be preferenced system-wide by creating a ~/.drirc file per the instructions here.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by