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

Python kernal crashing #71

Open
namansaxena9 opened this issue Jul 21, 2021 · 4 comments
Open

Python kernal crashing #71

namansaxena9 opened this issue Jul 21, 2021 · 4 comments

Comments

@namansaxena9
Copy link

I am using Spyder with python 3.7. As soon as I run my code the kernal crashes.

The following is my sample code:

import pybulletgym
import gym
env_name = 'HumanoidPyBulletEnv-v0'
env = gym.make(env_name)

env.render()
env.reset()

for i in range(10000):
obs, rewards, done, _ = env.step(env.action_space.sample())
env.close()

What could be reason for the crash?

@benelot
Copy link
Owner

benelot commented Jul 21, 2021 via email

@namansaxena9
Copy link
Author

When I execute the code, the simulation window pops up. But the window is complete blank. Soon after that window goes into "Not Responding" state and kernel crashes.

I have tried to execute just this code:

import pybulletgym
import gym
env_name = 'HumanoidPyBulletEnv-v0'
env = gym.make(env_name)

env.render()
env.reset()

It crashes on the execution of just this code.

@benelot
Copy link
Owner

benelot commented Jul 21, 2021

That is very surprising and I have never seen this. Can you check in pybullet (not pybullet gym) if you have the same problem? Pybullet gym is basically implementations of mujoco envs, and pybullet is the physics base system and also contains some envs you can test this bug with.

@robodave94
Copy link

Just offering my two cents here, I had the same error described, I found that a quick fix was downgrading the gym version utilized. When utilizing the latest version of gym, some process was not being activated in the rendering step.

i.e. pip install gym==0.9.7 worked immediately, probably a more modern version would also work.

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

No branches or pull requests

3 participants