Download

4.19 & 4.20 Editor & Packaged Games Have Hangs/Hiccups Constantly

FDrawSceneCommand went from 22ms to 34ms after 15minutes. Everything else was about the same so and device was not hot so it wasn’t just lower clock rates.

Yeah… well, the truth is out there somewhere. I had not been able to pinpoint the exact change to blame yet.

Well… so far 4.19 has been an unpleasant experience indeed.

Could you possible repeat this test, but give minute by minute times for 20-30 minutes? I want to plot a graph and fit a curve to see if it’s a linear rate or an exponential rate. It would help rule out what kind of operations to look for in the source. I’m still convinced it’s an x+=1 error of some sort.

I can try but on mobile this will be quite problematic. Clock rates are constantly adjusted and overheating is also possibility. Maybe I can try to use profiling build that should disable some of these stuff.
I really don’t belive that it is something as simple as that. I haven’t managed to get simple reproducable project that also have this bug. My guess that it’s something to do with threading and it’s only show it self when there is enough load in first place.

Engine is leaking like a colander, **2MB per second ** in a clean blueprint project with some load.
(Open the project. Load BugMap level. Play in standalone).

4.18.1
Screenshot_17.jpg

4.19.2

Screenshot_19.jpg

This kind gentlemen offers a neat solution. :slight_smile:

Exactly how did you test this? I opened the project in 4.19.2 and the used physical went from 969.03 to 975.82 in five minutes.

There is a map in project. Not the default one.
Open it, PIE or play in standalone, or cook and play. That is pretty much it.

That’s pretty awful stuff, but personally, I haven’t experienced any sort of memory leaking. I wonder what’s causing yours.

I ran your test, opened the bug map with the RT cube of death, ran stat memory, saw no climb in ram usage. I also checked rhi.DumpMemory as well.

What command are you running to output that log? I’ll try that one as well.

memreport -full
Can equally check memory in task manager of a standalone game process.

Yeah I figured it out, forgot about that command. Here were my results with just memreport (didn’t use -full):

START:
Time Since Boot: 21.50 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 905.17 MB used, 912.59 MB peak
Process Virtual Memory: 1188.81 MB used, 1256.94 MB peak
Physical Memory: 4848.84 MB used, 7349.86 MB free, 12198.69 MB total
Virtual Memory: 6089.23 MB used, 7349.86 MB free, 134217728.00 MB total

END:
Time Since Boot: 320.98 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 891.34 MB used, 912.59 MB peak
Process Virtual Memory: 1176.10 MB used, 1256.94 MB peak
Physical Memory: 4841.64 MB used, 7357.05 MB free, 12198.69 MB total
Virtual Memory: 6065.16 MB used, 7357.05 MB free, 134217728.00 MB total

Ran the test project on my machine (16GB, i7 4790, Nvdia gtx970:

Time Since Boot: 15.80 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 885.30 MB used, 928.42 MB peak
Process Virtual Memory: 1165.01 MB used, 1225.09 MB peak
Physical Memory: 6323.74 MB used, 10008.88 MB free, 16332.62 MB total
Virtual Memory: 1924.24 MB used, 10008.88 MB free, 134217728.00 MB total

Time Since Boot: 144.25 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 1187.74 MB used, 1514.75 MB peak
Process Virtual Memory: 1467.54 MB used, 1796.19 MB peak
Physical Memory: 6625.25 MB used, 9707.37 MB free, 16332.62 MB total
Virtual Memory: 2205.23 MB used, 9707.37 MB free, 134217728.00 MB total


Tested on laptop (surface book i7 6600, 16GB):

Time Since Boot: 20.31 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 903.53 MB used, 926.16 MB peak
Process Virtual Memory: 1172.13 MB used, 1218.98 MB peak
Physical Memory: 6104.42 MB used, 10204.88 MB free, 16309.30 MB total
Virtual Memory: 6053.99 MB used, 10204.88 MB free, 134217728.00 MB total

Time Since Boot: 278.70 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 1079.44 MB used, 1259.39 MB peak
Process Virtual Memory: 1349.44 MB used, 1530.75 MB peak
Physical Memory: 6123.84 MB used, 10185.46 MB free, 16309.30 MB total
Virtual Memory: 6268.73 MB used, 10185.46 MB free, 134217728.00 MB total

I wanted to run it for longer to see if it was getting worse, but it was struggling at a staggering 7fps… so I gave it a break.

Not really sure what to think.

@IronicParadox
@spazfirem
Cheers for tests.

@spazfirem
BP_DummyLoad has a variable NumIterPerTick. You can lower it to something more reasonable, to get better fps.
To clarify, surface book, the one with Intel or Nvidia graphics card ?

This would be the one with the Nvidia graphics card. I’m not exactly sure which model was put in there, but its obviously nothing great.

Thanks for the tip on the variable. I’ll play around with that and see if anything presents itself.

Interesting test project. Left it run for a little longer.

Right after starting, game is running nicely:



Time Since Boot: 11.46 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 928.68 MB used, 952.60 MB peak
Process Virtual Memory: 1233.97 MB used, 1285.43 MB peak
Physical Memory: 9660.91 MB used,  22779.73 MB free, 32440.64 MB total
Virtual Memory: 6178.95 MB used,  22779.73 MB free, 134217728.00 MB total


25 minutes later, game runs at glorious 1 second per frame:



Time Since Boot: 1451.19 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 2918.06 MB used, 4959.06 MB peak
Process Virtual Memory: 3226.55 MB used, 5272.55 MB peak
Physical Memory: 11556.80 MB used,  20883.84 MB free, 32440.64 MB total
Virtual Memory: 8182.88 MB used,  20883.84 MB free, 134217728.00 MB total


What kind of video cards and drivers are people running?

540m 385.69 here on this laptop and I don’t have this memory leaking problem.

1060 3gb on 390.65

Well, it is known that it happens on nvidia cards with a driver newer than 385.69 (387.92 (October 9, 2017) or newer).
In my test project, with some material billboards, I also get increasing ram usage with geforce 660 3gb (driver 391.35).

Results from “memreport -full”, Can post full logs if needed.
Used UE4.19.2, But did some browsing in Firefox 60.0.1 x64 in the forground
There does not seam to be any memory leak happening for me.

Hardware:
OS: Win8
CPU: AMD FX 8120
GPU: AMD HD 7770
GPU Driver: 14.4 (This is actually the latest version for Win8)
RAM: 12GiB 1333 (1x 4GiB, 1x 8GiB)

START:
Time Since Boot: 32.23 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 823.36 MB used, 823.36 MB peak
Process Virtual Memory: 771.26 MB used, 774.73 MB peak
Physical Memory: 7445.89 MB used,  4812.25 MB free, 12258.14 MB total
Virtual Memory: 1411.13 MB used,  4812.25 MB free, 8388608.00 MB total

END:
Time Since Boot: 1543.30 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 829.71 MB used, 859.92 MB peak
Process Virtual Memory: 775.23 MB used, 775.23 MB peak
Physical Memory: 7969.13 MB used,  4289.02 MB free, 12258.14 MB total
Virtual Memory: 1401.49 MB used,  4289.02 MB free, 8388608.00 MB total

Diff:
Runtime: ~25:45

Process Physical Memory: 6.35 MB used, 36.56 MB peak
Process Virtual Memory: 3.97 MB used, 0.5 MB peak
Physical Memory: 523.24 MB used, 523.25 MB free, 0 MB total
Virtual Memory: 9.64 MB used,  523.23 MB free, 0 MB total

Pre PIE:


Time Since Boot: 55.41 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 992.73 MB used, 1130.20 MB peak
Process Virtual Memory: 1522.75 MB used, 1597.25 MB peak
Physical Memory: 10419.78 MB used,  5913.88 MB free, 16333.66 MB total
Virtual Memory: 2280.75 MB used,  5913.88 MB free, 134217728.00 MB total


Post PIE:



Time Since Boot: 261.24 Seconds

Platform Memory Stats for Windows
Process Physical Memory: 1261.64 MB used, 1418.07 MB peak
Process Virtual Memory: 1710.06 MB used, 2019.96 MB peak
Physical Memory: 10562.82 MB used,  5770.84 MB free, 16333.66 MB total
Virtual Memory: 2476.56 MB used,  5770.84 MB free, 134217728.00 MB total


On a 1070 with newish drivers.