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

CS2 Case opening and tradeups crash the game

Open cncz42 opened this issue 2 years ago • 7 comments

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist: https://gist.github.com/cncz42/f1feb5c2a104ad2d0dedc02b5e3a704e
  • Have you checked for system updates?: Yes

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

cncz42 avatar Sep 28 '23 16:09 cncz42

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

b02860de585071a2 avatar Oct 03 '23 04:10 b02860de585071a2

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 avatar Oct 22 '23 20:10 af7567

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.

af7567 avatar Oct 22 '23 21:10 af7567

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

kisak-valve avatar Oct 22 '23 21:10 kisak-valve

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 :)

af7567 avatar Oct 22 '23 21:10 af7567

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.

gort818 avatar Oct 23 '23 23:10 gort818

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.

af7567 avatar Feb 07 '24 19:02 af7567