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

RuntimeError: Cannot create multiple emulator instances per process #64

Closed
ShaniGam opened this issue Jul 27, 2018 · 2 comments
Closed

Comments

@ShaniGam
Copy link

ShaniGam commented Jul 27, 2018

Trying to run 'CombatCars-Genesis' in a parallel algorithm (A3C/A2C) and get the error:
RuntimeError: Cannot create multiple emulator instances per process
Why isn't it possible to create more than one instance like with the Atari games?

@endrift
Copy link
Contributor

endrift commented Jul 27, 2018

This is because the way libretro, the library that backs Gym Retro's emulator integrations, works. It simply is not possible to load the emulator into the process more than once with its model.

I can go into more details if you like but this is not a fixable problem, unfortunately. You'll need to use multiprocess shims.

@endrift endrift closed this as completed Jul 27, 2018
@endrift
Copy link
Contributor

endrift commented Jul 27, 2018

See also https://github.com/MaxStrange/retrowrapper

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

2 participants