# Memory leak in 5.2

**URL:** <https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, bug-report, editor\
**Created:** [May 22, 2023, 3:42pm UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844 "2023-05-22T15:42:14Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![sirjofri](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sirjofri/32/880056_2.png) [@sirjofri](https://forums.unrealengine.com/u/sirjofri)\
**Post date:** [October 13, 2023, 8:51am UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/21 "2023-10-13T08:51:18Z")

</div>

> [@Paradoxical95](#):
>
> What is ensure?

Ensure is a coding thing. It’s used to “ensure” that a certain condition applies, but it’s not too hard to lead to a crash. It just logs to console and continues. It’s nothing you as a user should worry about because usually in a case like that the engine has enough options to handle the condition. It’s more like a “this shouldn’t happen, but if it happens, I know what to do” thing.

> [@Paradoxical95](#):
>
> Either churn through this or maybe try 5.3

You can try 5.3, maybe it’s better, maybe it’s not. Sometimes developing is related with luck.

Regarding Metahumans, as far as I know they didn’t change from 5.2 to 5.3, only 5.2 was a big update. Also, the 5.0 Metahumans still “worked” on 5.2, just as buggy as they were and of course without the new features. Take all that with a grain of salt, as we didn’t update our project to 5.3 yet.

By the way, the forum software notified me that we could also send DMs to each other, which is something I’d recommend if it gets too offtopic.

---

<div class="post-metadata">

**Author:** ![Paradoxical95](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/paradoxical95/32/888519_2.png) [@Paradoxical95](https://forums.unrealengine.com/u/Paradoxical95)\
**Post date:** [October 13, 2023, 3:16pm UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/22 "2023-10-13T15:16:21Z")

</div>

Just wanted to end this discussion bcz I’ve updated to 5.3 and all is good now. No more memory issues. Thanks 😉

---

<div class="post-metadata">

**Author:** ![HerrDoktorSuess](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HerrDoktorSuess](https://forums.unrealengine.com/u/HerrDoktorSuess)\
**Post date:** [October 17, 2023, 4:36am UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/23 "2023-10-17T04:36:29Z")

</div>

Just my 2c, I’m on 5.3 and seeing this. I haven’t managed to chase it down, yet, though ☹

---

<div class="post-metadata">

**Author:** ![Paradoxical95](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/paradoxical95/32/888519_2.png) [@Paradoxical95](https://forums.unrealengine.com/u/Paradoxical95)\
**Post date:** [October 18, 2023, 1:53pm UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/24 "2023-10-18T13:53:46Z")

</div>

5.3 fixed it for me. That’s strange. I hope it gets fixed for you soon.

---

<div class="post-metadata">

**Author:** ![UPO33](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UPO33](https://forums.unrealengine.com/u/UPO33)\
**Post date:** [December 13, 2023, 1:00pm UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/25 "2023-12-13T13:00:27Z")

</div>

took one day from me because I thought my own plugin was leaking 😑  
it happens with DX12 and VK on most builds. you can run with -dx11 or use r.gpucrash.collectionenable=0 as @sirjofri said.

---

<div class="post-metadata">

**Author:** ![HerrDoktorSuess](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HerrDoktorSuess](https://forums.unrealengine.com/u/HerrDoktorSuess)\
**Post date:** [March 11, 2024, 9:17pm UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/27 "2024-03-11T21:17:50Z")

</div>

This is still happening in 5.3 for me, but only when with metahumans are in the scene.

---

<div class="post-metadata">

**Author:** ![michaudronald](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@michaudronald](https://forums.unrealengine.com/u/michaudronald)\
**Post date:** [March 27, 2024, 9:33pm UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/29 "2024-03-27T21:33:07Z")

</div>

I had the same problem in 5.2.1 and 5.3.2, i switched the package build to shipping and the memory leak goes away.

---

<div class="post-metadata">

**Author:** ![Joseph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joseph](https://forums.unrealengine.com/u/Joseph)\
**Post date:** [October 14, 2024, 1:35pm UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/30 "2024-10-14T13:35:17Z")

</div>

Hi there. Sorry for asking this after a long time but how do you find out that it is related to D3D12 GPUProfiler? I’m encounting some similiar issue and I’m trying to use Memory Insights to get some clue, I noticed some reported stacks about D3D things, but I’m not sure about if that is the reason… Looking forward to you reply TY!

[Previous page](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844.md?page=1)
