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 client freezes if reset() called instantly after creating UnityEnvironment #42

Closed
SSS135 opened this issue Sep 27, 2017 · 2 comments

Comments

@SSS135
Copy link

SSS135 commented Sep 27, 2017

from unityagents import UnityEnvironment
env = UnityEnvironment(file_name='3DBall')
env.reset()

This code freezes python client 4 of 5 times. If env.reset() is called with some delay (~2 seconds), everything will work as expected. This may happen because python client starting communication before game is fully loaded.
Tested on Python 3.6 / Jupyter / Windows 10 x64.

@awjuliani
Copy link
Contributor

Hi @SSS135,

Does this happen both from Jupyter and directly running ppo.py from the command line? It may be Windows-specific behavior, in which case we can add a wait-timer for the "made with Unity" screen to finish before initializing the socket.

@lock
Copy link

lock bot commented Jan 4, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants