#Memory Leak

8 messages · Page 1 of 1 (latest)

spare vapor
#

Game version:** 1.17.8
OS: Linux

Steps to reproduce:

  1. Play too much (sorry, happens over time ~4h playtime)

Wrong behavior: got killed by the kernel because of an out-of-memory error (after taking ~19 GB of virtual memory!)
Expected behavior: don't get killed by the kernel because of an out-of-memory error.

[261814.974349] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/app-Rail\x20Route-f43cbea8770341fb8f5e6f7929d89a62.scope,task=Rail Route.x86,pid=101830,uid=1000
[261814.974578] Out of memory: Killed process 101830 (Rail Route.x86) total-vm:19292980kB, anon-rss:5832380kB, file-rss:2896kB, shmem-rss:3028kB, UID:1000 pgtables:18236kB oom_score_adj:200

Log:attached
silent dust
silver flare
#

out of curiosity, which tools are devs using for analyzing memory consumption? i could maybe have a look on memory consumption and take a snapshot if it looks suspicious.

desert tundra
# silver flare out of curiosity, which tools are devs using for analyzing memory consumption? i...

We use the built-in unity profiler and memory profiler, which are only available for us in the unity editor.
for players the easiest thing to do is to check the task manager for memory consumption. it should normaly be between 2 and 8GB depending on the complexity of the map and amount of saves / maps present in the menu.

if you notice a ton of memory usage, or more importantly a constant increase over time then thats noteworthy and might indicate a memory leak

silent dust
#

@spare vapor i have found memory leak in shunting queue configuration. But i would tell that won't be this case. I was not able to find an increasing compsution over an fully auotmated map

#

So maybe your actions were somehow specific?

#

but my testing was for quite smaller periods of time for now

spare vapor
#

No worries, I can't remember what I did over a period of 4 hours. Maybe it got fixed already when you fixed other bugs. I always play with CPU/GPU/Memory statistics, I will let you know if I notice anything