Dota-2 icon indicating copy to clipboard operation
Dota-2 copied to clipboard

Dota 2 hangs when closing - Arch Linux / Nvidia Proprietary Drivers / Vulkan

Open 32bitcolor opened this issue 2 years ago • 44 comments

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:

  1. Open Dota 2
  2. Close Dota 2
  3. Click Yes on the confirmation prompt, watch the game hang-on-closing.

32bitcolor avatar Nov 05 '21 21:11 32bitcolor

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.

fee1dead88 avatar Nov 06 '21 11:11 fee1dead88

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.

32bitcolor avatar Nov 06 '21 14:11 32bitcolor

The issue disappears when I roll back to nvidia-470xx using: yay -S nvidia-470xx-dkms nvidia-470xx-utils lib32-nvidia-470xx-utils

wyrrl avatar Nov 08 '21 19:11 wyrrl

Just to add that it's not Arch exclusive. Happens the same thing on Fedora (35 in this case)

r3pek avatar Nov 09 '21 23:11 r3pek

OK, looks like it's the same as https://github.com/ValveSoftware/Dota-2-Vulkan/issues/392

r3pek avatar Nov 09 '21 23:11 r3pek

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.

jakepacheco avatar Nov 16 '21 00:11 jakepacheco

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.

32bitcolor avatar Nov 16 '21 02:11 32bitcolor

Can reproduce this bug using nvidia 495 drivers and the vulkan backed on NixOS.

starcraft66 avatar Nov 16 '21 07:11 starcraft66

The same for me, I use Manjaro with nvidia 495.44

qmained avatar Nov 20 '21 08:11 qmained

Same here, Ubuntu 20.10, nvidia driver 495.

lzaldivarkt avatar Nov 21 '21 21:11 lzaldivarkt

I'm also having this issue, started immediately after switching from 470 to 495 drivers. Running Manjaro KDE with vulkan

rodrigomessias avatar Nov 22 '21 14:11 rodrigomessias

Can reproduce on Ubuntu 21.10 with nvidia 495.44

mbenlioglu avatar Nov 23 '21 03:11 mbenlioglu

Same with nvidia 495.44 Arch Linux on Zen kernel

AnzoDK avatar Nov 26 '21 13:11 AnzoDK

Definitely related to the 495 driver, can confirm this issue.

danslo avatar Nov 27 '21 15:11 danslo

Ubuntu 20.04 with nvidia 495.44. Exact same issue

skoruppa avatar Nov 30 '21 07:11 skoruppa

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.

domadden avatar Dec 03 '21 23:12 domadden

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?

dota_exit_hang.txt

nascheme avatar Dec 27 '21 21:12 nascheme

@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.

danslo avatar Dec 27 '21 21:12 danslo

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.

gardotd426 avatar Dec 29 '21 13:12 gardotd426

Same here with nvidia 495.46, but if I recall correctly the same thing happened on my previous laptop with intel drivers and OpenGL.

felipec avatar Jan 12 '22 16:01 felipec

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)?

jrgarcia11 avatar Jan 18 '22 08:01 jrgarcia11

I was having the same issue, but seems to be fixed with either nvidia 510.39 or a game update

Briaoeuidhtns avatar Jan 19 '22 05:01 Briaoeuidhtns

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.

AnzoDK avatar Jan 21 '22 19:01 AnzoDK

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.

nascheme avatar Jan 21 '22 20:01 nascheme

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)

pilak avatar Jan 22 '22 14:01 pilak

where can you download nvidia 510 from ?

qw34ty avatar Jan 29 '22 04:01 qw34ty

@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 avatar Jan 29 '22 11:01 gardotd426

@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.

qw34ty avatar Jan 29 '22 17:01 qw34ty

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

qw34ty avatar Jan 29 '22 17:01 qw34ty

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.

qw34ty avatar Jan 29 '22 17:01 qw34ty