MemoryLeak in 5.6 Linux?

Is there a know memory leak in the Linux Engine?

I tried 5.6.0 and 5.6.1 and have a memory leak of about 300MB in one hour.

[Image Removed]

Steps to Reproduce

=>Memory increase of about 300MB in one hour

Hi,

I don’t see any known issues that are related, does this only occur when PIE is running? Is the memory freed when you end the PIE session?

If you’re able to attach a project log, there may be some hints there. Better yet, if you can grab an insights trace with gc.CollectGarbageEveryFrame enabled, the memory insights trace should show us where the leaking memory is going.

Best,

Cody

Hi Cody,

thanks for your answer. I tried to generate your requested data.

If i use -trace=default,memory everything gets unusable slow and also the memory leak seems not to be that strong as without.

I did two tests:

  1. Start Editor, wait 5 Min, start PIE, wait 5 min, close PIE, wait 5 min. After that i created a short .utrace. I see a mem leak also in the editor, not only if the PIE is started. See attached .png.
  2. Start Editor with -trace=default,memory. Enable gc.CollectGarbageEveryFrame. Than start the trace, wait a few seconds, start PIE, stop PIE, stop trace.

I also added the log files of this two tests.

I hope these files can help you. If you need more information. Please let me know.

Best,

Malte

Hi,

Thanks for providing those logs. There’s some mention of a Vulkan leak in the logs that we’re aware of and investigating on our end, though we haven’t seen anything near the 300mb leak that you’re seeing in an hour. It looks like the traces only cover the last few minutes from the trace ringbuffer, so we may need a trace that writes to a file from the process start via the -tracefile argument. You could also avoid collecting GC every frame and instead force a GC manually once before shutting the engine down, that should be sufficient to catch any leaks without hurting editor performance as badly.