# Physics Constraint causes out of Memory crash

**URL:** <https://forums.unrealengine.com/t/physics-constraint-causes-out-of-memory-crash/2594962>\
**Category:** Programming & Scripting\
**Tags:** physics-constraint, unreal-engine, Blueprint, question\
**Created:** [July 7, 2025, 9:23am UTC](https://forums.unrealengine.com/t/physics-constraint-causes-out-of-memory-crash/2594962 "2025-07-07T09:23:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![V\_VILLAIN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/v_villain/32/1073986_2.png) [@V\_VILLAIN](https://forums.unrealengine.com/u/V_VILLAIN)\
**Post date:** [July 7, 2025, 9:23am UTC](https://forums.unrealengine.com/t/physics-constraint-causes-out-of-memory-crash/2594962/1 "2025-07-07T09:23:23Z")

</div>

Physics Constraint Causes OOM Crash When Grabbing in VR

I’m using UE5.5 for a Quest 3 VR project. I grab weapons using **Physics Constraints** between a **fully simulated hand** and a **fully simulated weapon**. Over time, even with damping, substepping, and tight delta times, memory usage keeps growing until I hit an **Out of Memory (OOM) crash**.

The more complex the weapon (e.g. skeletal mesh), the faster it happens.

Anyone found a stable way to use constraints between two simulated objects in VR?

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [July 7, 2025, 10:47am UTC](https://forums.unrealengine.com/t/physics-constraint-causes-out-of-memory-crash/2594962/2 "2025-07-07T10:47:04Z")

</div>

Are you doing something in a loop? Are you spawning the constraint or the object when grabbing? Out of memory exception usually means that your process demanded more RAM or VRAM than is available, that usually happens if you have ALOT of objects in the scene, or a lot of variables. Or too little RAM/VRAM in your system

---

<div class="post-metadata">

**Author:** ![V\_VILLAIN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/v_villain/32/1073986_2.png) [@V\_VILLAIN](https://forums.unrealengine.com/u/V_VILLAIN)\
**Post date:** [July 7, 2025, 12:11pm UTC](https://forums.unrealengine.com/t/physics-constraint-causes-out-of-memory-crash/2594962/3 "2025-07-07T12:11:40Z")

</div>

HI well i test it in an empty Level, and i am not spawning anything aswell looping isnt happen.. its more like the Constraint is doing some calculations which are adding up and wrecking it. it happes when i grab a complex Gun or just a Baseball bat with 0 Logic, just slower. My SKM Hand is Simualting Physics and yes it has Collision as the Item which i hold t, and they are both in each other with collison on, which should be it right? But if i disable Collision in my PhysAsset fromt he Hand , so the Hand is not Physical Colliding anymore, it happens he same way…

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [July 7, 2025, 12:45pm UTC](https://forums.unrealengine.com/t/physics-constraint-causes-out-of-memory-crash/2594962/4 "2025-07-07T12:45:49Z")

</div>

Try profiling. Here are two workflow instruction files I personally created to help me profile in a straightforward manner. They might be a bit weirdly written so let me know if you don’t understand something.

[Performance Profiling of the GPU using RenderDoc.txt](https://forums.unrealengine.com/uploads/short-url/lVuwVUVyRzqBBnRPJ54l8Awa7mf.txt) (2.2 KB)  
[CPU Profiling WIF.txt](https://forums.unrealengine.com/uploads/short-url/7B7jtUSG7iojs9ZuxlN6t6McUoh.txt) (1.8 KB)

---

<div class="post-metadata">

**Author:** ![V\_VILLAIN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/v_villain/32/1073986_2.png) [@V\_VILLAIN](https://forums.unrealengine.com/u/V_VILLAIN)\
**Post date:** [July 7, 2025, 2:57pm UTC](https://forums.unrealengine.com/t/physics-constraint-causes-out-of-memory-crash/2594962/5 "2025-07-07T14:57:34Z")

</div>

Nice yes i will try that i just got this issue on the Quest , Native. But in Engine it may aswell Leak.

---

<div class="post-metadata">

**Author:** ![V\_VILLAIN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/v_villain/32/1073986_2.png) [@V\_VILLAIN](https://forums.unrealengine.com/u/V_VILLAIN)\
**Post date:** [July 15, 2025, 10:35am UTC](https://forums.unrealengine.com/t/physics-constraint-causes-out-of-memory-crash/2594962/6 "2025-07-15T10:35:42Z")

</div>

HI , so i tried and tried hours for hours but my vr hand , with collision of and a lot of settings here and there in the constraint… Mayeb Constrains are quite expensive
