ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
775 stars 69 forks source link

CS2 crashed under Wayland after update (May 24) #3755

Open sr-tream opened 3 months ago

sr-tream commented 3 months ago

Your system information

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

PacketAuditor commented 3 months ago

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 commented 3 months ago

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

sr-tream commented 3 months ago

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.

itouchdennis commented 3 months ago

Seems to be a similar issue like:

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

Having also segmention errors and crashing game...

sr-tream commented 3 months ago

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.

TheGamerX20 commented 3 months ago

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?

itouchdennis commented 3 months ago

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

TheGamerX20 commented 3 months ago

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?

itouchdennis commented 3 months ago

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

hzmaya commented 2 months ago

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

chuxubank commented 2 weeks ago

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

sr-tream commented 2 weeks ago

@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

chuxubank commented 2 weeks ago

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

sr-tream commented 2 weeks ago

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