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

[Question] Your graphics drivers do not support OpenGL 2.0. #2408

Closed
BeWaterMyFriend7 opened this issue Sep 15, 2021 · 10 comments
Closed

[Question] Your graphics drivers do not support OpenGL 2.0. #2408

BeWaterMyFriend7 opened this issue Sep 15, 2021 · 10 comments

Comments

@BeWaterMyFriend7
Copy link

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.2
nvcc -V:Cuda compilation tools, release 11.2, V11.2.152

@jkterry1
Copy link
Collaborator

jkterry1 commented Sep 15, 2021

What environment are you trying to render? And does your device have a version of Ubuntu with a UI installed and a monitor attached?

@dre2004
Copy link

dre2004 commented Sep 15, 2021

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.

@BeWaterMyFriend7
Copy link
Author

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

@FelipeMartins96
Copy link

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 pyglet/pyglet#454, however I still got problems after installing the maintence version as described there

@FelipeMartins96
Copy link

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?

@jkterry1
Copy link
Collaborator

Limiting pyglet to that version will break installs for various people. It used to be limited and then we got a bunch of issues.

@FelipeMartins96
Copy link

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. :)

@BeWaterMyFriend7
Copy link
Author

BeWaterMyFriend7 commented Sep 17, 2021

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

@DomL2018
Copy link

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

@keithburden
Copy link

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

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

No branches or pull requests

6 participants