Problemas con X11 en la instalación en Ubuntu 24.04

50 次查看(过去 30 天)
Al arrancar MATLAB se obtienen mensajes de error relacionados con X11. Supongo que falta por instalar alguna libreria, pero el sistema no es muy explícito:
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x2abebdfc, isOwner false, <12c5c197, 667eae28>[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: java.lang.NullPointerException
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:688)
at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:297)
Algien puede dar alguna indicación para saber que falta?
Gracias

回答(1 个)

Divyam
Divyam 2024-10-17
Due to glibc incompatibility with Linux machines using Intel or older NVIDIA graphics chips, OpenGL faces graphics rendering issues. It can be resolved by switching to the software version of OpenGL for rendering the graphics.
Open your MATLAB session using the following command to utilize software OpenGL for graphics rendering:
matlab -softwareopengl
If this method resolves the issue you can permanently set the preference for opening MATLAB using software OpenGL by executing the following command in the MATLAB Command Window:
opengl(save,software);
Switching to newer NVIDIA graphics hardware, could also potentially resolve this problem.
For more information regarding how to resolve the glibc incompatibility issue, refer to this MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/329796-issue-with-libstdc-so-6#answer_259460

Community Treasure Hunt

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

Start Hunting!