# 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:** 1\
**Showing post:** 9

<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:** [July 14, 2023, 10:16am UTC](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844/9 "2023-07-14T10:16:07Z")

</div>

Hey,

we also encountered a memory leak that seems to be caused by viewport rendering, also in packaged games (but we didn’t test shipping builds). Can you please add the following line to your `DefaultEngine.ini` file and see if it’s still leaking (preferably under RendererSettings)?

```auto
r.gpucrash.collectionenable=0

```

It seems to be important to add this line to the ini and not enter it at runtime.

I guess this is not a _fix_, but it can help narrow the issue down and maybe help epic fix the issue properly.

sirjofri

---

_[View the full topic](https://forums.unrealengine.com/t/memory-leak-in-5-2/1174844)._
