UEFN Memory Leak

Summary

Since the last UEFN update, it seems there is a memory leak somewhere in UEFN

I can not pinpoint where it is coming from but after a quick search on Twitter/X I found that multiple people seem to have had the same problem since 34.00 so it is not a problem on my end

My PC is pretty powerful with 32 gigs of RAM and an RTX 4080 but I already got multiple crashes with out of memory.

In this post from Wertandrew on X a lot of people already have the same problems: https://x.com/Wertandrew/status/1893651882448441357

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

Stability

Steps to Reproduce

It just happens when working with the editor for a while

Expected Result

Editor does not crash or use up extremely big amounts of memory

Observed Result

Editor uses alot of RAM or crashes with out of Memory

Platform(s)

windows

Island Code

2834-9322-3016

This has been happening since around Dec 26th 2024, or atleast I’ve been experiencing it since then, to remedy it I’ve had to close quite literally every software on my computer except UEFN and Fortnite along with keep it unlit and on the lowest settings possible. Even then it crashes with out of memory errors. Furthermore, on big projects it can straight up BSOD a pc, I’ve since then upgraded my RAM, and CPU and it still worries me whenever opening projects due to how rampant the issue is, I believe the issue is with the tools in place to restrict content and devices they don’t want us to access freely as this is not an issue with UE5

FORT-865405 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.

I think whats happening for me is that another software was causing the memory leak, and UEFN crashed because of it. I am investigating atm, but I think its not UEFN. The screenshot I posted had Spatial Profiler open, which I later realized may be the one grabbing all the RAM. Still investigating though

Can confirm I’ve seen a sharp uptick in out of memory crashes amongst both me and my friends, I have 64gb of ram and a 3080ti, and still am experiencing out of memory crashes.

Since some time in December I have also seen an uptick in complaints regarding large amounts of memory being used, though due to my previously mentioned 64gb of memory it never caused out of memory for me or any real issues myself, this patch however is using such an astronomical amount of memory that it is somehow managing to still run out and crash.

Just to add for further info if its helpful

By memory i mean PC Ram which i have 4 sticks 32gb 5200 hz

I had 64gb and the back end of last yr i also seen some increase in memory for both UEFN and Fortnite combined. It went to about 29gb ram used which is the highest ive noted and when i had 64gb with all the other apps/system itself it got abit much so i upgraded and now have 128gb and no issues although i still have the odd crash and mainly when i open UEFN and Fortnite and leave them and go do something for a hour and when i come back the crash has happened and shows the out of video memory.

I have a 4060ti 16gb and it never struggles tbh so idk what that error is but yea thats my experience with it

I will also add when you open a huge project i think the ram is even more this is a basic project new tbh few days old

The out of memory can sometimes refer to the Virtual Memory, Increase your Paging file size.

I noticed a lot of improvement in many areas when changing from Windows default setting somewhere under 30Gb to 211GB on a seperate dedicated SSD

What is this and how do i do that ? I have numerous ssd’s so can sacrifice 500gb

On Windows 10, type advanced system settings in task bar
click on performance settings
then click on the advanced tab
and you’ll see Virtual Memory
click on Change
Now you can select all your spare SSD’s or just the one and set a custom size
Remove the paging file from the drive/s that holds Windows and UEFN/Fortnite, should speed them up too
You’ll have to Restart PC

The virtual memory is just an extension of RAM, windows and other programs use it as extra ram for lower priority memory storage
Windows by default sets the hard drive to use about 11% of hard drive size, so a full disk will slow up a PC because it reduces the size of the paging file

Is it same on Windows 11 ?

Should be close
may have to google it changing paging file size windows 11

1 Like

kk ill try that ty dude

1 Like

Interesting, gonna look into that. Maybe it is the spatial profiler for me as well as I started using it more lately.

leaving UEFN open for a while and then coming back also often led to a out of memory crash to me and is the thing that happens the most for me also

1 Like

I think this is not related to the latest update, since I already had issues with 32 GB RAM earlier.

Just to add for future people i found these 2 vids for paging file on windows 11

Change the size:

Change the location if using another drive:

1 Like

TY for the help

I found some vids

Mine was set to 8gb originally even tho i had 128gb ram Windows is so strange

1 Like

Wow 8gb is tiny, well not really I guess, but for what we use it for it is

Maybe because you had 128gb ram, windows thought it was big enough to run everything, so you didn’t need a large paging file.

But for programs like UEFN that use it, those windows default settings give such a nice PC a very narrow bottleneck.

1 Like

hi @AtAshTag @Hardcawcanary ,
Recently with 34.00 Feature Examples TMNT City Sample Error

Adding a 64 GB page file for Virtual Memory fixed the problem.
see this post

You may need to add a 64GB pagefile.sys, which I documented in
Install a bigger pagefile.sys

You can use any SSD drive to full size and its better if the pagefile is on a dedicated drive.

My laptop needs 32GB as it’s a home laptop with 8GB, so my 32GB pagefile just about does the job and its a lot cheaper than a top spec laptop, being an indie.
UEFN and Fortnite used to run at 18GB in 30.00 UE5.5 and now we have UE5.6, generally its over 20GB

More recently a bigger pagefile fixed this problem
IK Retargeter Causing UEFN To Crash - General / Issues and Bug Reporting - Epic Developer Community Forums

Whenever MS Edge, based on Google Chrome, is running for the editing of posts, then the memory, basically takes 10.8 GB for 8 windows Epic Community posts to take this up.

2 Likes

I found a few vids as posted above i changed it and now its this

Didnt seem to have issues tbh anyways but it cnt harm it to do it

2 Likes