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

Segmentation fault when rendering both human and rgb_array #1958

Closed
DiddiZ opened this issue Jun 14, 2020 · 1 comment
Closed

Segmentation fault when rendering both human and rgb_array #1958

DiddiZ opened this issue Jun 14, 2020 · 1 comment
Labels

Comments

@DiddiZ
Copy link

DiddiZ commented Jun 14, 2020

Rendering in both human and rgb_array alternatingly results in a segfault.

MWE:

import gym

env = gym.make("FetchReach-v1")

env.render("human") # Renders properly
env.render("rgb_array")  # Returns correct image
env.render("human")  # Segmentation fault

Couriously, the other way round also does not work as intended:

import gym

env = gym.make("FetchReach-v1")

env.render("rgb_array") # Returns correct image
env.render("human")  # Renders properly
env.render("rgb_array")  # Only returns zeros, returned image is black

I'm using mujoco-py 2.0.2.10.

@jkterry1
Copy link
Collaborator

PR #2762 is about to be merged, introducing V4 MuJoCo environments using new bindings and a dramatically newer version of the engine. If this issue still persists with the V4 ones, please create a new issue for it.

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

No branches or pull requests

3 participants