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
472 stars 38 forks source link

Game crashes randomly with a Segmentation Fault on Linux #2681

Open arnabci opened 7 months ago

arnabci commented 7 months ago

Your system information

gist attached

OS: Arch Linux x86_64 Host: MS-7D78 1.0 Kernel: 6.8.1-arch1-1 Packages: 659 (pacman) Resolution: 2560x1440 DE: Hyprland CPU: AMD Ryzen 7 7700X (16) @ 5.573GHz GPU: AMD ATI Radeon RX 7700 XT / 7800 XT

Please describe your issue in as much detail as possible:

The game crashes randomly while playing a match in dota. It can happen randomly after 1 min of gameplay or 20 mins of gameplay. The most I could get out of the game without it crashing with a segfault was 30 mins. Sometimes it crashes more than 4 times in a span of 10 minutes. I verified my game files multiple times. I also changed my operating system to Pop OS (Debian based), Nobara (Fedora based) and Arch Linux. The problem was consistent with all of these. I even tried adding 'WAYLAND_DISPLAY= %command% -vulkan' to my launch options. Did not help.

Steps for reproducing this issue:

  1. Start the game up normally.
  2. Play the game normally.
  3. Wait for it to crash.

The steam error on terminal and kernel dump attached, game-crash-report.zip

kisak-valve commented 7 months ago

For reference, the attached minidump is a SIGSEGV in libparticles.so.

arnabci commented 7 months ago

For reference, the attached minidump is a SIGSEGV in libparticles.so.

Is there a way to fix/patch it on my end?

Someone on here suggested running valgrind on the library path. Is this VAC safe?

ref, Steam Community Forum

idontbyte commented 5 months ago

Had the same thing, switched to Proton Experimental and DX11 no problems.

arnabci commented 2 weeks ago

This problem was fixed after the the vm.max_map_count parameter was increased from the default 65530 value to 1048576 on Arch Linux.

ref, https://archlinux.org/news/increasing-the-default-vmmax_map_count-value/

No more random crashes anymore. Apparently this change was pushed to all major Linux releases (I checked Fedora, SteamOS and Arch).

Thanks for your help @kisak-valve ! Cheers!