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.18k stars 263 forks source link

KDE X11 desktop crash when mixing MangoHud and __GL_SHARPEN_ENABLE=1 on OpenGL games #1027

Open GenocideStomper opened 1 year ago

GenocideStomper commented 1 year ago

Describe the bug If I run __GL_SHARPEN_ENABLE=1 mangohud %command% with CS:GO, the whole desktop crashes and puts me on the login screen for KDE Plasma. After this happens, the system does not react properly to opening new applications once logged in, and using TTY2 I'm stuck on the login. Shutdown and restart through the OS don't work, I have to power cycle. Note: I'm unsure if it's a KDE, MangoHud, nvidia or CS:GO issue. Unfortunately I can't write to log or find an error message elsewhere. I haven't tried this with other games, I'll update if I get around to testing more games.

List relevant hardware/software information

To Reproduce Steps to reproduce the behavior:

  1. (Maybe optional) Use KDE Plasma in X11 mode without compositor on an Arch-based distro and a Nvidia GPU
  2. Set the launch options for CS:GO on Steam as __GL_SHARPEN_ENABLE=1 mangohud %command%
  3. Launch CS:GO
  4. Black screen, then back to the login screen.

Expected behavior Not crash the desktop, show mangohud in CS:GO openGL mode with Nvidia sharpening enabled.

flightlessmango commented 1 year ago

Should be trivial to rule out mangohud, just try without mangohud

GenocideStomper commented 1 year ago

Should be trivial to rule out mangohud, just try without mangohud

I did. I can launch CS:GO with either no mangohud or no __GL_SHARPEN_ENABLE=1. It is only the combination of both that crashes my desktop.

GenocideStomper commented 1 year ago

I think I'm narrowing it down to native games using OpenGL. I just tried Superhot: Mind Control Delete, it also crashes with __GL_SHARPEN_ENABLE=1 mangohud %command%. CS:GO also uses OpenGL if the -vulkan flag isn't set.

Edit: Insurgency also uses OpenGL natively and also crashes with __GL_SHARPEN_ENABLE=1 mangohud %command%.

flightlessmango commented 1 year ago

Can you test again with latest git?

sund3RRR commented 6 months ago

A similar problem with nvidia + OpenGL + Mangohud + GNOME. Xorg is crushed while playing minecraft, power cycle is the only one solution to bring the computer back to life.

GenocideStomper commented 6 months ago

Can you test again with latest git?

Apologies, I must have missed the notification when you wrote your comment.

I assume you've committed the fix to master, because with Mangohud 0.7.0-2 in the Arch Linux "extra" repository, I'm not crashing with "Superhot: Mind Control Delete".

My assumption is that it's been fixed. I may try to test Insurgency when I have time, but if you don't hear back from me then just assume Insurgency isn't giving me any issues either. CS:GO as such doesn't exist anymore, so no need to test that.

I'll leave the issue open for now for @sund3RRR.

@sund3RRR: Which Mangohud version are you running?

sund3RRR commented 6 months ago

@sund3RRR: Which Mangohud version are you running?

Latest stable release 0.7.0