-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashing when enabled #1196
Comments
I have the same issue, though sometimes MangoHud works and sometimes it doesn't. It throws the exact same error for me. It seems that it most often doesn't work right after boot and while waiting for some time, it eventually shows up and works. |
I haven't been able to reproduce this yet. |
Just tested this with no config in I'll try and narrow down what is causing the crash. |
I commented out all the |
I'd also like to help resolve this error. But it's very strange that it seems to appear and disappear randomly. I'd like to provide logs or anything that might be helpful. |
I'm experiencing this when EDIT I tested this compiling 2 times with both before posting this, and then after posting, 3rd time trying with GCC LTO it worked just fine. Either I'm wrong and my results were just coincidence, and/or it's randomly intermittent as stated above. |
Great findings ! I think AUR package builds with GCC and LTO enabled, so that might explain why MangoHud crashes. I can confirm this only happens with fps_metrics enabled though. It would be nice if you could share these findings on MangoHud AUR repository, so the maintainer would remove GCC LTO flag when building the package ? Unless something can be done with MangoHud own source code to fix these compiling problems. |
I have been able to reproduce the crash. Using gamescope 3.13.16-1 and running Giving me the error I gave initially.
This caused the crash to happen 100% of the time. Commenting out |
Never mind doesn't happen 100% of the time. Somehow its no longer crashing with |
Yes, it doesn't happen all the time. It does happen almost always right after rebooting the system though. So definitely it's related to fps_metrics and GCC. Still, not sure what fix should be implemented here... Actually, same as the OP, I'm also using Radeon GPU with Mesa. I'm curious if this crash also occurs on Nvidia or Intel GPUs. |
I've been using the AUR version for a while now, which is now on version |
Mangohud should not be used with gamescope, it's not supported and any crashes are unlikely to be fixed. |
I'm not using gamescope and I still get the crashes. So it's definitely not related to gamescope. |
Are there any updates for this ? Still happens for me, fps_metrics enabled right after system reboot results in this error: |
I haven't been able to repro it. |
I built MangoHud as debugoptimized and captured a backtrace (running MangoHud with vkcube). I hope this could at least be a hint what's happening. |
Got round to running I'm not sure if this is the right way to use First I ran this in the terminal:
Then I ran Then I wasn't sure if this was correct but its what I did next:
Hope this helps. EDIT: When I finished this comment I tried again with |
This is with debug version of MangoHud, built with meson. Seems like output is still the same. After writing the comment, exact same behavior as @Kagukara observed - MangoHud works fine without crashing, I think the crashing stops at around 10 minutes of system uptime. |
check what |
Ah, yea my bad. Also for gdb, do you want the same as before but with |
I have compiled with the debug version and gotten the gdb backtrace.
|
Here is with
This was the last time it crashed before it started working again (only did these two within the 10mins), uptime of 10mins. |
Does this fix the crash d4a66cc ? |
Rebuilt with the commit, restarted PC and the fix seems to have fixed the crash. Thank you. |
I can confirm crash is also gone for me. Thanks ! |
it starts working after some time of mangohud running or the os running? |
After the OS running, like with the crash. Turning on your PC, opening a terminal and running |
Retested but running |
This should hopefully resolve the issue 3cee6f1 |
As for the NVML issue, double check that you actually have nvidia drivers for the architecture the application is |
It was because of sway-git, I got this when running
Also got this as well:
Looks like it had to do with swaywm/sway#7897 and/or swaywm/sway#7910? |
That seems to have fixed the problem. Thank you. |
Just got an update for mangohud-git from the AUR, now whenever I press the keybind to enable or when
no_display
is commented out, it crashed the program/game.Switching over to the non AUR package, programs/games do not crash.
List relevant hardware/software information
To Reproduce
Steps to reproduce the behavior:
mangohud glxgears
in the terminalmangohud
with your keybind or if you haveno_display
commented out glxgears will crash.Expected behavior
For the application to not crash and for MangoHud to show the statistics I want to see in the overlay.
The text was updated successfully, but these errors were encountered: