openai / gym

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

Box2d bipedal walker segfault #114

Closed justheuristic closed 8 years ago

justheuristic commented 8 years ago

This code happens to cause segfault for some reasons i cannot comprehend

env_name = "BipedalWalker-v1"
import gym
ll0 = gym.make(env_name)
ll0.reset()
ll1 = gym.make(env_name)
ll1.reset()
ll0.reset()

However, doing the same thing with a different box2d env works fine

env_name = "LunarLander-v1"
import gym
ll0 = gym.make(env_name)
ll0.reset()
ll1 = gym.make(env_name)
ll1.reset()
ll0.reset()

Can anyone reproduce the error? Is there anything i can do to fix it?

olegklimov commented 8 years ago

I am able to reproduce everything you wrote. First one crashes, second doesn't. And it is not related with program termination. Scratching my head for now.

olegklimov commented 8 years ago

https://github.com/openai/gym/pull/118

jietang commented 8 years ago

Fix merged.

justheuristic commented 8 years ago

Guys, sorry, but could someone please assert that the fix works at ubuntu 14.04? I didn't manage to bypass error for BipedalWalker-v2 at current version

justheuristic commented 8 years ago

@jietang Could you please reopen