#Memory leak => Game freezes

25 messages · Page 1 of 1 (latest)

languid quiver
#

Basically, $topic
Every time I alt-tab for more than like 3-5 minutes to some other application, game starts to chug on memory (according to htop or other processes observation program) and this leads to whole system freeze, I have to switch to console, kill -9 PG player just to use my computer

Not sure if this is pure Linux behaviour or not (maybe Wayland, maybe KDE as usual), but happens almost every time, end every time it kills any joy of playing PG. Please do something, I feel like I am kinda done with PG because of this bug, it hits like truck every time

I am ready to collaborate, just tell me what is really important to do to pin point this annoyance. Core dumps, maybe I have to start game with some secret debugging keys, logs, just name it

🙏

hollow maple
#

So as a fellow Linux user, may I suggest reverting to X11 for your compositor? I know that's a PITA, but Wayland still has it's share of bugs.
I run Debian bookworm (I've shied a bit from testing branch, but stable is typically outdated, and I'm likely to return to the more cutting edge packages) and I've had zero issues like this with KDE.
The PG devs don't use Linux, and I doubt anything aside from community-based troubleshooting would bear much fruit.

#

I never got Wayland to play nice with my apps, so I still use X

hollow maple
#

I think you can install both and pick at the login screen

languid quiver
#

Ok, I'll check if this Wayland issue (but the rest of literally everything works these days on Wayland, I had issues only with PG and couple other Unity projects with same issues, like if they used same glitchy library

drifting grove
#

I don't believe this is limited to Linux. I have had a lot of these issues recently when managing inventory. I export files to excel to sort things more efficiently. I have 2 screens so I'm not even alt-tabbing and it does not take long until I start getting chain DCs when I go back and forth from one screen to the other.

languid quiver
#

I think I am kinda found how to reproduce. Looks like that's not the bug of alt-tabbing, but if I relog several times on alts, game after some time (no matter alt-tab or in game) starts dropping frames to like 5 and btop show that video card starts to be loaded to 100%, and memory usage grows too

If game not crashed, can player.log be useful to detect bug?

hollow maple
#

What kind of GPU?

drowsy bloom
#

On W11 after several hour of playing, the framerate starts to chug unless I look at the ground.

5800X3D /// 4080S

If I forge onwards and try to ignore it, the game will eventually crash so I just have to close the client and relaunch it to resolve the issue.

Hopefully it's something the newer Unity engine will solve once they make the switch.

languid quiver
#

mine is pretty ancient NVIDIA GeForce GTX 1070 Ti

hollow maple
#

This is bizarre

hollow maple
#

So I just remembered that Unity runs in C#, which has garbage collection. There should only be memory leaks when the actual C# garbage collection process is bugged, because memory leaks are traditionally programmer-domain errors (hence the movement towards memory-safe languages, C# is supposedly one).
Since it's clearly not *nix or Windows confined, nor AMD or Nvidia confined, and that this behavior should normally be unlikely, I think this is even more bizarre than previously surmised. 😳

#

I'd suggest maybe listing the gfx libraries used? Maybe it's a Vulkan thing?

#

Since Vulkan is cross-platform*

languid quiver
#

ok, I guess I'll try to reproduce and wait until game actually crashes for logs. Oh, just remembered that sometimes it goes so hard, that Steam itself crashes (well, exits and I have to start steam again). Maybe steam overlay and Unity perfect storm bug?

hollow maple
#

This might help pinpoint what's going awry with your GPU:
Linux: https://github.com/JeremyMain/GPUProfiler-for-Linux
Windows: https://github.com/JeremyMain/GPUProfiler

GitHub

GPUProfiler for Linux. Contribute to JeremyMain/GPUProfiler-for-Linux development by creating an account on GitHub.

GitHub

GPUProfiler - Understand your application and workflow resource requirements - JeremyMain/GPUProfiler

#

Dude looks 100% reputable, though

violet swift
#

I have a 96gb ram, a 4090, and 7800x 3d, and when events happen this freezing also happens but for a second or two at a time.

languid quiver
#

fun part - I reset my graphical settings and now at quality level 1 I get like 160-180 frames and even after 10 relogs I can't catch this crash >.<

cyan patio
#

i know this is ages ago but it's still present, and im on Windows 10.

#

RAM usage from today's poem meeting went from 4GB to 9GB in the span of 15 minutes

cyan patio
#

serbule seems to have it the worst, im guessing the game logs players into RAM but never cleans out players that are out of the server or out of your rendering?

#

i went to eltibule and the myconian caves and my RAM was stable there

#

it leaks far slower in those areas