ValveSoftware / csgo-osx-linux

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

CS2 Case opening and tradeups crash the game #3315

Open cncz42 opened 9 months ago

cncz42 commented 9 months ago

Your system information

Please describe your issue in as much detail as possible:

Pretty much the title, opened a case and did a tradeup and both crashed right before getting the item, item still appeared in inventory after restart.

Steps for reproducing this issue:

  1. Launch game on linux (used "mangohud gamemoderun %command% -sdlaudiodriver pipewire +exec autoexec.cfg" as launch options)
  2. Open case or tradeup
  3. Crash

Issue has a monetary cost to reproduce, so no logs

b02860de585071a2 commented 9 months ago

Can confirm I'm experiencing the same issue. Does not appear to be a one-off.

af7567 commented 8 months ago

sysinfo: https://gist.github.com/af7567/2ea065fa36417b2a6c3c496496dd5f61 Slackware64-current Happened to me too the other day when doing a trade up and just now when opening a graffiti during a game. The game didn't crash and exit though, both times it just froze and I had to kill it. After restarting the game and reconnecting to the match I had my opened graffiti equipped but it wouldn't spray.

af7567 commented 8 months ago

I have loads of junk graffitis so did some testing and found that this crash is caused by mangohud for me. Removing mangohud from the launch options I can open+equip them without any problem. I am using mangohud 0.7.0 with nvidia 535.113.01 driver.

kisak-valve commented 8 months ago

Possibly mitigated by https://github.com/flightlessmango/MangoHud/commit/672d6481ccd06f9c7d88ada7ba58112e3936e2de.

af7567 commented 8 months ago

That fixed it. From looking at that commit it seems it won't set LD_PRELOAD for cs2 but will just set MANGOHUD=1. So for a quick test I changed my launch options to
MANGOHUD=1 %command% -sdlaudiodriver pipewire
and now I have mangohud and can also open graffitis :)

gort818 commented 8 months ago

I just pushed a new commit to make sure that script is posix compliant, we will be doing a new release soon, should fix all issues when using mangohud and cs2.

af7567 commented 5 months ago

I just updated to mangohud-0.7.1 and cs2 no longer crashes when using mangohud normally with the launch options mangohud %command%. Tested by opening 10 graffitis, with mangohud-0.6.9.1 it would crash on the first one.