Jogl library within matlab-runtime no longer compatible with Ubuntu 20.04

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Jogl library within matlab-runtime no longer compatible with Ubuntu 20.04

dimple
Hi,

I've been using Matlab runtime R2020a update 6 then update 7 for about a year with OpenGL without any issues on Ubuntu 20.04. Recently I updated my system and now I'm hitting the following error:
MATLAB has experienced a low-level graphics error, and may not have drawn correctly.
Read about what you can do to prevent this issue by running this command: opengl problems,
then restart MATLAB.
To share details of this issue with MathWorks technical support, please
include this file with your service request: /home/hipuser/jogl.ex.109

The file jogl.ex.109 contains:
com.jogamp.opengl.GLException: MATLAB Compiler Runtime: createImpl ARB n/a but required, profile > GL2 requested (OpenGL >= 3.1). Requested: GLProfile[GL4bc/GL4bc.hw], current: 4.6 (Compat profile, compat[ES2, ES3, ES31], FBO, hardware) - 4.6.0 NVIDIA 470.74
at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:418)
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.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1263)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
at jogamp.opengl.GLAutoDrawableBase.defaultDisplay(GLAutoDrawableBase.java:466)
at com.jogamp.opengl.GLAutoDrawableDelegate.display(GLAutoDrawableDelegate.java:190)
at com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLInformation(OpenGLUtils.java:355)
at com.mathworks.hg.uij.OpenGLUtils$MyGLListener.getGLData(OpenGLUtils.java:512)
at com.mathworks.hg.uij.OpenGLUtils.getGLData(OpenGLUtils.java:79)

I've tried various workaround without success.

What I found and tried:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1726595
https://itectec.com/matlab/matlab-hardware-opengl-failure-on-ubuntu-16-04-3-can-not-initialize-shared-resources/
https://bugs.launchpad.net/ubuntu/+source/scilab/+bug/1742894
https://ch.mathworks.com/matlabcentral/answers/377644-hardware-opengl-failure-on-ubuntu-16-04-3-can-not-initialize-shared-resources

Did any of you hit this issue as well?
Do you have any idea how to solve this?

Many thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Jogl library within matlab-runtime no longer compatible with Ubuntu 20.04

gouessej
Administrator
Hello

Which version of JOGL do you use? I'm going to look at the various workaround you mentioned. I think that you should try the latest release candidate, it might help:
https://jogamp.org/deployment/v2.4.0-rc-20210111/
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Jogl library within matlab-runtime no longer compatible with Ubuntu 20.04

gouessej
Administrator
In reply to this post by dimple
Please tell me more about your current configuration, operating system, GPU, driver, etc.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Jogl library within matlab-runtime no longer compatible with Ubuntu 20.04

dimple
Thanks for your answer. I don't directly use JOGL, it's embedded into the Matlab runtime, and their version is causing the problem. The bug was submitted to Mathworks. In the meantime I'm merely trying to find out if other people hit this bug and might have a solution for it.

I'm using ubuntu 20.04. Several different NVIDIA GPUs I tested with have this error, the driver used on this test is NVIDIA 470.74.

Reply | Threaded
Open this post in threaded view
|

Re: Jogl library within matlab-runtime no longer compatible with Ubuntu 20.04

gouessej
Administrator
Thank you. Do you know how to update the version of JOGL used by Matlab?
Julien Gouesse | Personal blog | Website