csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

CS2 crashed under Wayland after update (May 24)

Open sr-tream opened this issue 1 year ago • 16 comments

Your system information

  • System information: https://gist.github.com/sr-tream/8e5f62f36d18539b2af10f780b571e53
  • Steam Runtime Diagnostics: https://gist.github.com/sr-tream/f844c8f4234b28e62d7a373238b6ec51
  • Have you checked for system updates?: Yes

Steps for reproducing this issue:

  1. Set export SDL_VIDEO_DRIVER=wayland in cs2.sh
  2. Launch game
  3. Look at crash like this (same on beta 555 driver)

Driver 535 have semi different crash in libtier0.so, but I do not launch previous version with 535 driver

Coredump: https://nc.sr.team/s/FpWdfNWfM8YwnL5

sr-tream avatar May 25 '24 14:05 sr-tream

I just switched to export SDL_VIDEO_DRIVER=wayland in cs2.sh and it actually fixed every problem I was having. Viewmodels are now normal, and no more crashing upon tabbing back in.

I am using Wayland, Plasma 6.1 Beta, extra-testing and core-testing enabled.

OS: EndeavourOS Linux KERNEL: 6.9.1-arch1-2 CPU: AMD Ryzen 9 5900X 12-Core GPU: NVIDIA GeForce RTX 3080 GPU DRIVER: NVIDIA 555.42.02 RAM: 32 GB

PacketAuditor avatar May 25 '24 17:05 PacketAuditor

Also, OP, it looks like you are using Xorg, try switching to Wayland if you want to use export SDL_VIDEO_DRIVER=wayland.

PacketAuditor avatar May 25 '24 17:05 PacketAuditor

Also, OP, it looks like you are using Xorg, try switching to Wayland if you want to use export SDL_VIDEO_DRIVER=wayland.

I'm on Wayland session, and SDL_VIDEO_DRIVER is set to wayland in cs2.sh.

sr-tream avatar May 25 '24 19:05 sr-tream

Seems to be a similar issue like:

https://github.com/ValveSoftware/csgo-osx-linux/issues/3703

Having also segmention errors and crashing game...

itouchdennis avatar May 27 '24 09:05 itouchdennis

Seems to be a similar issue like:

#3703

Having also segmention errors and crashing game...

I don't see any messages about Wayland in #3703. And, for me, the Flatpak Steam version does not solve this problem.

sr-tream avatar May 27 '24 23:05 sr-tream

I can not launch the game in Wayland at all, changing SDL_VIDEO_DRIVER does not work either. On X11 the game works, but I have the Shakiness Bug as in #3746

any other way to make it work under Wayland?

TheGamerX20 avatar May 28 '24 10:05 TheGamerX20

I can not launch the game in Wayland at all, changing SDL_VIDEO_DRIVER does not work either.

On X11 the game works, but I have the Shakiness Bug as in #3746

any other way to make it work under Wayland?

It worked for me with the flatpak steam version under wayland - dunno why

itouchdennis avatar May 29 '24 09:05 itouchdennis

I can not launch the game in Wayland at all, changing SDL_VIDEO_DRIVER does not work either. On X11 the game works, but I have the Shakiness Bug as in #3746 any other way to make it work under Wayland?

It worked for me with the flatpak steam version under wayland - dunno why

I use the Arch Linux package not Flatpak, that could be the reason I guess?

TheGamerX20 avatar May 29 '24 21:05 TheGamerX20

I can not launch the game in Wayland at all, changing SDL_VIDEO_DRIVER does not work either.

On X11 the game works, but I have the Shakiness Bug as in #3746

any other way to make it work under Wayland?

It worked for me with the flatpak steam version under wayland - dunno why

I use the Arch Linux package not Flatpak, that could be the reason I guess?

Yeah I mean I have also the arch steam package parallel installed and have some issues here but I can't tell by the logs why the game isnt launching

itouchdennis avatar May 30 '24 05:05 itouchdennis

Have same problem. Can't run the game with Wayland.

hzmaya avatar Jun 15 '24 16:06 hzmaya

@sr-tream May I ask how do you get the crash log in https://gist.github.com/sr-tream/e736e851641856d6f4abda14d75fdcaf ?

chuxubank avatar Aug 22 '24 13:08 chuxubank

@sr-tream May I ask how do you get the crash log in https://gist.github.com/sr-tream/e736e851641856d6f4abda14d75fdcaf ?

In my system enabled coredumps.

Also, current CS2 version works fine under Wayland for me

sr-tream avatar Aug 22 '24 14:08 sr-tream

@sr-tream Get it, thanks for your quick reply.

I tried CS2 first time with x11 on Manjaro with Gnome, it works, but when I connect a second screen and setting 200% scale, the UI is hidden between the screens. I then switch to Wayland with this guide https://wiki.archlinux.org/title/GDM#Wayland_and_the_proprietary_NVIDIA_driver, /etc/modprobe.d/mhwd-gpu.conf

options nvidia NVreg_UsePageAttributeTable=1 NVreg_PreserveVideoMemoryAllocations=1
options nvidia_drm nvidia_drm.fbdev=1 modeset=1

add env

GBM_BACKEND=nvidia-drm
__GLX_VENDOR_LIBRARY_NAME=nvidia

this time it works well.

But I can not change SDL_VIDEO_DRIVER to wayland in cs2.sh, it just stuck at Steam's Running state. When not set SDL_VIDEO_DRIVER, it will crash with libpangocairo-1.0.so.0.4600.2.

chuxubank avatar Aug 22 '24 16:08 chuxubank

But I can not change SDL_VIDEO_DRIVER to wayland in cs2.sh, it just stuck at Steam's Running state.

You can attach debugger to cs2 process, pause execution and get backtrace for game threads, to get stuck place for bug reporting

sr-tream avatar Aug 23 '24 01:08 sr-tream

Hello! I've experienced a similar crash in CS2, but using AMD GPU. Below is my journal log when starting CS2 with export SDL_VIDEO_DRIVER=wayland set in cs2.sh. I'm using GNOME 47 with Wayland. Running CS2 with xwayland works fine (export SDL_VIDEO_DRIVER=x11).

Okt 06 18:52:16 arch steam[3638]: reaping pid: 50560 -- steam
Okt 06 18:52:17 arch steam[3638]: chdir "/mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive"
Okt 06 18:52:17 arch steam[3638]: ERROR: ld.so: object '/home/$username/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Okt 06 18:52:17 arch steam[3638]: ERROR: ld.so: object '/home/$username/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Okt 06 18:52:17 arch steam[3638]: ERROR: ld.so: object '/home/$username/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Okt 06 18:52:17 arch steam[3638]: ERROR: ld.so: object '/home/$username/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Okt 06 18:52:17 arch steam[3638]: ERROR: ld.so: object '/home/$username/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Okt 06 18:52:17 arch steam[3638]: Adding process 50689 for gameID 730
Okt 06 18:52:17 arch steam[3638]: Adding process 50690 for gameID 730
Okt 06 18:52:17 arch steam[3638]: Adding process 50691 for gameID 730
Okt 06 18:52:17 arch steam[3638]: pid 50781 != 50780, skipping destruction (fork without exec?)
Okt 06 18:52:17 arch steam[3638]: basename: extra operand 'Offensive/game/cs2.sh'
Okt 06 18:52:17 arch steam[3638]: Try 'basename --help' for more information.
Okt 06 18:52:17 arch steam[3638]: pid 50783 != 50780, skipping destruction (fork without exec?)
Okt 06 18:52:17 arch steam[3638]: Adding process 50780 for gameID 730
Okt 06 18:52:18 arch steam[3638]: Loaded /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x616bbe7d7b30
Okt 06 18:52:18 arch steam[3638]: Adding process 50782 for gameID 730
Okt 06 18:52:18 arch steam[3638]: Using breakpad crash handler
Okt 06 18:52:18 arch steam[3638]: Adding process 50784 for gameID 730
Okt 06 18:52:18 arch steam[3638]: [S_API] SteamAPI_Init(): Loaded '/home/$username/.local/share/Steam/linux64/steamclient.so' OK.
Okt 06 18:52:18 arch steam[3638]: Setting breakpad minidump AppID = 730
Okt 06 18:52:18 arch steam[3638]: Forcing breakpad minidump interfaces to load
Okt 06 18:52:18 arch steam[3638]: Looking up breakpad interfaces from steamclient
Okt 06 18:52:18 arch steam[3638]: Calling BreakpadMiniDumpSystemInit
Okt 06 18:52:18 arch steam[3638]: 10/06 18:52:18 minidumps folder is set to /tmp/dumps
Okt 06 18:52:18 arch steam[3638]: 10/06 18:52:18 Init: Installing breakpad exception handler for appid(730)/version(9234295)/tid(50785)
Okt 06 18:52:18 arch steam[3638]: Looking up breakpad interfaces from steamclient
Okt 06 18:52:18 arch steam[3638]: Calling BreakpadMiniDumpSystemInit
Okt 06 18:52:18 arch steam[3638]: SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  <id> [API loaded yes]
Okt 06 18:52:18 arch steam[3638]: SteamInternal_SetMinidumpSteamID:  Setting Steam ID:  <id>
Okt 06 18:52:18 arch steam[3638]: Setting breakpad minidump AppID = 2347771
Okt 06 18:52:18 arch steam[3638]: Loaded libSDL3.so.0, got 0x616bbe8fcf70
Okt 06 18:52:18 arch steam[3638]: Loaded /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x616bbe7b6cb0
Okt 06 18:52:18 arch steam[3638]: Loaded /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x616bbe946720
Okt 06 18:52:18 arch steam[3638]: Loaded /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x616bbe98e250
Okt 06 18:52:18 arch steam[3638]: Loaded /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x616bbe964510
Okt 06 18:52:18 arch steam[3638]: Loaded /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x616bbe945dd0
Okt 06 18:52:18 arch steam[3638]: Loaded /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x616bbe906770
Okt 06 18:52:18 arch steam[3638]: Loaded /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x616bbe963a70
Okt 06 18:52:18 arch steam[3638]: Adding process 50785 for gameID 730
Okt 06 18:52:18 arch steam[3638]: Adding process 50786 for gameID 730
Okt 06 18:52:18 arch steam[3638]: ATTENTION: default value of option radv_override_graphics_shader_version overridden by environment.
Okt 06 18:52:18 arch steam[3638]: Adding process 50787 for gameID 730
Okt 06 18:52:18 arch rtkit-daemon[2057]: Successfully made thread 50805 of process 50785 owned by '1000' high priority at nice level -15.
Okt 06 18:52:18 arch rtkit-daemon[2057]: Successfully made thread 50807 of process 50785 owned by '1000' high priority at nice level -15.
Okt 06 18:52:18 arch rtkit-daemon[2057]: Successfully made thread 50809 of process 50785 owned by '1000' high priority at nice level -15.
Okt 06 18:52:18 arch steam[3638]: Fontconfig error: Cannot load default config file
Okt 06 18:52:18 arch steam[3638]: (process:50785): GLib-GObject-WARNING **: 18:52:18.339: specified class size for type 'PangoCairoFcFont' is smaller than the parent type's 'PangoFcFont' class size
Okt 06 18:52:18 arch steam[3638]: (process:50785): GLib-GObject-CRITICAL **: 18:52:18.339: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
Okt 06 18:52:18 arch steam[3638]: (process:50785): GLib-CRITICAL **: 18:52:18.339: g_once_init_leave: assertion 'result != 0' failed
Okt 06 18:52:18 arch steam[3638]: (process:50785): GLib-GObject-CRITICAL **: 18:52:18.339: g_object_new_valist: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
Okt 06 18:52:18 arch steam[3638]: crash_20241006185218_2.dmp[50842]: Uploading dump (out-of-process)
Okt 06 18:52:18 arch steam[3638]: /tmp/dumps/crash_20241006185218_2.dmp
Okt 06 18:52:18 arch kernel: cs2[50785]: segfault at 78 ip 00007ab7fe15a9a8 sp 00007fff4deca930 error 6 in libpangocairo-1.0.so.0.4600.2[79a8,7ab7fe158000+7000] likely on CPU 19 (core 3, socket 0)
Okt 06 18:52:18 arch kernel: Code: ff ff 41 56 41 55 4d 89 cd 41 54 49 89 cc 55 4c 89 c5 53 48 89 fb 48 83 ec 40 64 48 8b 04 25 28 00 00 00 48 89 44 24 38 31 c0 <48> 89 37 49 89 e6 89 57 24 bf 68 00 00 00 e8 35 dc ff ff 8b 7b 24
Okt 06 18:52:18 arch systemd-coredump[50843]: Process 50785 (cs2) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Okt 06 18:52:18 arch systemd[1]: Started Process Core Dump (PID 50843/UID 0).
Okt 06 18:52:18 arch steam[3638]: Adding process 50841 for gameID 730
Okt 06 18:52:19 arch systemd-coredump[50845]: [🡕] Process 50785 (cs2) of user 1000 dumped core.
                                               
                                               Stack trace of thread 50785:
                                               #0  0x00007ab7fe15a9a8 n/a (/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.4600.2 + 0x79a8)
                                               #1  0x0000000000000000 n/a (n/a + 0x0)
                                               ELF object binary architecture: AMD x86-64
Okt 06 18:52:20 arch systemd[1]: [email protected]: Deactivated successfully.
Okt 06 18:52:20 arch systemd[1]: [email protected]: Consumed 1.569s CPU time, 783.9M memory peak.
Okt 06 18:52:20 arch steam[3638]: /mnt/games/SteamLibrary/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh: line 98: 50785 Segmentation fault      (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"
Okt 06 18:52:20 arch steam[3638]: crash_20241006185218_2.dmp[50842]: Finished uploading minidump (out-of-process): success = yes
Okt 06 18:52:20 arch steam[3638]: crash_20241006185218_2.dmp[50842]: response: Discarded=1
Okt 06 18:52:20 arch steam[3638]: crash_20241006185218_2.dmp[50842]: file ''/tmp/dumps/crash_20241006185218_2.dmp'', upload yes: ''Discarded=1''
Okt 06 18:52:20 arch steam[3638]: pid 50842 != 50841, skipping destruction (fork without exec?)

MaxXor avatar Oct 07 '24 06:10 MaxXor

For me it runs fine on plasma wayland session (except for that color bug), but it doesnt launch on gnome (47) at all and segfaults. Using nvidia (proprietary v.560) and steam in flatpak.

Update: launches wayland native after adding SDL_VIDEO_WAYLAND_ALLOW_LIBDECOR=0. The mouse cursor issue remains though

dineshdevkota001 avatar Oct 12 '24 19:10 dineshdevkota001