KDE X11 desktop crash when mixing MangoHud and __GL_SHARPEN_ENABLE=1 on OpenGL games
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:
- (Maybe optional) Use KDE Plasma in X11 mode without compositor on an Arch-based distro and a Nvidia GPU
- Set the launch options for CS:GO on Steam as
__GL_SHARPEN_ENABLE=1 mangohud %command% - Launch CS:GO
- 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.
Should be trivial to rule out mangohud, just try without mangohud
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.
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%.
Can you test again with latest git?
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.
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: Which Mangohud version are you running?
Latest stable release 0.7.0