UnityTimeOutException: The Unity environment took too long to respond.
See original GitHub issueI am using obstacle tower 1.2 binary and mlagents-envs-0.6.2
, under a Linux environment.
In [1]: from obstacle_tower_env import ObstacleTowerEnv
In [2]: ObstacleTowerEnv.ALLOWED_VERSIONS
Out[2]: ['1', '1.1', '1.2']
In [3]: env = ObstacleTowerEnv('./ObstacleTower/obstacletower.x86_64', retro=False, realtime_mode=False)
Found path: ./ObstacleTower/obstacletower.x86_64
Mono path[0] = './ObstacleTower/obstacletower_Data/Managed'
Mono config path = './ObstacleTower/obstacletower_Data/MonoBleedingEdge/etc'
Preloaded 'ScreenSelector.so'
Preloaded 'libgrpc_csharp_ext.x64.so'
Logging to $HOME/.config/unity3d/Unity Technologies/ObstacleTower/Player.log
I get the following error:
UnityTimeOutException: The Unity environment took too long to respond. Make sure that :
The environment does not need user interaction to launch
The Academy and the External Brain(s) are attached to objects in the Scene
The environment and the Python interface have compatible versions.
I am correctly using the obstacletower 1.2 binary, and it was a head-less mode.
2f6c7ca247c98cdb27776bfde28037a36d1280a4 obstacletower.x86_64
Related Issue?
I checked #44 #46 but they were about Windows or before 1.2 release. I had tried out v1.0 long time ago, and I remember there was no problem at that time.
Executing the binary from the console (with strace) – nothing follows after some system calls.
... (many lines) ...
munmap(0x7f6f1ac54000, 92100) = 0
munmap(0x7f6ee85f5000, 2109768) = 0
munmap(0x7f6ee83ef000, 2118024) = 0
open("./ObstacleTower/obstacletower_Data/Resources/UnityPlayer.png", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=24711, ...}) = 0
brk(0x415c000) = 0x415c000
read(4, "\211PNG\r\n\32\n\0\0\0\rIHDR\0\0\0\200\0\0\0\200\10\2\0\0\0L\\\366"..., 1048576) = 24711
What should I check for this issue?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
The Unity environment took too long to respond. · Issue #3683 ...
Run Unity and open Project using ml-agents; Open windows command line and issue command mlagents-learn config/trainer_config.yaml --train.
Read more >The Unity environment took too long to respond
Hi, I am trying out the ML Agent from scratch and I followed all the instruction from the document. But I can't seem...
Read more >Mlagents-learn train: "The Unity environment took too long to ...
I tried to run 3dBall example project and everything is running fine when I train it. I did everything according to basic guide...
Read more >Evalutation error : Unity environment took too long to respond
exception.UnityTimeOutException: The Unity environment took too long to respond. Make sure that : The environment does not need user interaction ...
Read more >【已解决】“The Unity environment took too long to respond ...
在运行多进程并行训练时,Unity会有如下报错,此时程序卡死怀疑有可能是没有关闭图形造成的.修改文件,目录在:.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @twoleggedeye,
Unfortunately we don’t support virtualGL right now with Unity / Obstacle Tower. If you’d like to use a GPU rendering solution, we recommend running a virtual x-server. https://github.com/Unity-Technologies/obstacle-tower-env/blob/master/examples/gcp_training.md#set-up-xserver
Hi @wookayin and @GrachevArtem
In order to run Obstacle Tower on a headless Linux machine you will either need to run xvfb on that machine (and you can use our
obstacle-tower-challenge
repo/docker image to do that https://github.com/Unity-Technologies/obstacle-tower-challenge), or run a virtual x-server. We have instructions for installing a virtual x server as part of our GCP/Dopamine guide: https://github.com/Unity-Technologies/obstacle-tower-env/blob/master/examples/gcp_training.md