-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak on AMD when using HEVC only #151
Comments
Before I dive into this, a quick question: are you running latest Wolf image?
And restart the container |
I pulled all images just before i tested, after i realised there is a problem happening. |
I managed to trigger it again, while playing. Using the newest image the problem started after this msg apeard in the log:
afterwards every used image gets the leak, persistant even after restarting the wolf container. only a Host restart seemed to fix it. |
I've tested a few things in code and I can't reproduce a memory leak when hitting that edge case so I don't think that's the underlying cause of it; I'm way more suspicious by the fact that this is only triggered by Moonlight Android and I'd like to dig deeper there: what are the differences between the laptop and the Android client?
I think that what's happening here is that for some reason the host can't keep up the requested framerate (could be GPU, network or other) and when that happens we are leaking some frames in our encoding pipeline. |
I think i found what causes this for me:
|
I appear to have triggered this with an AMD RX 7700 XT as the host GPU running on Docker on an Arch machine, serving to an M4 Pro Mac mini. It doesn't trigger under most games, but it triggered this time when running Borderlands 3. Borderlands 3 also wanted to start running while the shader compilation was going, which I had to cancel, but could not, because the leak caused it to spiral out of control. |
Nope, Borderlands 3 makes it continuously leak memory even with H.264. |
I need a bit more info:
|
Btw there are tons of reports on protondb https://www.protondb.com/app/397540 with all kind of issues, might be something specific to this game and Proton.. |
wolf process "res" stat climbing past 45g.
Reliably shortly after starting the game, by the time it reaches the menu.
I'll check and report back when I'm on my desktop again.
Figures it would break in the time since I last checked it, in November. |
I've just pushed a fix that should potentially fix this, you can update to the latest with:
Let me know how it goes! |
That fixed it, thanks! |
Thanks for testing it out! |
Hey I observed a Memory leak when connecting to wolf via an Android client.
on my laptop no Memory leak occurs, so i think its Android exclusive.
Memory leak occurs the second the stream starts (no actions need to be performed on the client on the running container).
Here my compose file:
here are debug logs from a short firefox session:
wolf_log_firefox.log
and a debug log from Lutrs untill all ram was exhaused:
wolf_log_lutris..log
and here the crash dump created after running out of memory:
dump.zip
The text was updated successfully, but these errors were encountered: