openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.49k stars 8.59k forks source link

GLFW error in SSH server #879

Closed AntonioSerrano closed 4 years ago

AntonioSerrano commented 6 years ago

I am trying to run Open AI Gym with MuJoCo 1.31 in a server via -X -Y ssh. The machine has Ubuntu 16.04 and CUDA 8 installed and goes with a Nvidia Titan. However, I got the following error related to OpenGL/Mesa. In particular, with the GLFW library:

GLFW error: 65537, desc: b'The GLFW library is not initialized'

Any clue? Thx.

amanjhunjhunwala commented 6 years ago

+1 same problem

nke001 commented 6 years ago

+1. Anyone solved this issue?

christopherhesse commented 5 years ago

This sounds similar to https://github.com/openai/gym/issues/366 does running an OpenGL accelerated X server fix the issue?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

AntonioSerrano commented 4 years ago

Dear cute bot. Do not close it. It remains unsolved and someone could give us a useful answer. Thanks

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

swagatk commented 2 years ago

On the ssh client terminal use fake screen to remove the glfw error.

$ xvfb-run -a -s "-screen 0 1400x900x24" python dmc_test.py

dmc_test.py uses mujoco environment and hence throws up GLFW initialization error when accessed through SSH. The above command solves this error.

if the package xvfb is not installed, use the following command to install: sudo apt install xvfb