ValveSoftware / Dota-2

Tracker for issues specific to Linux and Mac in the Reborn client. If you have a general issue or non-system-specific feature request please go to dev.dota2.com
470 stars 38 forks source link

Dota Crashing or Freezing at random intervals while in match [ Debian Linux ] #1916

Open McKraska opened 3 years ago

McKraska commented 3 years ago

Your system information

https://gist.github.com/McKraska/9fa173bb11c1ea7e96e3737ee570cc33

Please describe your issue in as much detail as possible:

Crashes happened prioer to dawnbreaker too. Random crashes while game is runnig, the game fully closes. Random long interval freezes that the game sometimes recoveres from. I have benchmarked all hardware, updated my kernel to 5.8, cleaned GRUB command line to make sure there are no weird start up paramenters. I have tried open gl or Vulkan I have stress tested the game, by running a bot game as invoker, and with -wtf, spamming spells as fast my my fingers allowed, it showed not issues and no signs of slowing down I then started another bot game with spectre, and while just walking, it crashed.

Steps for reproducing this issue:

  1. Running dota running opengl or vulkan
  2. Starting a match
LuyeT commented 3 years ago

I've also been getting this behaviour for a very long time with both gl and vulkan. Hard to describe exactly how long, but I'm under the impression stability has steadily degraded since the release of Reborn. Some patches are better than others, but typically I get at least one crash per game.

McKraska commented 3 years ago

Crashes so frequent now ive simply set up a dual boot with Windows 10 home, simply to play DotA

SaladinAyyub commented 3 years ago

I dont get exactly a "crash" but game stucks mid game. and this is also since soo long, even before diretide update. This is mid game or sometimes even in pick screen, i have a fast ssd so I can reboot and rc quickly but I have also had abandons because of this.

SaladinAyyub commented 3 years ago

If this is Fedora / Debian specific libinput version 1.16 can also be an issue as these 2 distros use 1.6.4 and 1.6.3 version of libinput. If no one in Arch is experiencing this which has libinput 1.17.2.

libinput 1.17 just got pushed into fedora 34 testing repos, I will see if that helps once it arrives in stable.

SaladinAyyub commented 3 years ago

Its not a libput issue, I tested it with 1.17.1 on Fedora 34. So it can be due to some other dependency. I will try gathering live logs as its very hard due to It doesn't even allow Clicking anywhere as Mouse still remains Dota 2 one after Alt + Tab. However I will try launching it with terminal and quickly get logs on an alt tab, the next time it happens.

nabing8 commented 3 years ago

Have been facing same issues on arch 5.12.13-arch1-2 and nvidia Driver Version: 465.31. Random crashes after the last battle pass update.

regulator-g commented 3 years ago

Not sure if I have the same issue, started happening a month ago maybe around battle pass launch

-game freezes up after 30mins or so -if i press buttons the screen shakes -sound stops and starts a bit -after a few seconds whole screen has glitching images come up -I don't think it happens on OpenGL will test further

If I press ctrl+alt+delete I can get to the login screen and reboot

Manjaro XFCE AMD 6700XT Kernel 5.12 Mesa 21.1.4

Not sure where to check for logs but happy to dig them up if it helps

McKraska commented 3 years ago

I've given up on the DotA linux version, setting up a dualboot was less of a hassle than trying to get it to run on Linux

regulator-g commented 3 years ago

This has been fixed for me, either from a monthly system update or Mesa 21.1.5.

LuyeT commented 2 years ago

A fix that seems to work has been brought to my attention in #1983 by Kisak. Vulkan backend on linux will default to AMDVLK driver, which seems to cause crashes for dota. I've not had any crashes with Dota since switching to the RADV driver. Still fairly recent, so hard to say for certain that it's fully stable, but for illustrative purposes, I was unable to sustain more than 10 minutes of in game time with AMDVLK, and I've done multiple games without crashes with RADV. Hope this helps and leads to a once again thriving linux community on dota. :) EDIT: Would like to point out this applies to AMD cards. I'm not familiar enough with Nvidia drivers to comment on those cases.

ghost commented 2 years ago

Replying to https://github.com/ValveSoftware/Dota-2/issues/1916#issuecomment-881850735

I got exactly the same problem. If I open Firefox, for example, the game immediately crashes my entire system (the screen gets stucked, the sound keeps playing and blocking, and I can't ALT + TAB or anything else). Sometimes, it happens even without opening any other application (hopefully not ingame). The only solution is to reboot my system.

Here are my system info: https://gist.github.com/D3XT3RY0NuT/e04effd35627aca8db375948a48f5f8e

regulator-g commented 2 years ago

I got exactly the same problem. If I open Firefox, for example, the game immediately crashes my entire system (the screen gets stucked, the sound keeps playing and blocking, and I can't ALT + TAB or anything else). Sometimes, it happens even without opening any other application (hopefully not ingame). The only solution is to reboot my system.

Here are my system info: https://gist.github.com/D3XT3RY0NuT/e04effd35627aca8db375948a48f5f8e

You are using Ubuntu LTS so thankfully you should get some official support.. The version of Mesa in use is quite old it could be worth adding Kisak's PPA which will install the latest Mesa drivers. I think Kisak might chime in with his own recommendation though

https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa

kisak-valve commented 2 years ago

Not really interested in self-promoting, and looking at https://gist.github.com/D3XT3RY0NuT/e04effd35627aca8db375948a48f5f8e#file-system-info-L48, X is running on the NVIDIA gpu and the integrated AMD gpu chipset can't render. Updating mesa won't make a difference in this specific case since the game can only use the NVIDIA proprietary driver.

dmknght commented 2 years ago

i'm having the same problem. Playing on gigabyte g5 KC. My only "solution" is hold the power button when it crashed. Got something in .xsessionerror

[2022-01-16 15:34:01] Verification complete
src/common/pipes.cpp (883) : fatal stalled cross-thread pipe.
src/common/pipes.cpp (883) : fatal stalled cross-thread pipe.
src/common/pipes.cpp (883) : Fatal assert; application exiting
src/common/pipes.cpp (883) : Fatal assert; application exiting
Installing breakpad exception handler for appid(steam)/version(1639697812)
assert_20220116155821_74.dmp[144730]: Uploading dump (out-of-process)
/tmp/dumps/assert_20220116155821_74.dmp
_ExitOnFatalAssert
assert_20220116155821_74.dmp[144730]: Finished uploading minidump (out-of-process): success = yes
assert_20220116155821_74.dmp[144730]: response: CrashID=bp-e7b1eed0-0c3d-490b-83d5-5256b2220116
assert_20220116155821_74.dmp[144730]: file ''/tmp/dumps/assert_20220116155821_74.dmp'', upload yes: ''CrashID=bp-e7b1eed0-0c3d-490b-83d5-5256b2220116''
src/common/pipes.cpp (883) : fatal stalled cross-thread pipe.
src/common/pipes.cpp (883) : fatal stalled cross-thread pipe.
src/common/pipes.cpp (883) : Fatal assert; application exiting
ERROR: ld.so: object '/home/dmknght/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
assert_20220116160439_23.dmp[144766]: Uploading dump (out-of-process)
/tmp/dumps/assert_20220116160439_23.dmp
src/common/pipes.cpp (883) : fatal stalled cross-thread pipe (pipe is disconnected).
src/common/pipes.cpp (883) : Fatal assert; application exiting
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
assert_20220116160442_7.dmp[144774]: Uploading dump (out-of-process)
/tmp/dumps/assert_20220116160442_7.dmp
assert_20220116160439_23.dmp[144766]: Finished uploading minidump (out-of-process): success = yes
assert_20220116160439_23.dmp[144766]: response: Discarded=1
assert_20220116160439_23.dmp[144766]: file ''/tmp/dumps/assert_20220116160439_23.dmp'', upload yes: ''Discarded=1''
pid 144766 != 144763, skipping destruction (fork without exec?)
assert_20220116160442_7.dmp[144774]: Finished uploading minidump (out-of-process): success = yes
assert_20220116160442_7.dmp[144774]: response: Discarded=1
assert_20220116160442_7.dmp[144774]: file ''/tmp/dumps/assert_20220116160442_7.dmp'', upload yes: ''Discarded=1''

The funny part is I can't do anything to open terminal and get the dump files, so after reboot, all dump files were gone. Nvidia version: 470.57.02

LuyeT commented 2 years ago

Replying to https://github.com/ValveSoftware/Dota-2/issues/1916#issuecomment-1013838911

Hi, can't really address the crash itself as I don't play much dota these days, but thought I'd leave this here in case you were not familiar (instructions should be relevant even if your not using arch, but double check with your distro). https://wiki.archlinux.org/title/Keyboard_shortcuts#Killing_a_memory-hogging_process Should help you get a copy of dump, though in some cases truly nothing but the power button works.

dmknght commented 2 years ago

Replying to #1916 (comment)

Hi, can't really address the crash itself as I don't play much dota these days, but thought I'd leave this here in case you were not familiar (instructions should be relevant even if your not using arch, but double check with your distro). https://wiki.archlinux.org/title/Keyboard_shortcuts#Killing_a_memory-hogging_process Should help you get a copy of dump, though in some cases truly nothing but the power button works.

Thank you for your URL. I used the reboot until i figure it out i can just use combo (on my laptop is Alt + SysRq + K to restart everything LoL. I'm using LUKS so it's a little pain rebooting and waiting system to boot up.

Anyway, Dota is not only game has this problem, however i got more crashes than other games. I can play total war 3k 6 hours straight without having any problem. My last 2 dota game crashes after about 20 mins.

Luckily, this time i can get the dump file. dumps.zip

dmknght commented 2 years ago

I have an other different crash today while game is playing. After a while, I think this crash is not really dota 2 specific, but other games as well. It looks like cloud syncing problem crashes game while playing (maybe?)

Fatal IO error 0 (Success) on X server :0.0.
src/common/pipes.cpp (665) : m_pInternalPipe->BRead failed
src/common/pipes.cpp (665) : m_pInternalPipe->BRead failed
src/common/pipes.cpp (665) : m_pInternalPipe->BRead failed
src/common/processpipe_posix.cpp (507) : CCrossProcessPipe::BWrite: 32 (Broken pipe)
src/common/pipes.cpp (862) : CClientPipe::BWriteAndReadResult: BWrite failed
src/common/pipes.cpp (862) : Fatal assert; application exiting
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
assert_20220326224138_10.dmp[39024]: Uploading dump (out-of-process)
/tmp/dumps/assert_20220326224138_10.dmp
assert_20220326224138_10.dmp[39024]: Finished uploading minidump (out-of-process): success = no
assert_20220326224138_10.dmp[39024]: error: Couldn't resolve host name
assert_20220326224138_10.dmp[39024]: file ''/tmp/dumps/assert_20220326224138_10.dmp'', upload no: ''Couldn't resolve host name''

Dump files dumps.zip

P/s: idk why but i got 2 crashed matches play Grim Stroke. IDK if this hero creates crash when cast skills.

ladsoftware commented 2 years ago

the same here. CPU ryzen 1700 GPU: rx 580 OS: Arch Linux DE: GNOME 42 Driver: Mesa API: OpenGl (bc vulkan is unplayable)

issue: game freeze randomly and shuts down. I can play any other games without issues. dota2 is the only game that crashs.

lewisdiamond commented 2 years ago

CPU ryzen 1700 GPU: rx 570 OS: Arch Linux

Same behavior. The game completely freezes and I have to kill the dota2 process to recover. I have tons of dump files if needed.

regulator-g commented 2 years ago

Hi guys, I sugget opening a new ticket with your issue, I have similar setup and it never ever crashes: 3900x Rx6700xt Arch

Again pls confirm you are using mesa's Vulkan not AMDs and are also using Mesa drivers not AMDs. This is what I have installed, none of the AMD packages:

amd: amd-ucode 20220610.7b71b75-1

mesa: lib32-mesa 22.1.3-1 lib32-mesa-vdpau 22.1.3-1 libva-mesa-driver 22.1.3-1 mesa 22.1.3-1 mesa-demos 8.5.0-2 mesa-utils 8.5.0-2 mesa-vdpau 22.1.3-1

vulkan: lib32-vulkan-icd-loader 1.3.217-1 lib32-vulkan-radeon 22.1.3-1 vulkan-headers 1:1.3.217-1 vulkan-icd-loader 1.3.217-1 vulkan-radeon 22.1.3-1 vulkan-tools 1.3.217-1

LuyeT commented 2 years ago

The most common factor I can see here is that a lot of us have a Ryzen 1700 CPU. Not sure how helpful it is for you to say you have no issue with different hardware. Gathering similar issues in the same thread seems more manageable than spraying the forum with them. It's typically encouraged?

On Wed, 13 Jul 2022, 07:26 regulator-g, @.***> wrote:

Hi guys, I sugget opening a new ticket with your issue, I have similar setup and it never ever crashes 3900x Rx6700xt Arch Again pls confirm you are using mesa's Vulkan not AMDs and are also using Mesa drivers not AMDs, hope that makes sense

— Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/Dota-2/issues/1916#issuecomment-1182780849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMPR2XIKFC74ZWBXYXJHP3VTZHRFANCNFSM42V5FY5Q . You are receiving this because you commented.Message ID: @.***>

regulator-g commented 2 years ago

You all use Arch which doesn't ship with every dependency needed for games, it has to be setup correctly. I'll stop helping if you don't find my suggestions useful.

lewisdiamond commented 2 years ago

It happens on OpenGL as well, not specific to Vulkan.

With mesa-utils as well as vulkan-radeon and vulkan-tools, I tested running using vulkan and saw no crashes (limited sample).

lewisdiamond commented 2 years ago

Tested with all the packages listed by @regulator-g and got a few games without crashes but then a game where it crashed literally 10 times.

I have a bunch of coredumps, will someone from valve look into this? I can upload the dumps.

dmknght commented 2 years ago

Tested with all the packages listed by @regulator-g and got a few games without crashes but then a game where it crashed literally 10 times.

I have a bunch of coredumps, will someone from valve look into this? I can upload the dumps.

That's a very interesting question. Idk if you heard this: Valve creates a new repository to collect Dota 2's bugs. Should we all send at least 1 email to our Lord, Gaben?

markmorris commented 2 years ago

omg, thought i was the only person, dota 2 is the only native linux game im playing right now its basically unplayable crash after crash.

Ryzen 5 1500x nvidia 1070

markmorris commented 2 years ago

Turn off Compute Shaders. This should fix the issue, ive had this issue for weeks, turning settings to low (i normally play low anyway but i always have Compute Shaders and AA Checked). I unchecked Compute Shaders and ive had no crash since my last post.

markmorris commented 2 years ago

Was talking rubbish, its still crashing, i just had a few lucky games, 3 crashes so far on this game, lowering all the settings definitely helped.

markmorris commented 2 years ago

Any updates on fixes, ive lost 300 mmr lol its just crash after crash. clean install of ubuntu GTX 1070 (nvidia drivers all setup) AMD Ryzen 5 1500X. Thats all you need to reproduce, what makes it worse is that its the only native linux game i play and its unplayable.

markmorris commented 2 years ago

You made me play on windows...

lewisdiamond commented 2 years ago

Purely from memory, without accurate stats backing this claim, it seems to never crash on some heroes and crash frequently on others. I do not believe I've had a single crash playing PA, meanwhile, I get 3+ crashes per game playing meepo.

ds0nt commented 2 years ago

Damn, it was working great on ubuntu. Then I installed manjaro i3 and it's crash after crash for me too on this patch

afshinShh commented 1 year ago

Yes i have the same unsolved issue from manjaro This makes me hit the desk <_>

dmknght commented 1 year ago

Was talking rubbish, its still crashing, i just had a few lucky games, 3 crashes so far on this game, lowering all the settings definitely helped.

I think 1 of the issues was Dota 2 tried syncing network data vs the GUI. It's like threading problem i guess.