Open andy-james0310 opened 2 years ago
I've also had this problem, and while I'm not sure what the solution is, I was able to work around it by using
env.render(use_opencv_renderer=True)
in my render calls. If anyone knows an actual solution to the GLException, that would be much appreciated.
I follow the example of PPO to render the realworldsuite from the api of gym by using dm2gym. But, there is an issure.
File "/home/ywy/anaconda3/envs/robo/lib/python3.8/site-packages/dm2gym/envs/dm_suite_env.py", line 91, in render self.viewer.imshow(img) File "/home/ywy/anaconda3/envs/robo/lib/python3.8/site-packages/gym/envs/classic_control/rendering.py", line 351, in imshow gl.glTexParameteri(gl.GL_TEXTURE_2D, File "/home/ywy/anaconda3/envs/robo/lib/python3.8/site-packages/pyglet/gl/lib.py", line 107, in errcheck raise GLException(msg) pyglet.gl.lib.GLException: b'invalid operation'