Cosys-Lab / Cosys-AirSim

AirSim is a simulator for drones, cars and more, built on Unreal Engine. We expand it with new implementations and sensor modalities.
https://cosys-lab.github.io/
Other
48 stars 6 forks source link

UE5.2.1 Crashing #30

Open batc8t opened 5 days ago

batc8t commented 5 days ago

i have an issue with UE5.2.1 , with the blocks environment , when i run the ros2 wrapper Unreal engine crashes with the following error

Assertion failed: !bPostTickComponentUpdate [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp] [Line: 887]

UnrealEditor_Engine UnrealEditor_Engine UnrealEditor_AirSim!UAirBlueprintLib::DrawPoint() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirBlueprintLib.cpp:116] UnrealEditor_AirSim!UnrealLidarSensor::getPointCloud() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\UnrealSensors\UnrealLidarSensor.cpp:215] UnrealEditor_AirSim!msr::airlib::LidarSimple::updateOutput() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\sensors\lidar\LidarSimple.hpp:100] UnrealEditor_AirSim!msr::airlib::LidarSimple::update() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\sensors\lidar\LidarSimple.hpp:51] UnrealEditor_AirSim!msr::airlib::UpdatableContainer<msr::airlib::SensorBase >::update() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\common\UpdatableContainer.hpp:62] UnrealEditor_AirSim!msr::airlib::SensorCollection::update() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\sensors\SensorCollection.hpp:86] UnrealEditor_AirSim!msr::airlib::MultiRotorPhysicsBody::updateSensorsAndController() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\vehicles\multirotor\MultiRotorPhysicsBody.hpp:90] UnrealEditor_AirSim!msr::airlib::FastPhysicsEngine::updatePhysics() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\physics\FastPhysicsEngine.hpp:114] UnrealEditor_AirSim!msr::airlib::FastPhysicsEngine::update() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\physics\FastPhysicsEngine.hpp:50] UnrealEditor_AirSim!msr::airlib::World::update() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\physics\World.hpp:53] UnrealEditor_AirSim!msr::airlib::World::worldUpdatorAsync() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\physics\World.hpp:152] UnrealEditor_AirSim!common_utils::ScheduledExecutor::executorLoop() [D:\AIRSIMSTUFF\Cosys-AirSim\Unreal\Environments\Blocks\Plugins\AirSim\Source\AirLib\include\common\common_utils\ScheduledExecutor.hpp:204] UnrealEditor_AirSim!std::thread::_Invoke<std::tuple<void (__cdecl common_utils::ScheduledExecutor::)(void),common_utils::ScheduledExecutor *>,0,1>() [C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\INCLUDE\thread:61] ucrtbase kernel32 ntdll

or the following error

Assertion failed: !bRenderStateDirty [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\ActorComponent.cpp] [Line: 1816] Failed to route CreateRenderState_Concurrent (LineBatchComponent /Engine/Transient.LineBatchComponent_6)

UnrealEditor_Engine UnrealEditor_Engine UnrealEditor_Engine UnrealEditor_UnrealEd UnrealEditor_UnrealEd UnrealEditor UnrealEditor UnrealEditor UnrealEditor UnrealEditor UnrealEditor kernel32 ntdll

i have reinstalled Unreal engine, reinstalled VS, and Cosys-Airsim and rebuilt everything still getting the errors

WouterJansen commented 5 days ago

Hi, can you share your airsim settings.json file?

batc8t commented 5 days ago

settings.json

WouterJansen commented 5 days ago

Can you try turning off DrawDebugPoints for the Lidar sensors?

batc8t commented 5 days ago

turning off DrawDebugPoints alone didnt work , however removing the Resolution, RotationsPerSecond, MeasurementsPerCycle, and turning off DrawDebugPoints seems to be working. i havent had a crash in 30 mins , before it was crashing as soon as i start the ros2 wrapper. here is my new Lidar settings: "LidarA": { "SensorType": 6, "Enabled": true, "NumberOfChannels": 16, "PointsPerSecond": 10000, "X": 0, "Y": 0, "Z": -1, "DrawDebugPoints": false } i also removed the PassiveEchoBeacons and Beacons. thank you

petertheprocess commented 2 days ago

any fix or potential clue on that? I have the same issue, especially when switching viewport.