Closed BeWaterMyFriend7 closed 3 years ago
What environment are you trying to render? And does your device have a version of Ubuntu with a UI installed and a monitor attached?
I get the same issue when trying to render the CarRacing-v0
environment.
OS: Linux Mint 20.2 Uma (Ubuntu Focal)
I'm not running headless and yes with a UI installed and monitors connected.
nvidia-smi: NVIDIA-SMI 470.63.01 Driver Version: 470.63.01 CUDA Version: 11.4
nvcc -v: Cuda compilation tools, release 11.4, V11.4.120
gpu: Nvidia RTX3060
I did also notice that I get the following warning
Track generation: 1110..1399 -> 289-tiles track
/home/user/anaconda3/envs/rl/lib/python3.8/site-packages/pyglet/window/__init__.py:666: UserWarning:
Your graphics drivers do not support OpenGL 2.0.
You may experience rendering issues or crashes.
What environment are you trying to render? And does your device have a version of Ubuntu with a UI installed and a monitor attached?
Thank you very much for your reply.
I get this issue when trying to render the CartPole-v0
and MountainCar-v0
environment
And I have the GUI interface of Ubuntu
I had the same problem with similar setup, for further testing I tried running pyglet 'Hello World' example and got the same error. I think this issue is on pyglet
I also found this relevant issue on their repo https://github.com/pyglet/pyglet/issues/454, however I still got problems after installing the maintence version as described there
Reverting pyglet version to 1.5.19 seem to have solved this for me, I think we could limit to up to this version until a new release fixes it?
Limiting pyglet to that version will break installs for various people. It used to be limited and then we got a bunch of issues.
Limiting pyglet to that version will break installs for various people. It used to be limited and then we got a bunch of issues.
got it! And I think it is not necessary anymore, as pyglet released 1.5.21 today and it fixed this issue for me. @BeWaterMyFriend7 and @dre2004 try upgrading pyglet to the latest version and check if it solves the issue. :)
Limiting pyglet to that version will break installs for various people. It used to be limited and then we got a bunch of issues.
got it! And I think it is not necessary anymore, as pyglet released 1.5.21 today and it fixed this issue for me. @BeWaterMyFriend7 and @dre2004 try upgrading pyglet to the latest version and check if it solves the issue. :)
Thank you very much! This issue has troubled me for a long time and even I have the idea of reinstalling the system. Now I upgraded pyglet and it was solved. Also thanks to all contributors for your hard work. @jkterry1
Hi, I got same problem of black displaying window with message: 'Your graphics drivers do not support OpenGL 2.0. You may experience rendering issues or crashes.' when I run python3.8 codes under noetic ubuntu 20.04 within anaconda environment, but without ROS ,and it is works , the windows got rendering properly. Any one can help? thanks
Running 'Hello World' under Linux with X11, I got the 'Your graphics drivers do not support OpenGL 2.0....' but only occasionally when running remotely via exported display in an ssh session. I diagnosed and then fixed the issue by running with:
pyglet.options['debug_gl'] = True
pyglet.options['debug_gl'] = True
pyglet.options['debug_gl_trace'] = True
pyglet.options['debug_x11'] = True
Observing stderr during a failure indicated a bad malloc in X11 was causing the failure. Updated my Nvidia drivers and it fixed it. Try with DEBUG options and see what you get. Reference: https://pyglet.readthedocs.io/en/latest/programming_guide/debug.html
When I run
env.render()
the rendering fails, a black pop-up window appears, and an warning is reported:Your graphics drivers do not support OpenGL 2.0. You may experience rendering issues or crashes.
I have reinstalled the nvidia graphics driver, but the problem still exists
Enviroment
ubuntu20.04 RTX2080Ti X3
nvidia-smi
:NVIDIA-SMI 460.91.03 Driver Version: 460.91.03 CUDA Version: 11.2nvcc -V
:Cuda compilation tools, release 11.2, V11.2.152