flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.39k stars 282 forks source link

MangoHUD causing CS2 to crash? #1341

Closed PacketAuditor closed 1 month ago

PacketAuditor commented 4 months ago

Describe the bug CS2 intermittently crashes upon startup or takes multiple attempts to start. When it does run, it crashes seemingly at random.

List relevant hardware/software information

To Reproduce Steps to reproduce the behavior:

  1. Open CS2 on Wayland with MangoHUD.
  2. Crash

Expected behavior No crash.

Steam logs: [MANGOHUD] [error] [nvctrl.cpp:56] XNVCtrl didn't find the correct display

/home/p/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/cs2.sh: line 118: 83140 Segmentation fault (core dumped) ${STEAM_RUNTIME_PREFIX} ${GAME_DEBUGGER} "${GAMEROOT}"/${GAMEEXE} "$@"

flightlessmango commented 4 months ago

What driver version are you on?

PacketAuditor commented 4 months ago

What driver version are you on?

555.42.02 KDE 6.1 Beta

Etaash-mathamsetty commented 4 months ago

CS2 on wayland is pretty crashy as is. (it crashes without mangohud too)

flightlessmango commented 4 months ago

@PacketAuditor Have tried to verify that it only crashes with mangohud?

flightlessmango commented 3 months ago

closing until more information is provided

laribA commented 2 months ago

Have tried to verify that it only crashes with mangohud?

I have, and can confirm that without MangoHUD (either through MANGOHUD=1 or mangohud), the game gets to the main menu just fine. Here's the log for when the game is launched with MangoHUD:

Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x55e1ebad0df0
Loaded libSDL3.so.0, got 0x55e1ebbf2f70
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x55e1ebab28e0
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x55e1ebc383b0
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x55e1ebc30a40
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x55e1ebc79080
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x55e1ebc797b0
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55e1ebc9e760
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55e1ebcb0d80

Without MangoHUD, the log file shows that these libraries and more are loading. The next library that loads in CS2 that does not load with MangoHUD is libmaterialsystem2.so. Running Fedora 40 KDE Wayland on an RTX 4060 Laptop with NVIDIA drivers.

flightlessmango commented 1 month ago

a full log with MANGOHUD_LOG_LEVEL=debug could be useful

PacketAuditor commented 1 month ago

I haven't been experiencing this lately. I am not sure if it was GPU driver related, Valve issue, or something else.

laribA commented 1 month ago

a full log with MANGOHUD_LOG_LEVEL=debug could be useful

Unfortunately nothing new comes up in the log :(

Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libengine2.so, got 0x55a48fd81df0
Loaded libSDL3.so.0, got 0x55a48fea3f70
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libtier0.so, got 0x55a48fd638e0
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libfilesystem_stdio.so, got 0x55a48fee9870
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libinputsystem.so, got 0x55a48fee1ed0
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/liblocalize.so, got 0x55a48ff2a620
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/librendersystemvulkan.so, got 0x55a48ff2ad50
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libresourcesystem.so, got 0x55a48ff4fd00
Loaded /home/art/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/bin/linuxsteamrt64/libschemasystem.so, got 0x55a48ff62320
flightlessmango commented 1 month ago

@laribA it doesn't seem like you have the same issue as OP. It would be best to start a new issue with all the information and repro cases etc