# Ver 5.2 serious memory leak

**URL:** <https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [August 17, 2023, 6:56am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653 "2023-08-17T06:56:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelCash](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michaelcash/32/741080_2.png) [@MichaelCash](https://forums.unrealengine.com/u/MichaelCash)\
**Post date:** [August 17, 2023, 6:56am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/1 "2023-08-17T06:56:22Z")

</div>

I found a very serious memory leak bug in version 5.2. The steps to reproduce the bug are as follows:

Create a new empty project, create a new level, then save the level, set the level as the default map, and then pack it. Run the packaged application. In the resource manager, you can see that the memory of this application is constantly growing and will not stop. The program does not respond until the memory limit is reached.

I have reproduced this bug on more than one computer. Versions are currently limited to 5.2.0 and 5.2.1. I tried using version 5.0.3, without this problem.

The solution I have explored for this problem is: import a third-person template, and then change the gamemode to BP\_ThirdPersonGameMode. But this is not a very good solution. Because in actual use, we often need to rewrite GameMode ourselves. Using the GameModeBase that comes with the system cannot solve this problem, nor can inheriting GameModeBase.

---

<div class="post-metadata">

**Author:** ![MichaelCash](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michaelcash/32/741080_2.png) [@MichaelCash](https://forums.unrealengine.com/u/MichaelCash)\
**Post date:** [August 17, 2023, 7:00am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/2 "2023-08-17T07:00:56Z")

</div>

I found this BUG in my own project, and then I kept stripping out the interference items, and finally simplified the problem to the above steps. Hope someone can see what could be causing this. It should be a BUG that comes with Unreal Engine.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [August 17, 2023, 7:27am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/3 "2023-08-17T07:27:01Z")

</div>

Hey there @MichaelCash! This memory leak has been reported, from what has been gathered it seems to stem from the Epic Games Web Helper subprocess and it’s somewhat inconsistent among users.

I’ve been trying to find an environmental correlation between users so may I ask a couple of questions?

May I know your specs?

This applies to all projects correct?

How long on average do you have to remain in editor before the memory bloat becomes bad?

---

<div class="post-metadata">

**Author:** ![MichaelCash](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michaelcash/32/741080_2.png) [@MichaelCash](https://forums.unrealengine.com/u/MichaelCash)\
**Post date:** [August 17, 2023, 7:38am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/4 "2023-08-17T07:38:08Z")

</div>

My computer system is win11, but this BUG is also reproduced on win10. The memory is 128G, the graphics card is 3080ti, and the CPU is i9-12900K.  
Almost all projects will have this problem, unless you use the BP\_ThirdPersonGameMode of the engine’s default third-person template  
In addition, will this problem be related to the time spent in the editor? I haven’t calculated it. In the process of groping for this problem, I have been stuck in the editor for a long time and a short time.

---

<div class="post-metadata">

**Author:** ![MichaelCash](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michaelcash/32/741080_2.png) [@MichaelCash](https://forums.unrealengine.com/u/MichaelCash)\
**Post date:** [August 17, 2023, 7:40am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/5 "2023-08-17T07:40:43Z")

</div>

You can reproduce this bug by following the steps I said. This bug is easy to reproduce.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [August 18, 2023, 7:27am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/6 "2023-08-18T07:27:51Z")

</div>

Absolutely understandable! I haven’t found a solid workaround in the meantime, but the more clear reports we can compile will definitely give the team a better idea of exactly what’s going on.

So if at all possible, could you submit the details in a full bug report?

> **[Report a Bug](https://www.unrealengine.com/en-US/support/report-a-bug)**
>
> Unreal Engine is the world’s most open and advanced real-time 3D creation platform for photoreal visuals and immersive experiences.

---

<div class="post-metadata">

**Author:** ![I.PUBG.I](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@I.PUBG.I](https://forums.unrealengine.com/u/I.PUBG.I)\
**Post date:** [August 23, 2023, 10:07am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/7 "2023-08-23T10:07:55Z")

</div>

This bug also affect mobile!!

Please check this out

[https://forums.unrealengine.com/t/ue5-1-1-5-2-serious-mobile-performance-bug-must-be-noted-right-now/](https://forums.unrealengine.com/t/ue5-1-1-5-2-serious-mobile-performance-bug-must-be-noted-right-now/)

---

<div class="post-metadata">

**Author:** ![I.PUBG.I](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@I.PUBG.I](https://forums.unrealengine.com/u/I.PUBG.I)\
**Post date:** [August 23, 2023, 10:08am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/8 "2023-08-23T10:08:41Z")

</div>

So you are saying if we use the third person template the issue will be solved?

---

<div class="post-metadata">

**Author:** ![MichaelCash](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michaelcash/32/741080_2.png) [@MichaelCash](https://forums.unrealengine.com/u/MichaelCash)\
**Post date:** [August 23, 2023, 1:56pm UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/9 "2023-08-23T13:56:31Z")

</div>

Unfortunately, this solution doesn’t work either. Originally I thought that using the BP\_ThirdPersonGameMode of the third person template would solve this problem. But today I found out that this only increases memory for the first five minutes after running the program. Wait for 5 minutes without doing any operation, and the memory will start to grow crazily after 5 minutes.

---

<div class="post-metadata">

**Author:** ![I.PUBG.I](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@I.PUBG.I](https://forums.unrealengine.com/u/I.PUBG.I)\
**Post date:** [August 23, 2023, 6:27pm UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/10 "2023-08-23T18:27:18Z")

</div>

Same, I tried with the third person game mode and it did not fix my issue. did you find any soultions yet? do you have discord??

---

<div class="post-metadata">

**Author:** ![XianDouHua](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XianDouHua](https://forums.unrealengine.com/u/XianDouHua)\
**Post date:** [September 4, 2023, 1:25pm UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/11 "2023-09-04T13:25:05Z")

</div>

You might want to check out this post

> [@Memory leak in 5.2](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844):
>
> Hi, the memory is increasing until use all the memory in some hours of use in projects on 5.2 in the editor. I tried to recompile all the shaders, also tried to switch to forward shading but it didn’t help, the memory keeps growing.

A temporary workaround for this problem  
[/Script/Engine.RendererSettings]  
r.gpucrash.collectionenable = 0

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [September 5, 2023, 8:47am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/12 "2023-09-05T08:47:17Z")

</div>

Oh a workaround has been found! Thanks for letting us know! @MichaelCash You should give this a try!

---

<div class="post-metadata">

**Author:** ![I.PUBG.I](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@I.PUBG.I](https://forums.unrealengine.com/u/I.PUBG.I)\
**Post date:** [September 8, 2023, 12:33am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/13 "2023-09-08T00:33:11Z")

</div>

Where i can find that ini file? in engine folder or project folder?

---

<div class="post-metadata">

**Author:** ![MichaelCash](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michaelcash/32/741080_2.png) [@MichaelCash](https://forums.unrealengine.com/u/MichaelCash)\
**Post date:** [September 8, 2023, 2:35am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/14 "2023-09-08T02:35:49Z")

</div>

I’ve tried this, but it doesn’t solve the problem.  
Version 5.3, released on June 6, solves this problem.

---

<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 12, 2023, 5:38pm UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/15 "2023-10-12T17:38:11Z")

</div>

Didn’t work for me. Copied this command in my DefaultEngine.ini file just as you said but nothing happened.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [October 13, 2023, 8:27am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/16 "2023-10-13T08:27:46Z")

</div>

It seems that the command itself mitigates the issue by limiting the crash reporter, but doesn’t stop the underlying issue but often drastically reduces how fast the memory leak builds. It’s recommended that if your project supports it to upgrade to 5.3 as that specific bug was fixed.

---

<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, 8:32am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/17 "2023-10-13T08:32:18Z")

</div>

Not only the memory leak but UE stalls a lot. Is happening very frequently. Wasn’t there in 5.0.3  
It stalls on stuff as basic as renaming a var or deleting a node. Or even compiling simple blueprints.

I can update to 5.3 but Idk about the Lumen etc Performance and Not sure about metahumans. Would I have to redownload the Metahumans again for 5.3 ? or will the 5.2 ones that are installed would work in 5.3 if I update my project.?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [October 13, 2023, 9:27am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/18 "2023-10-13T09:27:58Z")

</div>

I don’t often work with Metahumans, but I believe unless they had a major update between versions you should be able to upgrade the project and retain everything you had before. One thing that is more in question is that the new features for Metahumans in 5.3 if they are compatible with earlier metahumans or if you won’t be able to use them without downloading an updated MH.

I’d recommend backing your project up, upgrading a copy and give it a shot just as a performance and MH test.

---

<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, 9:54am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/19 "2023-10-13T09:54:57Z")

</div>

From what I could search on the web, the major revision was from 5.1 to 5.2+ so any project running 5.1 or earlier would need to upgrade to new ones.  
I did that in my MH\_Creator when I upgraded to 5.2  
So hopefully they’ll not require any re-download.  
And yeah, I have nothing to loose. So, as I’m writing this, I’m downloading 5.3.1 in the background and will duplicate my current project and test it out.

Thanks.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [October 13, 2023, 10:00am UTC](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653/20 "2023-10-13T10:00:01Z")

</div>

Fantastic. I’m interested in knowing how it goes, as this is a question I’d not yet considered due to the whole not using metahumans often.

[Next page](https://forums.unrealengine.com/t/ver-5-2-serious-memory-leak/1263653.md?page=2)
