ValveSoftware / csgo-osx-linux

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

Map loading freezes the game #3828

Closed grasparv closed 1 month ago

grasparv commented 3 months ago

Your system information

Linux 6.1.33 debian with nvidia drivers

https://gist.github.com/grasparv/d4596296d5e0f5643bdcc425fb4a2045

https://gist.github.com/grasparv/0e6a5cdb1c2b934a2312f4b753c7d247

Please describe your issue in as much detail as possible:

The game freezes and I must stop it with pkill -9 cs2 while maps are loading. The progress bar stops, music keeps playing, but no map ever loads.

This used to happen like 10-20% of the time, but now it is like 75% with more recent releases. There was on release somewhere around may/june:ish that created the first 10-20% issue. The situation now (2024-08-24) was created by the later fixes around august or so.

Sometimes I can hear double music from different themes (menu + loading, a bit unsure) while the map is loading, as if there were two things going on at the same time. The progress bar usually freezes at around 80%-99%.

Sometimes the game loads fine. But it is rather unbearable to crash your game 5 times with pkill -9 before you get in.

It feels like a locking/race condition/concurrency kind of issue somehow.

Steps for reproducing this issue:

  1. Start basically any regular game, like casual bomb mode
  2. Watch how it freezes during map load
franciscot commented 1 month ago

Same here.

Manjaro kde and Nvidia drivers 550.107.02:

Operating System: Manjaro Linux KDE Plasma Version: 6.0.5 KDE Frameworks Version: 6.5.0 Qt Version: 6.7.2 Kernel Version: 6.10.6-10-MANJARO (64-bit) and 6.6 version too. Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-10750H CPU @ 2.60GHz Memory: 15.5 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1650/PCIe/SSE2 Manufacturer: LENOVO Product Name: 82AU System Version: Lenovo Legion 5 15IMH05

In other computer, same OS but with AMD GPU it doesn't happen.

grasparv commented 1 month ago

The recent release some weeks ago fixed this issue for me.

franciscot commented 1 month ago

It looks like a shader problem. The infinite loop starts when shaders are being created or loaded. I have deleted the shaders in the steam client and it no longer freezes.