microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.28k stars 4.53k forks source link

Startup of Car- and Drone-mode fails on Unity #2648

Open ghost opened 4 years ago

ghost commented 4 years ago

In order to reproduce the problem:

Loading the according scenes fails and following error message is reported for car mode:

Cannot read settings file G:\Engines\Unity\Versions\2019.3.3f1\Editor\settings.json Vehicle=PhysXCar UnityEngine.Debug:LogError(Object) AirSimUnity.Vehicle:PrintLogMessage(String, String, String, Int32) (at Assets/AirSimAssets/Scripts/Vehicles/Vehicle.cs:293) AirSimUnity.VehicleCompanion:PrintLogMessage(String, String, String, Int32) (at Assets/AirSimAssets/Scripts/Vehicles/VehicleCompanion.cs:199)

blacknaki commented 4 years ago

I get the same error. Any solutions?

TomSeestern commented 4 years ago

please share your settings.json

ghost commented 4 years ago

I could not find a settings.json. Where should this file be located? Also could it be that it tries to load the file from the wrong place, since the path reported in the error is the path to the installed Unity version, however there aren´t any files specific to one project in this directory.

AngelTang190 commented 4 years ago

I could not find a settings.json. Where should this file be located? Also could it be that it tries to load the file from the wrong place, since the path reported in the error is the path to the installed Unity version, however there aren´t any files specific to one project in this directory.

It's under Documents -> AirSim

AngelTang190 commented 4 years ago

In order to reproduce the problem:

Loading the according scenes fails and following error message is reported for car mode:

Cannot read settings file G:\Engines\Unity\Versions\2019.3.3f1\Editor\settings.json Vehicle=PhysXCar UnityEngine.Debug:LogError(Object) AirSimUnity.Vehicle:PrintLogMessage(String, String, String, Int32) (at Assets/AirSimAssets/Scripts/Vehicles/Vehicle.cs:293) AirSimUnity.VehicleCompanion:PrintLogMessage(String, String, String, Int32) (at Assets/AirSimAssets/Scripts/Vehicles/VehicleCompanion.cs:199)

I'm also facing the same problem as well

AngelTang190 commented 4 years ago

image

There are only two lines of code here, but I didn't change anything.

ghost commented 4 years ago

It's under Documents -> AirSim

Thank you! My settings look like this:

{ "SimMode" : "", "SettingsVersion" : 1.2, "SeeDocsAt" : "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md" }

AngelTang190 commented 4 years ago

It's under Documents -> AirSim

Thank you! My settings look like this:

{ "SimMode" : "", "SettingsVersion" : 1.2, "SeeDocsAt" : "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md" }

Same as yours, just the lines are inverted.

blacknaki commented 4 years ago

{ "SimMode" : "", "SettingsVersion" : 1.2, "SeeDocsAt" : "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md" }

Gastastrophe commented 3 years ago

For me, when I opened my settings.json file in Visual Studio, it said that the line ending formatting was mismatched and I was provided a list of options to change it to. I selected Windows, since I was working on a Windows machine. As a note, I also did the recommended fix above by placing a copy of my settings.json file in "Unity\Versions\2019.3.3f1\Editor" where the error message said it was searching. This fixed the issue for me.

Ibrahim2595 commented 2 years ago

Any solution to this so far? I am getting the same issue still and I have this as my json file.

{ "SimMode" : "", "SettingsVersion" : 1.2, "SeeDocsAt" : "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md" }

I also opened the file with visual studio and accepted the recommendations to fix for windows. But error is still there.