libGL error in linux

97 ビュー (過去 30 日間)
Kwame Atta Gyamfi
Kwame Atta Gyamfi 2020 年 5 月 26 日
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?

採用された回答

Kwame Atta Gyamfi
Kwame Atta Gyamfi 2020 年 5 月 27 日
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 件のコメント
LeChat
LeChat 2021 年 4 月 19 日
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 2021 年 9 月 29 日
You could make the i965 driver be preferenced system-wide by creating a ~/.drirc file per the instructions here.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by