CodexLabsLLC / Colosseum

Open source simulator for autonomous robotics built on Unreal Engine with support for Unity
https://codexlabsllc.github.io/Colosseum/
Other
338 stars 106 forks source link

Crash when trying to run in editor #105

Open ab3nd opened 5 days ago

ab3nd commented 5 days ago

Bug report

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 commented 5 days ago

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 commented 1 day ago

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.