# Chaos race condition ? 

**URL:** <https://forums.unrealengine.com/t/chaos-race-condition/2690471>\
**Category:** C++\
**Tags:** unreal-engine, Physics, CPP, question\
**Created:** [January 8, 2026, 4:26am UTC](https://forums.unrealengine.com/t/chaos-race-condition/2690471 "2026-01-08T04:26:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hugoyu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hugoyu](https://forums.unrealengine.com/u/hugoyu)\
**Post date:** [January 8, 2026, 4:26am UTC](https://forums.unrealengine.com/t/chaos-race-condition/2690471/1 "2026-01-08T04:26:59Z")

</div>

Execution Environment: UE 5.7 with async physics tick on

1. The following code is generally executed on the Game Thread (GT). The issue is that ‘Proxy-\>GetParticle\_LowLevel()’ retrieves ‘Particle’ data for operation, while the ‘Particle’ data itself is owned by the Physics Thread (PT). Does this result in a Race Condition ?

void FPBDRigidsSolver::UnregisterObject(FSingleParticlePhysicsProxy\* Proxy)  
{  
…

```auto
// Null out the particle's proxy pointer
Proxy->GetParticle_LowLevel()->SetProxy(nullptr);	//todo: use TUniquePtr for better ownership

...

```

}

1. PhysicsMover performs operations such as ‘FloorSweep’ on the Physics Thread. During the processing of sweep results handling(CollisionConversions → SetHitResultFromShapeAndFaceIndex), it accesses the ‘UserData’ of the PhysicsActor. This ‘UserData’ typically refers to the ‘BodyInstance’ on the Game Thread. The scenario I am currently encountering is:

- GT: SkeletalMeshComponent (named A) is destroyed → delete BodyInstance → pending physics delete command
- PT: A PhysicsMover task (potentially from a previous task dispatch) performs ‘FloorSweep’ → It finds ‘A’ and attempts to dereference its ‘BodyInstance’ → Error …(Crash etc.)
- PT: The physics delete command is executed at new PT frame.

Is this a known issue ? And how to fix it ?
