openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.81k stars 810 forks source link

Offscreen Run causes "ERROR: Could not allocate offscreen framebuffer" even with a lot of available memory #720

Open nicolas-schreiber opened 2 years ago

nicolas-schreiber commented 2 years ago

Describe the bug We currently have the problem, when running Mujoco on a compute cluster without GPU and without Display, so everything offscreen, that we get an "ERROR: Could not allocate offscreen framebuffer" error frequently, that kills our process.

This Error is also displayed in the MUJOCO_LOG.txt

We found that having more than one instance of mujoco open increases the probability of the error, however, we should have far more than enough memory left during the error.

To Reproduce Difficult to do, since we were only able to reproduce it on our compute cluster

Desktop (please complete the following information):

Environment

Additional context We do want to render an instance of a virtual camera after a rollout, however, often the error happens far before that.

We understand that this error is probably very dependent on our setting and cluster, however, we hope that somebody here can point us toward the right direction to get to a solution