I tried using Environment Executable for training on local Windows and Linux, and it worked really great.
But when I follow the same process in Azure VM, the Environment Executable(the game) just quit immediately, and ml-agents cannot connect with the Environment Executable.
I also tried two methods to build the Environment Executable, one is directly build in Azure VM ,and the other is build in host computer, then transfer the Environment Executable to Azure VM. Both methods failed the same way as before.
Is there any workaround here?
Are there any logs from the executable? Can you try running it directly (without mlagents-learn) and pass â-logFile -â, or pass ââenv-args -logFile -â to mlagents-learn? That should print the logs to the console.
If you canât run the executable outside of mlagents-learn, thereâs not much we can do to help in this forumâŚ
Thanks for reply.
Follow your steps, I got this one below.
I think the problem isnât the ml-agentsâŚdoes this mean I donât have openGL?
If so, thatâs weird, I did install itâŚ
I will try reinstall it.
.
Set current directory to /home/lin/Desktop/game
Found path: /home/lin/Desktop/game/game.x86_64
Mono path[0] = â/home/lin/Desktop/game/game_Data/Managedâ
Mono config path = â/home/lin/Desktop/game/game_Data/MonoBleedingEdge/etcâ
PlayerConnection initialized from /home/lin/Desktop/game/game_Data (debug = 0)
PlayerConnection initialized network socket : 0.0.0.0 55481
Multi-casting â[IP] 10.0.0.5 [Port] 55481 [Flags] 2 [Guid] 826630503 [EditorId] 802499258 [Version] 1048832 [Id] LinuxPlayer(10.0.0.5) [Debug] 0 [PackageName] LinuxPlayer [ProjectName] UnityEnvironmentâ to [225.0.0.222:54997]âŚ
Started listening to [0.0.0.0:55481]
Preloaded âlib_burst_generated.soâ
Preloaded âlibgrpc_csharp_ext.x64.soâ
PlayerConnection already initialized - listening to [0.0.0.0:55481]
Display 0 ârdp0â: 1920x1080 (primary device).
Desktop is 1920 x 1080 @ 50 Hz
Invalid initial resolution 80 x 80 - forcing to 100 x 100
Unable to find a supported OpenGL core profile
Failed to create valid graphics context: please ensure you meet the minimum requirements
E.g. OpenGL core profile 3.2 or later for OpenGL Core renderer
Vulkan detection: 0
No supported renderers found, exiting
(Filename: ./PlatformDependent/LinuxStandalone/main.cpp Line: 618)
Sorry, Iâm not sure the best way to solve this. Thereâs a similar problem described here Linux Server : Unable to find a supported OpenGL core profile ¡ Issue #1464 ¡ Unity-Technologies/ml-agents ¡ GitHub
If you donât use visual observations, you should be able to add â-batchmode -nographicsâ to the Unity commandline (or equivalently, ââno-graphicsâ to the mlagents-learn commandline) to hopefully bypass this.
2 Likes
Thanks for your reply. I will give it a try next Monday.
I solve the problem by using the instruction given here.
And also, I have to export the Environment Executable in headless mode.
Thanks for your help.