UnityEnvironmentException: Environment shut down with return code 127.

i want to use my rl_model in unity_enviroment
my model was used in gym_enviroment
no error occurs in windows and my ubutu but on another ubuntu it does
enviroment is same

Ubuntu 20.04.2 LTS
mlagents_envs.version, = 0.28.0
API_VERSION, = 1.5.0
Gym-unity = 0.28.0

error code

File “MYPATH”, line 418, in _poll_process
raise UnityEnvironmentException(exc_msg)
mlagents_envs.exception.UnityEnvironmentException: Environment shut down with return code 127.

what is code 127?

1 Like

Were you able to resolve it? I have the same issue

Ubuntu 18.04.6 LTS (bionic)
ml-agents: 0.27.0
ml-agents-envs: 0.27.0
Communicator API: 1.5.0
PyTorch: 1.8.1+cu102

Found the issue. Try running

setfacl -R -b

where “” is the directory with the build. It might have the special access privilege set.

I’m having the same issue and unfortunately your fix above doesn’t work for me @dsb04163 did you manage to fix it another way? Thanks in advance!

i have the same problem, could you solve it?

I have meet the same issue,the project that i run successfully in windows has mistake in Ubutu,setfacl -R -b seems not work for me.Any other approaches have you try to fix it?I will appreciate it if you can provide some information.

I encountered the same problem. I used the command line to package apk. My problem was that I mistakenly entered the path of unity.exe “Applications/Unity/2020.3.30f1/Unity.app/Contents/MacOS/Unity -batchmode”. The correct one should be “Applications/Unity/Hub/Editor/2020.3.30f1/Unity.app/Contents/MacOS/Unity -batchmode”, so I solved it.