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.47k stars 287 forks source link

0.7.1 Failed to read presets file #1229

Closed JupiterRider closed 6 months ago

JupiterRider commented 8 months ago

Describe the bug Since 0.7.1 I get the following error: [2024-02-11 17:50:05.618] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/home/jupiterrider/.config/MangoHud/presets.conf'

List relevant hardware/software information

Expected behavior Having a presets.conf should be optional. So this should not be an error.

flightlessmango commented 8 months ago

The preset error is not an actual error, it will not be the cause of a crash and the error will be removed

flightlessmango commented 8 months ago

Please create a separate issue for that

FrankeyUser commented 8 months ago

i have many errors

$mangohud glxgears

and show that: [2024-02-26 22:15:57.446] [MANGOHUD] [error] [overlay_params.cpp:1009] Failed to read presets file: '/home/frank/.config/MangoHud/presets.conf' [2024-02-26 22:15:59.494] [MANGOHUD] [error] [cpu.cpp:665] Failed to initialize CPU power data [2024-02-26 22:15:59.592] [MANGOHUD] [error] [loader_nvml.cpp:42] Failed to open 64bit libnvidia-ml.so.1: libnvidia-ml.so.1: cannot open shared object file: No such file or directory [2024-02-26 22:15:59.592] [MANGOHUD] [error] [nvml.cpp:45] Failed to load NVML [2024-02-26 22:15:59.877] [MANGOHUD] [error] [nvctrl.cpp:56] XNVCtrl didn't find the correct display

flightlessmango commented 8 months ago

Follow the issue template please, need much more information

ForeverZer0 commented 7 months ago

The preset error is not an actual error, it will not be the cause of a crash and the error will be removed

While it appears this was split from a larger issue, and some context is missing with more going on here, just on the "logging a non-error as an error" topic, is this the desired behavior? From a logging standpoint, it could be argued that this would barely qualify as a log-worthy event, least of all a warning or an error entry. It is admittedly a nitpick, but mildly annoying to see a "error that isn't really an error" message in an otherwise error-free run from the terminal.

flightlessmango commented 6 months ago

"logging a non-error as an error" topic, is this the desired behavior?

No like I said, it was going to be removed and it has been removed. Please follow the issue template and create a new issue if the other issue is still present

ryanmusante commented 6 months ago

Apr 08 16:22:48 xmg org.gnome.Shell.desktop[1146]: [2024-04-08 16:22:48.236] [MANGOHUD] [error] [overlay_params.cpp:1003] Failed to read presets file: '/var/lib/gdm/.config/MangoHud/presets.conf'

~ > \cat /etc/environment | grep -i mangohud MANGOHUD_CONFIGFILE=/home/ryan/.config/mangohud/mangohud.conf

Presets file or config file?