MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

Changing font size has a chance to crash

Open Lassebq opened this issue 11 months ago • 1 comments

Describe the bug Changing font size in mangohud config when an application with hud enabled has a chance to crash said application

List relevant hardware/software information

  • Linux Distribution: Arch
  • MangoHud version: v0.8.0-rc2-2-g68fd1b0
  • GPU: AMD Radeon RX 580

To Reproduce Steps to reproduce the behavior:

  1. Comment out option font_size=30.
  2. Uncomment
  3. Proceed to step 1 if app/game didn't crash with hud enabled
[2025-02-04 21:54:47.949] [MANGOHUD] [debug] [overlay_params.cpp:797] Version: v0.8.0-rc2-2-g68fd1b0
/usr/include/c++/14.2.1/bits/stl_vector.h:1130: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Function; _Alloc = std::allocator<Function>; reference = Function&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
[2025-02-04 21:54:47.949] [MANGOHUD] [debug] [config.cpp:117] skipping config: '/usr/bin/MangoHud.conf' [ not found ]
zsh: IOT instruction (core dumped)  mangohud eglgears_wayland

Expected behavior Crash does not happen

Lassebq avatar Feb 04 '25 20:02 Lassebq

I might have resolved this in 0.8.1

flightlessmango avatar Mar 06 '25 12:03 flightlessmango