Airsim: Unity: Editor quits after selecting a vehicle "Problem in starting AirSim server!!!"

Created on 21 Apr 2020  Â·  15Comments  Â·  Source: microsoft/AirSim

To reproduce: Follow the install instructions here: https://microsoft.github.io/AirSim/Unity/
Play the SimModeSelector scene.
Click the Car Mode or Drone Mode button.
Error message appears:
Problem in starting AirSim server!!! Please check logs for more information
The editor then quits.

Editor log shows:

UnityEngine.UnhandledExceptionHandler:<RegisterUECatcher>m__0(Object, UnhandledExceptionEventArgs) (at C:\buildslave\unity\build\Runtime\Export\Scripting\UnhandledExceptionHandler.bindings.cs:46)

(Filename: Assets/AirSimAssets/Scripts/Vehicles/VehicleCompanion.cs Line: 139)

Tested in Unity 2018.2.15f1 and 2019.1.0f2 on Windows 10.

bug unity

Most helpful comment

Did you run build.cmd once from the root directory?

No I forgot about that! It works now, tested in Unity 2019.2.11f1.
Thanks for your help.

For anyone else wanting to try branch #2328 here are the steps:

cd AirSim
git checkout master; # update if not already: git pull upstream master --rebase
git fetch origin pull/2328/head:PR/2328; git checkout PR/2328;
./build.sh; # or build.cmd for Windows
cd Unity
./build.sh; # or build.cmd for Windows

All 15 comments

This is probably due to a current bug in the code, which is being fixed in https://github.com/microsoft/AirSim/pull/2328

I have the same error: Problem in starting AirSim server!!! Please check logs for more information
unity2019.3.8f1 windows10

Hello,Have you solved the problem?

If someone would like to try the PR, then use the following commands

cd AirSim
git checkout master; # update if not already: git pull upstream master --rebase
git fetch origin pull/2328/head:PR/2328; git checkout PR/2328;
cd Unity
./build.sh; # or build.cmd for Windows

I tried pulling #2328 and building but the build failed:

"D:\Documents\Projects\AirSim\Unity\AirLibWrapper\AirsimWrapper.sln" (Clean;Build target) (1) ->
"D:\Documents\Projects\AirSim\Unity\AirLibWrapper\AirsimWrapper\AirsimWrapper.vcxproj.metaproj" (default target) (2:2)
->
"D:\Documents\Projects\AirSim\AirLib\AirLib.vcxproj" (default target) (3:4) ->
(ClCompile target) ->
  D:\Documents\Projects\AirSim\AirLib\include\common\VectorMath.hpp(12,10): fatal error C1083: Cannot open include file
: 'Eigen/Dense': No such file or directory [D:\Documents\Projects\AirSim\AirLib\AirLib.vcxproj]

Did you run build.cmd once from the root directory?

Did you run build.cmd once from the root directory?

No I forgot about that! It works now, tested in Unity 2019.2.11f1.
Thanks for your help.

For anyone else wanting to try branch #2328 here are the steps:

cd AirSim
git checkout master; # update if not already: git pull upstream master --rebase
git fetch origin pull/2328/head:PR/2328; git checkout PR/2328;
./build.sh; # or build.cmd for Windows
cd Unity
./build.sh; # or build.cmd for Windows

Glad to know it works.
The build.cmd from the root directory is only needed the first time, since it downloads some external libraries such as Eigen. After that, just running build.cmd from Unity is needed after any code changes

@rajat2004 , I am assuming this branch delivers just the bug fixing highlighted by @conorokane .
Do you know if the Unity API coverage information is still accurately reflected here (i.e., Unity is not at feature parity with UE)?

I think the API list is correct, there might be some more APIs not present in the list which haven't been implemented yet in Unity

The unity version I ended up using was 2018.2.15f1. Now it's up and running。

2328 has been merged, so I think this issue can be closed

The "Problem in starting airsim server" happens if settings.json has a non-empty "Vehicles" section.

So this fails:

{
  "SettingsVersion": 1.2,
  "SimMode": "Multirotor",
   "Vehicles": {
      "Drone1": {
          "VehicleType": "simpleflight"
          }
      }
  }

But this works perfectly fine:

{
  "SettingsVersion": 1.2,
  "SimMode": "Multirotor"
}

This error is still there post #2328

This is probably a problem with the way Unity handles the settings, there's a PR https://github.com/microsoft/AirSim/pull/2303 which fixes problems with Unity, but I haven't tested it yet and it's quite an extensive PR to review as well

Workaround for this Issue:
from jasonhbartlett

I think this Workaround is currently needed to get SITL working with PX4 <-> AirSim <-> Unity

Was this page helpful?
0 / 5 - 0 ratings