Arcade-Learning-Environment icon indicating copy to clipboard operation
Arcade-Learning-Environment copied to clipboard

Seeding mechanism breaks in DEBUG builds

Open dreavjr opened this issue 2 years ago • 1 comments

In environment.py, in AtariEnv.seed, the seed is converted to a signed integer, with the expectation that it will be reconverted into an unsigned integer inside stella_environment.

That only works in Release builds. In Debug builds, an assertion aborts execution when seed <= 0. That makes Debug builds unusable for development with Python.

dreavjr avatar Aug 29 '22 04:08 dreavjr

Hi @dreavjr,

Good catch, this is annoying on debug builds. I'll circle back to this and hopefully fix it for the next release. Thanks!

JesseFarebro avatar Feb 17 '23 06:02 JesseFarebro