Memory Leak after Saving

From what I can see .Williams has been collecting reports on memory leaks, such as here. However, while the possible causes mentioned there do seem to leak a bit of memory for me too, the major killer for me comes after saving (saving a blueprint, saving content, and especially saving all). I haven’t seen anyone mention this happening after saving so I’m entering another bug report, hope that’s ok.

Build Version: 4.7.6-2513093 Binary (though this was happening in 4.7.1 as well before I updated).

Processes:

  • The results below come while following the UMG UI Inventory Tutorial Video 3 (though this has happened after following other tutorials, its more evident in this video and the previous one as there is a lot of creating, compiling, and saving of content and blueprints).
  • Before starting the tutorial a fresh editor was launched, with an initial start-up memory of 181.62mb. It was then left idle for an hour and ended with a memory use of 236.64mb.
  • Throughout the tutorial video, I never pressed the play button nor did I interact with the main viewport at all.
  • The video was followed to where the the GameHUD widget is made, after which the memory was: Before Compile = 797.62mb, Before Saving = 812.78mb, After Saving = 871.96mb and now steadily rising at roughly 1mb/s.
  • An autosave then occurred less than five minutes later with the following memory: After Autosave = 1,734.33mb
  • After editing, compiling, and saving the FirstPersonShooterCharacter blueprint and reaching the end of the tutorial video after about 10 minutes, the memory is now at 2,018.91mb.
  • Lastly, about a minute later, I did a save all (ctrl+s) with the following memory: Before Saving = 2,096.45mb, After Saving = 2,313.88mb and now steadily rising at roughly 5mb/s.
  • I then left the editor idle for a while (less than 30 minutes) and waited for it to reach 5,018.70mb, at which point the memreport was run and I closed the editor.

The memory will keep rising indefinitely until the system memory is all used up an constant paging causes a complete system freeze.

Also, through all of this the number of objects reported by the editor didn’t change much, it hovered around 50,000 +/- 5,000. The memreport and dxdiag are attached. Not sure if its relevant but the editor is not run as administrator and this user cannot write to anywhere except their documents space. Unfortunately the Unreal Launcher currently crashes when I launch as administrator so haven’t been able to test if the problem persists if the engine is run as administrator.

Let me know if there is any more info I can help with.

Cheers

Hey Raffy,

Alternate repro’s are always welcome. This has been something that’s very difficult to reproduce.

Sorry for the delay in response on this, but I’m attempting your repro now.

Thanks,

.

Unfortunately this didn’t repro on our end(as with every repro so far), but I’ve still added the info to our bug report (UE-12941) in hopes that it helps our engineers track it down.

Thanks,

.

Actually, quick follow up…what is the autosave interval on your project?

Thanks for that .

A few updates:

  1. The autosave frequency is set to 10 minutes. However, I’ve also tried switching off both autosave and monitor content directories without any success; as soon as I do the first manual save on any project I have about half an hour of work time before the memory levels get too high for my liking.

  2. I’ve managed to run the editor as administrator but there is no difference.

  3. I’ve tried the editor on another computer and haven’t had any memory leaks at all throughout an entire day’s worth of work.

As we don’t have a computer here that we’ve been able to reproduce this on, I’d like to ask if you could check on a few things for me.

  1. Can I get the dxdiag for the other computer as well
  2. Would you, by chance, be able to check in the Programs and Features list and tell me what software is installed on your main PC that is not installed on the other computer. That might be a bit of a pain, but it could really help on our end. Anything could be important, a driver install…anything.

Thanks,

.