hongsukchoi / TCMR_RELEASE

Official Pytorch implementation of "Beyond Static Features for Temporally Consistent 3D Human Pose and Shape from a Video", CVPR 2021
MIT License
274 stars 39 forks source link

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

Open barvin04 opened 2 years ago

barvin04 commented 2 years ago

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['PYOPENGLPLATFORM'] 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 commented 2 years ago

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 commented 2 days ago

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['PYOPENGLPLATFORM'] 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.