Failed to get EGL display: One or more argument values are invalid


#1

I have been trying to run the following code
1 import gym
2 import universe
3 env = gym.make(‘flashgames.DuskDrive-v0’)
4 observation_n = env.reset()
5
6 while True:
7 action_n = [[(‘KeyEvent’, ‘ArrowUp’, True)] for _ in observation_n]
8 observation_n, reward_n, done_n, info = env.step(action_n)
9 env.render()

While doing so i get the following error: “vncgl.go:40] failed to initialize glfw: APIUnavailable: EGL: Failed to get EGL display: One or more argument values are invalid”

Note: “glxgears” shows three gears spinning and “gl21-cube” shows a cube rotating in space. I am mentioning because this has been suggested for similar error. Please help

System Info: Running Ubuntu 16.04 on a amd fx-8370 cpu with nvidia titan x


#2

I have exactly the same issue. Please let me know if you got any solution.


#3

I am having the same issue.

ubuntu 14.04 & titan x


#4

Can someone please reply to this issue ? I am still not able to figure out. Thanks!


#5

For clarification: You do indent after your while statement correct? It seems to be a vnc issue, do you have the newest driver? https://github.com/openai/go-vncdriver


#6

I am having the same error:

universe-qeNVz1-0 | [nginx] 2017/03/31 21:27:26 [info] 63#63: 3 client sent invalid request while reading client request line, client: 127.0.0.1, server: , request: "CONNECT w*.google.c**:443 HTTP/1.1"
universe-qeNVz1-0 | [nginx] 2017/03/31 21:27:26 [info] 63#63: 4 client sent invalid request while reading client request line, client: 127.0.0.1, server: , request: "CONNECT w*.google.c**:443 HTTP/1.1
2017/03/31 14:27:26 C0331 14:27:26.206364 22439 vncgl.go:40] failed to initialize glfw: APIUnavailable: EGL: Failed to get EGL display: One or more argument values are invalid

I installed the latest driver from: https://github.com/openai/go-vncdriver5 and I am still seeing the error.

I am on Ubuntu 16.04 with a Quadro K620.


#7

I had the same issue. I have an Linux Mint 18 KDE version and used the graphic driver provided by die Driver Manager. I had to install the driver from nvidia directly and now it works.


#8

@jamescaud Yes I indent the while statement. I installed the latest go-vncdriver from git as per your suggestion. Yet the problem persist. I am still not able to figure where the problem lies.


#9

@all: While running sudo ldconfig I got the error that libEGL.so.1 is not a symbolic link. So I did the following

sudo mv /usr/lib/nvidia-375/libEGL.so.1 /usr/lib/nvidia-375/libEGL.so.1.org
sudo mv /usr/lib32/nvidia-375/libEGL.so.1 /usr/lib32/nvidia-375/libEGL.so.1.org
sudo ln -s /usr/lib/nvidia-375/libEGL.so.375.39 /usr/lib/nvidia-375/libEGL.so.1
sudo ln -s /usr/lib32/nvidia-375/libEGL.so.375.39 /usr/lib32/nvidia-375/libEGL.so.1

and I rebooted.

Now the program works! Yay!

Thanks a lot people. You have been helpful :smile:


#10

thanks mechatron1991
I had the same GLFW error on a new machine with a nvidia GPU that i am setting up. Ubuntu 16.04 with the proprietary 375 drivers. Looks like a flaw in the nvidia driver distribution process? Creating the symbolic link solved the problem for me as well :slight_smile: