Excessive memory usage after a couple of minutes

If I run any version higher than 4.4.3, the engine is unusable. I tried out 4.7.1 today which is claimed to be a hotfix, with one of the fixes being the memory issue I’m having. I can run the launcher, but every time I try to run the editor, the memory jumps to using about 96% of my RAM. Then I must close via task manager or else my computer is not useable after a minute or so.

Specs:
Lenovo Y580
Windows 7 x64 Pro
NVIDIA GeForce GTX 660m 2GB + Intel HD4000 (Running Engine w/ GTX660m)
8GB DDR3 @ 1600Mhz Crucial RAM
Core i7 @ 2.3Ghz (4 cores, 8 threads)
Engine with issue - 4.5.1 through 4.7.1

EDIT:

This is also happening in version 4.4.3 now. It doesn’t happen when I run w/ Intel HD4000 gpu, only with the GTX660m. I have latest drivers, going to try downgrading graphics driver, as 4.4.3 worked for me at an earlier time.

Heyo Clunk,

I feel like I’m about to bombard you with questions, so I’ll make it a list:

  • So this happens right when you launch the editor or does it slowly build up to 96% usage over time?
  • Thanks for submitting your specs, but would you mind attaching your dxdiag information as well?
  • What Nvidia driver version are you using now and what were you using before?

Thanks,

EDIT: Can I also get a screenshot of the processes tab of your Windows Task Manager?

Hey , thx for the reply. I swallowed my pride and switched to Windows 8.1 last night, and let UE 4.4.3 run for a few hours and no memory usage over 300MB. I’m about to install 4.7.1 again and I will include any log / debug info if the problem occurs in Win 8.

Hey Clunk,

I hope it works for you, let us know how it goes. :slight_smile:

Thanks,

4.7.1 is now running smoothly with no issues as of yet. I’ve run it for about an hour. 1GB RAM usage max so far. I had to use Windows 8.1 instead of 7 in my case. I tried old and new drivers for my gpu in 7 to no avail. Using most up to date drivers in 8.1 now and everything is great. My specific case has been resolved as I’m unable to reproduce the issue with my current setup.

Hey Clunk,

I’m glad you’re issue was resolved by upgrading to Win8.1. I was wondering if you happened to have grabbed your dxdiag before upgrading. This is still an issue we’d like to take a look at, but might not be able to reproduce until it happens to another user. I’d like to gather as much info as possible in case there is some piece of hardware that is a common link (sound card, network adapter…who knows). Even a current dxdiag with Win8.1 would be useful.

Thanks,

Well after installing Visual Studio Pro 2013 with Update 2, it’s happening now in Windows 8,1… I’m going to try uninstalling VS and any updates and get back with you. Attached is my DxDiag Info. I want to make note: The memory stays still until I hit “Play” in the editor, then it jumps up a few hundred MB. Once I stop playing, the memory stops increasing, but does not go back to normal, it stays at the usage from when I was playing. The next time I hit play, it builds up even more, and so on. So say It’s using 300MB. I’ll hit play, it will shoot up to 1GB, I hit stop, ram usages stays at 1GB. I’ll hit play again, usages jumps to over 3GB, then 6, then nearly 8GB which is all I have, causing my computer to become unresponsive.

I just noticed the memory also increases continuously while hovering over any buttons, when a tooltip is showing up. I vaguely remember something about a tooltip memory leak being mentioned in the forum…

I tried Slate.AllowToolTips 0, which solves the tooltip issue. Also, memory is only increasing if I’m playing in a standalone window. When I change to current viewport for playing, no problem. But the problem still exists, when I use any drop down menu (like the play dropdown to choose viewport, and any other). Once the memory climbs, it doesn’t drop back down, so I only have so many seconds to look at a menu or play the scene…

Okay, well I uninstalled any windows updates, visual studio 2013, problem persisted. I had my Antivirus shields and autoprotection all disabled, but oddly enough, after UNINSTALLING Avast Antivirus, no problems in UE4.7.1… I’m going to reinstall Windows, reinstall the engine, drivers, VS2013, etc… I really don’t need antivirus so if this is a solution where I can actually work w/ this badass engine, I’m going to be one happy camper. I’ll get back with you after testing for a few hours.

Problem occurs still, without having avast installed. Last time I was attempting to uninstall visual studio as well, let me try a few more things to narrow it down and I’ll get back.

Last update for the night before I jynx myself again. I have a 3rd monitor that runs off a USB 3.0 to VGA adapter. I still have the problem even if it’s disconnected, but if I UNINSTALL the driver for the USB video adapter, UE4 is fine. This is getting really weird, I hope this is the cause as I don’t mind using 2 monitors instead of 3 if it means I get to use the engine like normal.

Hey Clunk,

First of all, thanks for trying so many things on your own. That will really help us figure this out faster.

Using USB display adapters could be a new test case for us. Can you send me the make and model (or an amazon link) for the adapter?

Thanks,

Item on Ebay. The driver, I had to split into two archives because of the site’s filesize limitation. I’ll post each part of the driver in their own comments below.

Fresno Logic USBVGA Driver Part 1

Fresno Logic USBVGA Driver Part 2

EDIT - As of version 4.7.3 update I have been able to use the USB VGA adapter with no issues whatsoever!!!

OP - In my case, the leak seems to have been caused due to me using a USB 3.0 to VGA graphics adapter for a third monitor. I don’t think it was the device itself, but the driver, since the problem occurred even with the device disconnected. Once I removed the driver, no issue with memory. I tested this 3 times, installing / uninstalling driver, connecting / disconnecting device, 100% of the time the driver was installed, memory leak in UE4. 100% of the time the driver was uninstalled, no memory leak! There is ONE instance where the memory leak does not occur when this driver is installed, this is if I choose my IGP Intel HD4000 driver, which doesn’t run the engine very well. When I run with the GTX600m gpu alongside the usb driver, this is when the problem hits me. Hopefully this information can be of help in some way. Really glad I was able to resolve on my end so I can use the engine.

Hey,

Thanks for taking the time to confirm that the driver was indeed the issue. It’s still on my to-do list to do some local testing on this, so all this info really is helpful.

I’ve updated my answer, no more memory leak :slight_smile:

Awesome and WeTotallyDidThatOnPurpose :wink: