ValveSoftware / Dota-2-Vulkan

Tracker for issues specific to the Vulkan version of Dota 2 on Windows, Linux, and macOS
101 stars 17 forks source link

[Linux] Dota 2 with vulkan api eat all system memory and hangs my PC (Manjaro Linux) #370

Open koreanfan opened 3 years ago

koreanfan commented 3 years ago

Your system information

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist. I want just play Dota 2 with vulkan api, but Dota 2 with vulkan eat all RAM ( at start- 3.5 GB, before crash pc - almost 8GB) and pc can hangs or even crash. With opengl api dota eat at start - 3.5 GB, and after playing dota 2 eat max 4.5 GB

Steps for reproducing this issue:

  1. Launch steam with a command in terminal: "DRI_PRIME=1 RADV_DEBUG=llvm steam" ( I dont use default aco compiler cuz its unplayable, input lag, seems dota units responding with delay 0.5 seconds on my mouse action even on demo hero mode with micro freezes)
  2. Launch task manager and dota 2 eat 3.5 GB of RAM
  3. Play some matches. With every match dota eat more ram. When match is ended match results table loads very slow.
  4. Switch to task manager and dota 2 eat almost all 8 GB of RAM
  5. Play another some matches and pc can hangs, or just launch program (opera or another browser) and pc crash
  6. Hard reset
zelmor commented 3 years ago

I would like to report similar crashes. Takes a couple games but ultimately my system will hang and loses responseness.

https://gist.github.com/zelmor/95e99e7bed8fec0c3dfd65dd73c41da6

ladsoftware commented 3 years ago

me too. its sad that valve is planing on removing opengl and make vulkan the default api on Linux. Opengl is the only driver api that is stable for me, on arch lInux

koreanfan commented 2 years ago

I have vulkan memory leak, when dota eat all my ram, my pc crash, only hard reset. Tested on all linux distros and got vulkan memory leak

nortexoid commented 2 years ago

Same on Manjaro unstable, steam native. Right after opening the game it consumes 4GB of memory, and it eats memory over time until it often crashes. Using opengl, only 2GB is consumed and there's no memory leak over time. I'm on wayland (hence using xwayland for Dota).

koreanfan commented 2 years ago

When valve fix this issue?

steakscience commented 2 years ago

When valve fix this issue?

Linux issues are super hard to debug (so many variables) and I doubt Valve cares enough to try to chase this issue down

koreanfan commented 2 years ago

I got this issue since 2017. Is 5 years not enough to fix this?

imavlr commented 1 year ago

I had to upgrade my system from 16GB ram to 32GB to be able to have anything other than discord running in the background. I have to restart Dota 2 after a couple of games, because it will bloat up into the 9+ GB of memory used. It didn't use to be like this. I am on Wayland, if that makes any difference.

You can not deprecate OpenGL until this issue is remedied.

aronwolf90 commented 1 year ago

My workaround is to start steam in the terminal with the following command: systemd-run --scope -p MemoryLimit=20G steam (Adjust the limit of memory to your needs)

The problem with this is, that using the terminal to lunch steam is not very user friendly.

koreanfan commented 1 year ago

My workaround is to start steam in the terminal with the following command: systemd-run --scope -p MemoryLimit=20G steam (Adjust the limit of memory to your needs)

The problem with this is, that using the terminal to lunch steam is not very user friendly.

didn't work, memory leak detected anyway