Description

///
 

We are going to deprecate this component for the UE5 release. 

 

///

 

 

The issue also reproduces if console command "p.gc.ShowRigidBodyId -1" is executed in PIE

The issue can be reproduced for any checkbox from the Rigid Body category (see the list below):

  1. Show Rigid Body Id
  2. Show Rigid Body Collision
  3. Show Rigid Body Transform
  4. Show Rigid Body Inertia
  5. Show Rigid Body Velocity
  6. Show Rigid Body Force
  7. Show Rigid Body Infos

Logs for every option are attached, links to all available crash reports can be found in the Comments section.

The issue does not reproduce for "Collision at origin" option.

Checked regression on Release-4.23 Editor version (//UE4/Release-4.23).

Steps to Reproduce
  1. Open ChaosDestructionDemo project
  2. PIE the default map
  3. Find GeometryCollectionDebugDrawActor in World Outliner
  4. In the Details panel, make sure that in Selected Rigid Body category, Id parameter is set to '"-1"
  5. Find and check "Show Rigid Body Id" checkbox

Actual result: Editor crashes

Expected result: Rigid Body Id's are shown on the all meshes (geometry collections) on the level

Callstack
Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:E:\P4\UE4_Release_4.26\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 674] Array index out of bounds: 0 from an array of size 0

UE4Editor_Core!AssertFailedImplV() [AssertionMacros.cpp:102]
UE4Editor_Core!FDebug::CheckVerifyFailedImpl() [AssertionMacros.cpp:458]
UE4Editor_GeometryCollectionEngine!DispatchCheckVerify<void,<lambda_e1b27b795e277c1aeedf35c145f798f3> >() [AssertionMacros.h:165]
UE4Editor_GeometryCollectionEngine!AGeometryCollectionDebugDrawActor::GetParticleTransformNoChecks() [GeometryCollectionDebugDrawActor.cpp:1995]
UE4Editor_GeometryCollectionEngine!AGeometryCollectionDebugDrawActor::DrawRigidBodyIdNoChecks() [GeometryCollectionDebugDrawActor.cpp:2087]
UE4Editor_GeometryCollectionEngine!AGeometryCollectionDebugDrawActor::DrawRigidBodiesId() [GeometryCollectionDebugDrawActor.cpp:2029]
UE4Editor_GeometryCollectionEngine!UGeometryCollectionDebugDrawComponent::DebugDrawChaosTick() [GeometryCollectionDebugDrawComponent.cpp:882]
UE4Editor_GeometryCollectionEngine!UGeometryCollectionDebugDrawComponent::TickComponent() [GeometryCollectionDebugDrawComponent.cpp:132]
UE4Editor_Engine!FActorComponentTickFunction::ExecuteTickHelper<<lambda_865f1c8123559010106a353ada1cfb7d> >() [Actor.h:3573]
UE4Editor_Engine!FActorComponentTickFunction::ExecuteTick() [ActorComponent.cpp:996]
UE4Editor_Engine!FTickFunctionTask::DoTask() [TickTaskManager.cpp:284]
UE4Editor_Engine!TGraphTask<FTickFunctionTask>::ExecuteTask() [TaskGraphInterfaces.h:886]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [TaskGraph.cpp:709]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilIdle() [TaskGraph.cpp:612]
UE4Editor_Core!FTaskGraphImplementation::ProcessThreadUntilIdle() [TaskGraph.cpp:1464]
UE4Editor_Engine!FTickTaskSequencer::ReleaseTickGroup() [TickTaskManager.cpp:581]
UE4Editor_Engine!FTickTaskManager::RunTickGroup() [TickTaskManager.cpp:1578]
UE4Editor_Engine!UWorld::RunTickGroup() [LevelTick.cpp:782]
UE4Editor_Engine!UWorld::Tick() [LevelTick.cpp:1474]
UE4Editor_UnrealEd!UEditorEngine::Tick() [EditorEngine.cpp:1720]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [UnrealEdEngine.cpp:426]
UE4Editor!FEngineLoop::Tick() [LaunchEngineLoop.cpp:4834]
UE4Editor!GuardedMain() [Launch.cpp:169]
UE4Editor!GuardedMainWrapper() [LaunchWindows.cpp:137]
UE4Editor!WinMain() [LaunchWindows.cpp:268]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:288]

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-100417 in the post.

0
Login to Vote

Fixed
ComponentUE - Simulation - Physics - Destruction
Affects Versions4.26
Target Fix5.0
Fix Commit18805895
Main Commit18822139
Release Commit18805895
CreatedOct 1, 2020
ResolvedFeb 1, 2022
UpdatedJan 26, 2023
View Jira Issue