krumiaa / MindMaker

MindMaker UE4 Machine Learning Toolkit
255 stars 31 forks source link

MARL disconnection from Unreal Engine after a while #25

Closed oshirokn closed 1 year ago

oshirokn commented 1 year ago

Hi!

I setup the MARL as described in the github. However, after a while (10 seconds) the second agent training stops working with the print "Disconnected from Unreal Engine. Exiting Mindmaker". The first agent trains fine. ScreenshotObs

Do you have any idea why this might happen?

I did the following steps:

krumiaa commented 1 year ago

Thanks for reaching out about this, not sure why the second agent would be auto disconnecting, perhaps a firewall issue. The only thing I could think to try is standard debugging procedure, remove all the superfluous RL code and bring it back to a basic client server setup, see if it sustains the connection, and then start adding things back in. Another place to look would be the SocketIO plugin settings in blueprints, there maybe some auto-disconnect feature that got enabled. Wish I had more idea about this, until I can replicate could be difficult to solve. FYI – planning to launch an upgrade to Stablebaslines 3 shortly(next week or two), that might eliminate your problem altogether.

oshirokn commented 1 year ago

Thanks for your answer. I tried with a very basic setup using the original mindmaker BP and got the same problem. For now I'll stick with a single agent. Maybe a firewall issue? Let's see if Stablebaselines 3 upgrade fixes it.

oshirokn commented 1 year ago

I still have the same problem with a very basic project. A sphere moves forward/backward if action 0 or 1. image

Maybe I am doing something wrong with the setup?

image

Are these steps correct?

I can send you the project if needed @krumiaa .

oshirokn commented 1 year ago

Fixed by using a more recent example project from 5.1