Freeze when trying to run AirSim

Hi folks,

I’ve installed Ubuntu 18.04 LTS on a Dell Inspiron laptop (i7, 16GB RAM). I’ve set up the nVidia drivers to the best of my ability, and they seem to be registered and running.

I’ve compiled Unreal Engine from source version 4.24 in an attempt to run Microsoft AirSim. I can get UE4Editor running, but when I try to load the Blocks project, it brings the system to a halt- no mouse, no nothing. Can anyone suggest where I can look, or any info I can provide to help debug this?

Thanks…

Dear valued Unreal Engine user,

If possible are you able to provide more information about where the specific issue is occurring, as well as, how you are loading the project? Is it built or packaged, or run from the editor, for example?

If you are loading the project up in the editor and it is hanging after the splash screen and during opening the map, it could be due to compiling shaders in the background. It seems as though UE4, still compiles shaders on the same thread as the UI, which can cause the UI to stop responding. If you have a lower powered machine, such as a laptop, compiling shaders can take a long time. You may be able to work around that by first compiling a packaged target using the commandline to cache the shaders in the DDC. As you then open up the editor again, they would simply be fetched from the DDC.

If this is hanging during running a packaged project, then the best course of action would be to check on the AirSim github issues page, and ask the question there, as it may be a project specific issue.

Thank you for your continued support,

I had this problem when I was trying to integrate AirSim with ardupilot SITL and accidently changed the settings.json file. Make sure that your localhostIP is set to 127.0.0.1. The line in settings.json should look like this

“LocalHostIp”:“127.0.0.1”

Tell me if this helps!

1 Like

Thank you. This helped to resolve a freeze of starting UE4 game with AirSim. I had this
“LocalHostIp”:“0.0.0.0”
in the ~/Documents/AirSim/settings.json
After changing to “LocalHostIp”:“0.0.0.0” my game starts from UEditor with no problem.