Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
conorokane opened this issue Apr 21, 2020 · 16 comments

Comments

@conorokane
Copy link

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.

@rajat2004
Copy link
Contributor

This is probably due to a current bug in the code, which is being fixed in #2328

@TerryTeng88
Copy link

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

@cm1405276135
Copy link

Hello,Have you solved the problem?

@rajat2004
Copy link
Contributor

rajat2004 commented Apr 23, 2020

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

@conorokane
Copy link
Author

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]

@rajat2004
Copy link
Contributor

rajat2004 commented Apr 23, 2020

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

@conorokane
Copy link
Author

conorokane commented Apr 23, 2020

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

@rajat2004
Copy link
Contributor

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

@fzambetta-rmit
Copy link

fzambetta-rmit commented Apr 24, 2020

@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)?

@rajat2004
Copy link
Contributor

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

@TerryTeng88
Copy link

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

@rajat2004
Copy link
Contributor

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

@madratman
Copy link
Contributor

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

@rajat2004
Copy link
Contributor

This is probably a problem with the way Unity handles the settings, there's a PR #2303 which fixes problems with Unity, but I haven't tested it yet and it's quite an extensive PR to review as well

@TomSeestern
Copy link

Workaround for this Issue:
from jasonhbartlett

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

@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had activity from the community in the last year. It will be closed if no further activity occurs within 20 days.

@stale stale bot added the stale label Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants