Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

UnityEnvironmentException: Environment shut down with return code 127.

Discussion in 'ML-Agents' started by dsb04163, Feb 15, 2022.

  1. dsb04163

    dsb04163

    Joined:
    Feb 15, 2022
    Posts:
    1
    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?
     
    Aelcyx likes this.
  2. Aelcyx

    Aelcyx

    Joined:
    Jun 13, 2014
    Posts:
    12
    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
     
  3. Aelcyx

    Aelcyx

    Joined:
    Jun 13, 2014
    Posts:
    12
    Found the issue. Try running

    setfacl -R -b <directoryname>

    where "<directoryname>" is the directory with the build. It might have the special access privilege set.
     
  4. leo2r

    leo2r

    Joined:
    Mar 14, 2022
    Posts:
    10
    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!
     
  5. good_guy_erik

    good_guy_erik

    Joined:
    Feb 13, 2023
    Posts:
    2
    i have the same problem, could you solve it?