Skip to content

Python client freezes if reset() called instantly after creating UnityEnvironment #42

@SSS135

Description

@SSS135
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions