Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL.error.GLError: GLError( err = 12290, #7

Open
barvin04 opened this issue Aug 8, 2021 · 2 comments
Open

OpenGL.error.GLError: GLError( err = 12290, #7

barvin04 opened this issue Aug 8, 2021 · 2 comments

Comments

@barvin04
Copy link

barvin04 commented Aug 8, 2021

Hello,
I am trying to run the demo.py file and am stuck at " OpenGL.error.GLError: GLError( err = 12290, ...." error. The Multi-person-tracker and TCMR on each person sub module is fine. During rendering over ssh from Slurm system I am facing the said issue.

A commentar here says sometimes pyrender is incompatible with Ubuntu. Another user says similar thing here.

Most of the users found this solution to be helpful. I have taken care to change it, as said at the right section but still the issue persists. Note: most of the issues are err=12289 while I happen to get err=12290. Kindly let me know if this is an issue of Nvidia drivers or if it could be solved by repairing code at site-packages.

On a slightly different line, changing os.environ['PYOPENGL_PLATFORM'] from egl to osmesa like in here raises ImportError: cannot import name 'OSMesaCreateContextAttribs' from 'OpenGL.osmesa' .

ScreenShot of the OpenGL error
image

Thank you

@hongsukchoi
Copy link
Owner

Hi,

I recommend you to use OSMesa if the egl doesn't works.

And also you should set the environment before importing pyrender like below

os.environ['PYOPENGL_PLATFORM']  = 'osmesa'
import pyrender

@hnagn2003
Copy link

Hello, I am trying to run the demo.py file and am stuck at " OpenGL.error.GLError: GLError( err = 12290, ...." error. The Multi-person-tracker and TCMR on each person sub module is fine. During rendering over ssh from Slurm system I am facing the said issue. A commentar here says sometimes pyrender is incompatible with Ubuntu. Another user says similar thing here. Most of the users found this solution to be helpful. I have taken care to change it, as said at the right section but still the issue persists. Note: most of the issues are err=12289 while I happen to get err=12290. Kindly let me know if this is an issue of Nvidia drivers or if it could be solved by repairing code at site-packages.

On a slightly different line, changing os.environ['PYOPENGL_PLATFORM'] from egl to osmesa like in here raises ImportError: cannot import name 'OSMesaCreateContextAttribs' from 'OpenGL.osmesa' .

ScreenShot of the OpenGL error image

Thank you

Just set the environment variable export EGL_DEVICE_ID=1 before running your script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants