MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

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

Open GenocideStomper opened this issue 2 years ago • 7 comments

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

  • endeavourOS
  • KDE Plasma, X11, compositor disabled
  • MangoHud version: 0.6.9.1-2
  • GPU: Nvidia GTX 1080, Driver Version: 530.41.03

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.

GenocideStomper avatar May 27 '23 03:05 GenocideStomper

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

flightlessmango avatar May 27 '23 04:05 flightlessmango

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 avatar May 27 '23 15:05 GenocideStomper

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%.

GenocideStomper avatar May 27 '23 15:05 GenocideStomper

Can you test again with latest git?

flightlessmango avatar Jul 23 '23 09:07 flightlessmango

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.

sund3RRR avatar Jan 25 '24 00:01 sund3RRR

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?

GenocideStomper avatar Jan 25 '24 02:01 GenocideStomper

@sund3RRR: Which Mangohud version are you running?

Latest stable release 0.7.0

sund3RRR avatar Jan 25 '24 09:01 sund3RRR