openai / procgen

Procgen Benchmark: Procedurally-Generated Game-Like Gym-Environments
https://openai.com/blog/procgen-benchmark/
MIT License
991 stars 207 forks source link

Python crashed when calling env.get_state() with use_generated_assets set to True #83

Closed kaixin96 closed 1 year ago

kaixin96 commented 1 year ago

To reproduce:

from procgen import ProcgenGym3Env

env = ProcgenGym3Env(
    num=1,
    env_name="bossfight",
    use_generated_assets=True
)

rew, obs, first = env.observe()
state = env.get_state()
kaixin96 commented 1 year ago

I found the cause https://github.com/openai/procgen/blob/master/procgen/src/basic-abstract-game.cpp#L1238