# \[5.8\] Null FPhysicsActorHandle crash in FBodyInstance::InitDynamicProperties\_AssumesLocked when shape creation fails 

**URL:** <https://forums.unrealengine.com/t/5-8-null-fphysicsactorhandle-crash-in-fbodyinstance-initdynamicproperties-assumeslocked-when-shape-creation-fails/2753753>\
**Category:** Asset Creation\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [July 27, 2026, 6:39pm UTC](https://forums.unrealengine.com/t/5-8-null-fphysicsactorhandle-crash-in-fbodyinstance-initdynamicproperties-assumeslocked-when-shape-creation-fails/2753753 "2026-07-27T18:39:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 27, 2026, 6:39pm UTC](https://forums.unrealengine.com/t/5-8-null-fphysicsactorhandle-crash-in-fbodyinstance-initdynamicproperties-assumeslocked-when-shape-creation-fails/2753753/1 "2026-07-27T18:39:18Z")

</div>

Found after updating a project from 5.7 to 5.8 @ CL54667078. Also present in //UE5/Main. Requires p.Chaos.EnableAsyncInitBody=true. Same content ran fine in 5.7.

Crash

FChaosEngineInterface::SetSleepThresholdMultiplier\_AssumesLocked ChaosEngineInterface.cpp:1261

FBodyInstance::InitDynamicProperties\_AssumesLocked BodyInstance.cpp:4710

TInitBodiesHelperBase\<\>::InitBodies BodyInstance.cpp:1704

Cause

When CreateShapes\_AssumesLocked returns bInitFail (NumShapes == 0), the failure path (BodyInstance.cpp:1577) releases the actor handle and nulls Instance-\>BodySetup, but leaves the instance in Bodies[]. InitBodies() then calls InitDynamicProperties\_AssumesLocked() on it (:1704).

UE 5.7 caught this with if (!BodySetup.IsValid()) return;. 5.8 uses if (!GetBodySetup()) return;, and GetBodySetup() (:1381) now prefers GetAsyncPhysicsCreationInputs()-\>ResolvedBodySetup, which is never reset on the failure path — so it returns a live UBodySetup and the guard passes.

FPhysicsInterface::IsDynamic() is !IsStatic(), and IsStatic() returns false for an invalid handle, so it returns true for nullptr. SetSleepThresholdMultiplier\_AssumesLocked then dereferences null.

Suggested fix

void FBodyInstance::InitDynamicProperties\_AssumesLocked()

{

+ // Shape creation may have failed and released the actor handle, leaving this

+ // instance in Bodies[]. IsDynamic() returns true for a null handle.

+ if (!FPhysicsInterface::IsValid(GetPhysicsActor()))

+ {

+ return;

+ }

+

```
UBodySetup\* ResolvedSetup \= GetBodySetup();

if (!ResolvedSetup)

{

  // This may be invalid following an undo if the BodySetup was a transient object

  return;

}

```

Note on our content

Our data is also wrong here — a component requesting collision from a mesh with no collision geometry is meaningless, and we’re fixing that separately. But the engine already decided to fail that body and released its handle, so it shouldn’t then walk into a null dereference. 5.7 tolerated the same content silently.

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 27, 2026, 6:39pm UTC](https://forums.unrealengine.com/t/5-8-null-fphysicsactorhandle-crash-in-fbodyinstance-initdynamicproperties-assumeslocked-when-shape-creation-fails/2753753/2 "2026-07-27T18:39:21Z")

</div>

**Steps to Reproduce**  
Movable primitive, Collision Enabled other than QueryOnly, BodySetup yielding zero shapes — e.g. empty AggGeom with DefaultShapeComplexity=CTF\_UseSimpleAsComplex, which suppresses trimesh cooking (BodySetup.cpp:326).

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![geoffstacey\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoffstacey\_work](https://forums.unrealengine.com/u/geoffstacey_work)\
**Post date:** [July 31, 2026, 9:59am UTC](https://forums.unrealengine.com/t/5-8-null-fphysicsactorhandle-crash-in-fbodyinstance-initdynamicproperties-assumeslocked-when-shape-creation-fails/2753753/3 "2026-07-31T09:59:23Z")

</div>

Hi Filip,

Thank you for the ticket, and we’ve had reports of this from elsewhere as a regression in 5.8. I’ll get a Bugfix Jira created today and send you the ticket.

Best

Geoff Stacey

Developer Relations

EPIC Games

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 31, 2026, 11:27am UTC](https://forums.unrealengine.com/t/5-8-null-fphysicsactorhandle-crash-in-fbodyinstance-initdynamicproperties-assumeslocked-when-shape-creation-fails/2753753/4 "2026-07-31T11:27:45Z")

</div>

Thanks!

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![geoffstacey\_work](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoffstacey\_work](https://forums.unrealengine.com/u/geoffstacey_work)\
**Post date:** [August 2, 2026, 3:31pm UTC](https://forums.unrealengine.com/t/5-8-null-fphysicsactorhandle-crash-in-fbodyinstance-initdynamicproperties-assumeslocked-when-shape-creation-fails/2753753/5 "2026-08-02T15:31:32Z")

</div>

Hi Filip, the bug is posted on [https://issues.unrealengine.com/issue/UE-389735](https://issues.unrealengine.com/issue/UE-389735), and you will be able to follow its progress there. I’d expect this to be fixed within the next few weeks given what it is.

Best

Geoff

[Attachment Removed]
