MangoHud crashes with 'std::invalid_argument' exception
gnowo opened this issue · 23 comments
MangoHud crashes with a 'std::invalid_argument' exception related to 'stoul'. It runs without crashing when using the 'no_display' option, but fails to create any log files in either case.
Linux Distribution: Pop!_OS (up to date for stable)
MangoHud version: crash on v0.7.2-57-g77b3f36 built from source
GPU: NVIDIA GeForce RTX 4070 TI Super
NVIDIA Driver Version: 560.35.03
Steps to reproduce:
- Install MangoHud from source
- Run MANGOHUD_CONFIG=fps /usr/local/bin/mangohud glxgears
- Observe crash with 'std::invalid_argument' exception
MangoHud should run without crashing and display FPS information when using glxgears or other OpenGL applications. Also, Debugging flags (MANGOHUD_LOG=1, MANGOHUD_DEBUG=1) don't produce expected log files.
Can you try MANGOHUD_LOG_LEVEL=debug
and post the output
Running the following command:
:~$ MANGOHUD_CONFIG=fps,gpu_stats MANGOHUD_LOG_LEVEL=debug mangohud glxgears 2>&1 | tee mangohud_debug_2.log
:~$ tail mangohud_debug2.log
[2024-10-03 19:03:54.349] [MANGOHUD] [debug] [cpu.cpp:644] hwmon: sensor name: mt7921_phy0
[2024-10-03 19:03:54.349] [MANGOHUD] [debug] [cpu.cpp:644] hwmon: sensor name: amdgpu
[2024-10-03 19:03:54.350] [MANGOHUD] [debug] [gl_hud.cpp:132] vendor: NVIDIA Corporation, deviceName: NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2
[2024-10-03 19:03:54.350] [MANGOHUD] [debug] [gl_hud.cpp:154] GL device id: 0000
[2024-10-03 19:03:54.350] [MANGOHUD] [debug] [gl_hud.cpp:156] gpu: NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2
[2024-10-03 19:03:54.351] [MANGOHUD] [info] [gl_renderer.cpp:422] GL version: 4.6
[2024-10-03 19:03:54.364] [MANGOHUD] [debug] [inject_glx.cpp:115] GL ref count: 1
[2024-10-03 19:03:54.374] [MANGOHUD] [debug] [gl_renderer.cpp:296] glsl_version: 410
terminate called after throwing an instance of 'std::invalid_argument'
what(): stoul
Let me know if you need a more verbose output.
Can you get log again with this commit c8cfeb4?
updated commit 2732de1
removed MangoHud, updated to requested commit and rebuilt:
:$ git clone https://github.com/flightlessmango/MangoHud.git/MangoHud$ git checkout 2732de1
cd MangoHud
:
:~/MangoHud$ ./build.sh build
./build.sh package
./build.sh install
ran, logged and output afterward:
:/MangoHud$ mangohud --dlsym glxgears &> mangohud_log.txt/MangoHud$ cat mangohud_log.txt
Aborted (core dumped)
:
terminate called after throwing an instance of 'std::invalid_argument'
what(): stoul
can you run it with MANGOHUD_LOG_LEVEL=debug
again?
$ MANGOHUD_LOG_LEVEL=debug mangohud glxgears &> mangohud_log.txt
Aborted (core dumped)
$ cat mangohud_log.txt
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/gzeronone/.config/MangoHud/glxgears.x86_64-linux-gnu.conf' [ not found ]
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/etc/MangoHud.conf' [ not found ]
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/gzeronone/.config/MangoHud/MangoHud.conf' [ not found ]
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [overlay_params.cpp:1001] Failed to read presets file: '/home/gzeronone/.config/MangoHud/presets.conf'. Falling back to default presets
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/gzeronone/.config/MangoHud/glxgears.x86_64-linux-gnu.conf' [ not found ]
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/etc/MangoHud.conf' [ not found ]
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/gzeronone/.config/MangoHud/MangoHud.conf' [ not found ]
[2024-10-04 21:25:00.006] [MANGOHUD] [debug] [logging.cpp:244] Logger constructed!
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [overlay.cpp:845] Ram:31910060
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [overlay.cpp:846] Cpu:AMD Ryzen 7 7700X 8-Core Processor
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [overlay.cpp:847] Kernel:6.9.3-76060903-generic
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [overlay.cpp:848] Os:Pop!_OS 22.04 LTS
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [overlay.cpp:849] Driver:
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [overlay.cpp:850] CPU Scheduler:performance
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [cpu.cpp:518] hwmon: sensor name: k10temp
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [cpu.cpp:551] hwmon: using input: /sys/class/hwmon/hwmon2/temp1_input
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [cpu.cpp:644] hwmon: sensor name: k10temp
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [cpu.cpp:644] hwmon: sensor name: nvme
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [cpu.cpp:644] hwmon: sensor name: mt7921_phy0
[2024-10-04 21:25:00.015] [MANGOHUD] [debug] [cpu.cpp:644] hwmon: sensor name: amdgpu
[2024-10-04 21:25:00.016] [MANGOHUD] [debug] [gl_hud.cpp:132] vendor: NVIDIA Corporation, deviceName: NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2
[2024-10-04 21:25:00.016] [MANGOHUD] [debug] [gl_hud.cpp:154] GL device id: 0000
[2024-10-04 21:25:00.016] [MANGOHUD] [debug] [gl_hud.cpp:156] gpu: NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2
[2024-10-04 21:25:00.016] [MANGOHUD] [info] [gl_renderer.cpp:422] GL version: 4.6
[2024-10-04 21:25:00.031] [MANGOHUD] [debug] [inject_glx.cpp:115] GL ref count: 1
[2024-10-04 21:25:00.041] [MANGOHUD] [debug] [gl_renderer.cpp:296] glsl_version: 410
terminate called after throwing an instance of 'std::invalid_argument'
what(): stoul
it doesn't appear to be on the correct commit
okay, I had to wipe and rebuild. here's the correct version and debug output:
:/MangoHud$ mangohud --version/MangoHud$ cd ~
v0.7.2-62-g2732de1
:
:$ MANGOHUD_LOG_LEVEL=debug mangohud glxgears &> mangohud_log_2732de1.txt$ cat mangohud_log_2732de1.txt
Segmentation fault (core dumped)
:
[2024-10-05 10:18:40.633] [MANGOHUD] [debug] [overlay_params.cpp:762] Version: v0.7.2-62-g2732de1
[2024-10-05 10:18:40.633] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/gzeronone/.config/MangoHud/glxgears.x86_64-linux-gnu.conf' [ not found ]
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/etc/MangoHud.conf' [ not found ]
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/gzeronone/.config/MangoHud/MangoHud.conf' [ not found ]
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [overlay_params.cpp:1003] Failed to read presets file: '/home/gzeronone/.config/MangoHud/presets.conf'. Falling back to default presets
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/gzeronone/.config/MangoHud/glxgears.x86_64-linux-gnu.conf' [ not found ]
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/etc/MangoHud.conf' [ not found ]
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/home/gzeronone/.config/MangoHud/MangoHud.conf' [ not found ]
[2024-10-05 10:18:40.634] [MANGOHUD] [debug] [logging.cpp:244] Logger constructed!
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [overlay.cpp:845] Ram:31910060
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [overlay.cpp:846] Cpu:AMD Ryzen 7 7700X 8-Core Processor
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [overlay.cpp:847] Kernel:6.9.3-76060903-generic
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [overlay.cpp:848] Os:Pop!_OS 22.04 LTS
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [overlay.cpp:849] Driver:
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [overlay.cpp:850] CPU Scheduler:performance
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [cpu.cpp:515] hwmon: sensor name: k10temp
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [cpu.cpp:548] hwmon: using input: /sys/class/hwmon/hwmon2/temp1_input
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: k10temp
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: nvme
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: mt7921_phy0
[2024-10-05 10:18:40.642] [MANGOHUD] [debug] [cpu.cpp:641] hwmon: sensor name: amdgpu
[2024-10-05 10:18:40.643] [MANGOHUD] [debug] [gl_hud.cpp:132] vendor: NVIDIA Corporation, deviceName: NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2
[2024-10-05 10:18:40.643] [MANGOHUD] [debug] [gl_hud.cpp:154] GL device id: 0000
[2024-10-05 10:18:40.644] [MANGOHUD] [debug] [gl_hud.cpp:156] gpu: NVIDIA GeForce RTX 4070 Ti SUPER/PCIe/SSE2
[2024-10-05 10:18:40.644] [MANGOHUD] [info] [gl_renderer.cpp:422] GL version: 4.6
[2024-10-05 10:18:40.658] [MANGOHUD] [debug] [inject_glx.cpp:115] GL ref count: 1
[2024-10-05 10:18:40.662] [MANGOHUD] [debug] [gl_renderer.cpp:296] glsl_version: 410
[2024-10-05 10:18:40.677] [MANGOHUD] [debug] [nvidia.cpp:290] XNVCtrl is using display
So it's not crashing anymore?
I am still experiencing crashing.
:~$ mangohud glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
Segmentation fault (core dumped)
I am still experiencing crashing.
:~$ mangohud glxgears Running synchronized to the vertical refresh. The framerate should be approximately the same as the monitor refresh rate. Segmentation fault (core dumped)
try rebuilding from latest, all crashes I know of are fixed now