Dota-2
Dota-2 copied to clipboard
Dota 2 hangs when closing - Arch Linux / Nvidia Proprietary Drivers / Vulkan
Your system information
-
System information from steam (
Steam
->Help
->System Information
) in a gist: systemsettings.txt -
Have you checked for system updates?: [Yes/No]
-
Are you using the latest stable video driver available for your system? [Yes/No]
-
Have you verified the game files?: [Yes/No]
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.
When I try to close Dota 2, I get the "are you sure..." prompt, I click "Yes", but the game never quits: the screen just sits there and does nothing. I'm forced to open System Monitor and kill the dota2 process in order for it to close.
Launch options: -sdl_displayindex 0 -phased_window_create Using Vulkan renderer, latest Nvidia proprietary drivers,
Steps for reproducing this issue:
- Open Dota 2
- Close Dota 2
- Click Yes on the confirmation prompt, watch the game hang-on-closing.
I'm experiencing the exact same issue. kill -9 DOTAPID will close the program or killing all steam processes. Otherwise the process will not close. My setup is similar to the user above Arch, Nvidia, Vulkan.
It's probably worth noting that the -sdl_displayindex 0 -phased_window_create
launch options are set because I'm on a laptop with an external monitor, and that's the only way I can get the game to launch on the correct monitor.
The issue disappears when I roll back to nvidia-470xx using:
yay -S nvidia-470xx-dkms nvidia-470xx-utils lib32-nvidia-470xx-utils
Just to add that it's not Arch exclusive. Happens the same thing on Fedora (35 in this case)
OK, looks like it's the same as https://github.com/ValveSoftware/Dota-2-Vulkan/issues/392
This happens to me as well using Vulkan (everything is fine on openGL) on EndeavourOS with up-to-date nvidia drivers. System Information Gist pulled from steam.
This happens to me as well using Vulkan (everything is fine on openGL) on EndeavourOS with up-to-date nvidia drivers. System Information Gist pulled from steam.
I looked over your SysInfo Gist @jakepacheco and it looks like you're on the 495 nvidia drivers. I rolled mine back to 470 and haven't had any issues. Same on elementaryOS 6 Odin and Manjaro.
Can reproduce this bug using nvidia 495 drivers and the vulkan backed on NixOS.
The same for me, I use Manjaro with nvidia 495.44
Same here, Ubuntu 20.10, nvidia driver 495.
I'm also having this issue, started immediately after switching from 470 to 495 drivers. Running Manjaro KDE with vulkan
Can reproduce on Ubuntu 21.10 with nvidia 495.44
Same with nvidia 495.44 Arch Linux on Zen kernel
Definitely related to the 495 driver, can confirm this issue.
Ubuntu 20.04 with nvidia 495.44. Exact same issue
I'm on Manjaro with 5.15.2-2 kernel, nvidia 495.44 drivers, and also have the same issue. An annoying but simple workaround is alt-tab and stop the game in Steam using the big blue Stop button in the library.
Backtrace from gdb attached. The hang only happens when Vulcan is enabled, OpenGL doesn't show an issue. However, with OpenGL, the initial screen with Aghanim causes the GPU to peg at 100% and causes the rest of the system to lag. Switching to a different screen (e.g. user stats) makes the GPU drop to about 10%. That problem doesn't happen with Vulcan (about 30% GPU on my system, GTX 1070 Ti).
Hard to make much of the backtrace without symbols. Maybe a race condition in vkDestoryDevice or some issue in the libGLX_nvidia.so library?
@nascheme I have the same issue with GL, so I have disabled the Aghanim's dashboard entirely, see: https://www.reddit.com/r/DotA2/comments/rkyk50/how_to_disable_the_dashboard_cinematic_entirely/ I know this doesn't fix the original issue (I'd love to go back to Vulkan), but at least it gives a temporary workaround.
I don't have an issue on hanging with closing, but the game is unplayable on 495 drivers. I have a 3090 and 5900X and the game is constantly freezing for about 10 seconds. It'll do it every 5 or 10 seconds and then pick up again, and run at the full 240 fps, but then freeze again.
Same here with nvidia 495.46, but if I recall correctly the same thing happened on my previous laptop with intel drivers and OpenGL.
Experiencing this issue with OS: Manjaro Linux x86_64 kernel: 4.19.223-1-MANJARO NVIDIA Driver Version: 495.44 Dota Rendering API: vulkan
I looked over your SysInfo Gist @jakepacheco and it looks like you're on the 495 nvidia drivers. I rolled mine back to 470 and haven't had any issues. Same on elementaryOS 6 Odin and Manjaro.
Any tips for rollback in the meantime? nvidia-settings doesn't seem to make switching drivers trivial. Is it as simple as reinstalling mhwd-nvidia-470xx (from AUR)?
I was having the same issue, but seems to be fixed with either nvidia 510.39 or a game update
I was having the same issue, but seems to be fixed with either nvidia 510.39 or a game update
Yup - the nvidia 510.39 driver fixed it (arch [with paru] paru -S nvidia-beta<-dkms> nvidia-utils-beta lib32-nvidia-utils-beta nvidia-settings-beta
)
EDIT: Think it might have been this line in the changelog from Nvidia's driver page :
Fixed a bug which caused Vulkan applications to hang when the __GL_THREADED_OPTIMIZATIONS environment variable was set to enable threaded optimizations in the NVIDIA driver.
I can also confirm that the 510.39 driver fixed it for me (Debian testing distribution). I can run with Vulkan enabled now. I didn't re-enable the Aghanim animation on the home screen but I suspect that's fixed too (in terms of using 100% GPU). The framerate in game seems decent with Vulkan enabled, bottleneck still seems to be the CPU.
BTW, the 510.39 driver fixed my issues with Firefox video acceleration as well. Previously Youtube videos played in Firefox would cause the UI to drag. So, whatever Nvidia has done seems to have fixed some things, not just Dota 2.
Please how to install NVIDIA 510 drivers on Ubuntu? Actually I have laptop with nvidia optimus technology so I cannot install manually the latest drivers. Have to wait I guess for the official ubuntu version :/
For now I have to kill it manually with the command below
kill -9 $(pgrep -f dota2)
where can you download nvidia 510 from ?
@pilak @qw34ty Honestly if you're on Ubuntu I would just wait until 510 comes out of beta and is available in the graphics-drivers
PPA. The only way to install 510 on Ubuntu right now is manually using the .run file. That is 100% NOT recommended. You ALWAYS want to go through your package manager for something like Nvidia drivers.
Part of using Ubuntu means not having access to the latest software, it's a static release distribution. 510 is a beta driver, it's not in any distribution's repos (it's in the AUR but it is not in the Arch repos).
Most people using 510 are likely going to be on distros like Arch or Manjaro where they can install the driver through the AUR or use a community repo like nvidia-all
from TKG (which is how I install my Nvidia drivers on Arch), it all still goes through the package manager, though - and that's key.
@gardotd426 problem with PPA drivers is that they not including the 32-bit compatability libraries which breaks steam dependencies, and when you apt install the 32-bit lib, it removes the 64-bit libs, so installing the .run file like this was the only way i could get it working, currently on 495.
FYI, found link for beta.
https://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/510.39.01/NVIDIA-Linux-x86_64-510.39.01.run&lang=us&type=TITAN
I was having the same issue, but seems to be fixed with either nvidia 510.39 or a game update
Dont think that game update does anything here, my install of steam + dota2 was done few days ago.