Chaos crash

Hello everyone

When I upgraded to version 5.3 I started getting errors like this:

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 771] Array index out of bounds: 1073741947 from an array of size 4944

UnrealEditor_Chaos!Chaos::THierarchicalSpatialHash<int,float>::Initialize<TArray<Chaos::TTriangleMeshBvEntry<float>,TSizedDefaultAllocator<32> > >'::2’::<lambda_1>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Public\Chaos\HierarchicalSpatialHash.h:253]

UnrealEditor_Chaos!Chaos::PhysicsParallelFor'::2’::<lambda_1>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\Framework\Parallel.cpp:74]

UnrealEditor_Chaos!ParallelForImpl::ParallelForInternal<TFunctionRef<void __cdecl(int)>,ParallelFor’::2'::<lambda_1>,std::nullptr_t>'::2’::FParallelExecutor::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\ParallelFor.h:116]

UnrealEditor_Chaos!ParallelForImpl::ParallelForInternal<TFunctionRef<void __cdecl(int)>,ParallelFor'::2’::<lambda_1>,std::nullptr_t>() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\ParallelFor.h:411]

UnrealEditor_Chaos!ParallelFor() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\ParallelFor.h:455]

UnrealEditor_Chaos!Chaos::PhysicsParallelFor() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\Framework\Parallel.cpp:76]

UnrealEditor_Chaos!Chaos::THierarchicalSpatialHash<int,float>::Initialize<TArray<Chaos::TTriangleMeshBvEntry,TSizedDefaultAllocator<32> > >() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Public\Chaos\HierarchicalSpatialHash.h:266]

UnrealEditor_Chaos!Chaos::FTriangleMesh::BuildSpatialHash() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\TriangleMesh.cpp:1686]

UnrealEditor_Chaos!Chaos::Softs::FPBDTriangleMeshCollisions::Init() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\PBDTriangleMeshCollisions.cpp:1166]

UnrealEditor_ChaosCloth!Chaos::FClothConstraints::CreateRules'::108’::<lambda_40>::operator()() [D:\build++UE5\Sync\Engine\Plugins\Experimental\ChaosCloth\Source\Chaos\Private\ChaosCloth\ChaosClothConstraints.cpp:805]

UnrealEditor_Chaos!Chaos::Softs::FPBDEvolution::AdvanceOneTimeStep'::9’::<lambda_3>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\PBDEvolution.cpp:578]

UnrealEditor_Chaos!Chaos::Softs::FPBDEvolution::AdvanceOneTimeStep() [D:\build++UE5\Sync\Engine\Source\Runtime\Experimental\Chaos\Private\Chaos\PBDEvolution.cpp:574]

UnrealEditor_ChaosCloth!Chaos::FClothingSimulationSolver::Update() [D:\build++UE5\Sync\Engine\Plugins\Experimental\ChaosCloth\Source\Chaos\Private\ChaosCloth\ChaosClothingSimulationSolver.cpp:1190]

UnrealEditor_ChaosCloth!Chaos::FClothingSimulation::Simulate() [D:\build++UE5\Sync\Engine\Plugins\Experimental\ChaosCloth\Source\Chaos\Private\ChaosCloth\ChaosClothingSimulation.cpp:541]

UnrealEditor_Engine!FParallelClothTask::DoTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\SkeletalMeshComponentPhysics.cpp:3641]

UnrealEditor_Engine!TGraphTask::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:1265]

UnrealEditor_Core!LowLevelTasks::FTask::Init<FTaskGraphCompatibilityImplementation::QueueTask’::5'::<lambda_1> >'::11’::<lambda_1>::operator()() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\Task.h:499]

UnrealEditor_Core!LowLevelTasks::TTaskDelegate<LowLevelTasks::FTask * __cdecl(bool),48>::TTaskDelegateImpl<LowLevelTasks::FTask::Init<FTaskGraphCompatibilityImplementation::QueueTask’::5'::<lambda_1> >'::11’::<lambda_1>,0>::CallAndMove() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\TaskDelegate.h:171]

UnrealEditor_Core!LowLevelTasks::FTask::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\Fundamental\Task.h:627]

UnrealEditor_Core!LowLevelTasks::FScheduler::ExecuteTask() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:150]

UnrealEditor_Core!LowLevelTasks::FScheduler::TryExecuteTaskFrom<LowLevelTasks::TLocalQueueRegistry<1024>::TLocalQueue,&LowLevelTasks::TLocalQueueRegistry<1024>::TLocalQueue::DequeueGlobal,0>() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:350]

UnrealEditor_Core!LowLevelTasks::FScheduler::WorkerMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Async\Fundamental\Scheduler.cpp:378]

UnrealEditor_Core!UE::Core::Private::Function::TFunctionRefCaller<LowLevelTasks::FScheduler::CreateWorker'::2’::<lambda_1>,void __cdecl(void)>::Call() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\Function.h:480]

UnrealEditor_Core!FThreadImpl::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\Thread.cpp:69]

UnrealEditor_Core!FRunnableThreadWin::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]

Has anyone had a similar error and knows how to fix it?

Thank you

We are facing the same issue right now.

This happens when we use VRPreview. Not 100% though.