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

Crash when trying to run in editor #105

Open
ab3nd opened this issue Sep 12, 2024 · 4 comments
Open

Crash when trying to run in editor #105

ab3nd opened this issue Sep 12, 2024 · 4 comments

Comments

@ab3nd
Copy link

ab3nd commented Sep 12, 2024

Bug report

  • AirSim Version/#commit: commit 17aae2d (HEAD -> main, origin/main, origin/HEAD)
    Date: Sat Aug 31 13:06:48 2024 -0400
  • UE/Unity version: 5.3.2
  • autopilot version: N/A
  • OS Version: Windows 10 Pro for Workstations

What's the issue you encountered?

I have a custom environment that was originally put together in 4.24, but has been updated to 5.3.2. If I attempt to play in the editor by pressing the green "play" button on the taskbar, the editor crashes immediately.

When I open the environment, I do get an error message that says "Package '/AirSim/Blueprints/BP_CameraDirector' contains a newer version than the current process supports. PackageVersion 1,012, MaxExpected 1,009 : LicenseePackageVersion 0, MaxExpected 0.", but I am unsure if this is related.

Settings

The issue was present with a near-empty default settings.json, and persists with a settings.json that was copied from earlier work with AirSim.

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

or

{
  "SimMode": "Multirotor",
  "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/main/docs/settings.md",
  "SettingsVersion": 1.2,
  
  "FastPhysicsEngine": {
    "EnableGroundLock": false
  },

  "TimeOfDay": {
    "Enabled": false
  },

  "Vehicles": {
    "Solo_0": {
      "VehicleType": "SimpleFlight",
      "DefaultVehicleState": "Armed",
      "AutoCreate": true,
      "EnableCollisionPassthrogh": false,
      "EnableCollisions": true,
      "AllowAPIAlways": true,
      "RC": {
        "RemoteControlID": 1,
        "AllowAPIWhenDisconnected": true
      },

      "X": 0,
      "Y": 0,
      "Z": 0,
      
      "UdpPort": 5505,
      "SitlPort": 5760

    }
  },

  "OriginGeopoint": {
    "Latitude": 35.763922,
    "Longitude": -120.770021,
    "Altitude": 36
  }
}

How can the issue be reproduced?

  1. Build the Colosseum plugin according to the online directions
  2. Add it to an 5.3.2 environment (copy into plugins folder)
  3. Try to play in the editor

My next step is going to be creating a new environment and adding the plugin to that environment instead of trying to port an older environment forward.

Include full error message in text form

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION writing address 0x00000000000004b4

UnrealEditor_AirSim!ASimModeBase::initializeCameraDirector() [E:\OnlySmithvilleUe5\Plugins\AirSim\Source\SimMode\SimModeBase.cpp:458]
UnrealEditor_AirSim!ASimModeBase::setupVehiclesAndCamera() [E:\OnlySmithvilleUe5\Plugins\AirSim\Source\SimMode\SimModeBase.cpp:702]
UnrealEditor_AirSim!ASimModeBase::BeginPlay() [E:\OnlySmithvilleUe5\Plugins\AirSim\Source\SimMode\SimModeBase.cpp:144]
UnrealEditor_AirSim!ASimModeWorldMultiRotor::BeginPlay() [E:\OnlySmithvilleUe5\Plugins\AirSim\Source\Vehicles\Multirotor\SimModeWorldMultiRotor.cpp:24]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_AirSim!ASimHUD::createSimMode() [E:\OnlySmithvilleUe5\Plugins\AirSim\Source\SimHUD\SimHUD.cpp:271]
UnrealEditor_AirSim!ASimHUD::BeginPlay() [E:\OnlySmithvilleUe5\Plugins\AirSim\Source\SimHUD\SimHUD.cpp:33]
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_UnrealEd
UnrealEditor_UnrealEd
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

@ab3nd
Copy link
Author

ab3nd commented Sep 12, 2024

I'm pretty sure it's related to the CameraDirector, since that shows up in both the version error message and the stack trace.

@ab3nd
Copy link
Author

ab3nd commented Sep 16, 2024

The bug is that the readme.md for the repo says:

IMPORTANT ANNOUNCEMENT
Moving forward, we are now using Unreal Engine 5 version 5.03 or greater! If you want to use UE4.27, you can use the branch ue4.27.

Unreal Engine Version for Main Branch
The main branch of this repository only supports Unreal Engine 5.2! Please see our other branches for other versions that we support.

At present, the head of main only supports 5.4, not 5.2, and certainly not 5.03.

@XiaoShan262
Copy link

Have you solved the problem yet?

@OUSHAOHUA
Copy link

i have same probrom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants