Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

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?
     
  6. tangzixiang86

    tangzixiang86

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