Skip to content

[Bug] Crash (double free) in libMangoHud_opengl.so when closing Oxygen Not Included (using no_display) #2105

Open

Description

@V4LG0D

Describe the bug

Hey!

I've been playing Oxygen Not Included (native) on Fedora Linux, and every time I close the game, it crashes. Fortunately, the game saves my progress just fine, but my system throws a coredump right after exiting.

For context, I am not using the visual overlay. I am only using MangoHud to cap my framerate with the following launch options in Steam:
MANGOHUD_CONFIG="fps_limit=90,no_display" mangohud %command%

Looking at the stack trace, it seems to be a tcache_double_free_verify issue triggered by libMangoHud_opengl.so during the game's shutdown process. It might be related to the no_display parameter during teardown.

Here is the crash report from systemd

Linux distribution

Fedora KDE Plasma

MangoHud version

0.8.3~rc1-

Version check

  • I have tested and can reproduce this on latest git.

GPU

RTX 4060 laptop

GPU driver

NVIDIA 610.43.03

MangoHud installation method

Distribution package (Fedora RPM)

Application installation method

Native package (Steam)

Steps to reproduce

Set Steam launch options for Oxygen Not Included to: MANGOHUD_CONFIG="fps_limit=90,no_display" mangohud %command%

Launch Oxygen Not Included.

Close the game normally from the game menu.

Observe the system coredump/crash from libMangoHud_opengl.so right after the game window closes.

Expected behavior

The game should close cleanly without triggering a double free memory error or a coredump in the system logs.

Logs and terminal output

PID: 6028 (OxygenNotInclud)
           UID: 1000 (valgod)
           GID: 1000 (valgod)
        Signal: 6 (ABRT)
     Timestamp: Tue 2026-08-04 14:18:35 CST (28s ago)
  Command Line: /home/valgod/.local/share/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded
    Executable: /home/valgod/.local/share/Steam/steamapps/common/OxygenNotIncluded/OxygenNotIncluded
 Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-steam@7cc0398e464042d1834e14607a02c658.service
          Unit: user@1000.service
     User Unit: app-steam@7cc0398e464042d1834e14607a02c658.service
         Slice: user-1000.slice
     Owner UID: 1000 (valgod)
       Boot ID: 791029be7d834aa6b0af093d62ca9934
    Machine ID: 3926d505b9394499a9f46f133bbde05c
      Hostname: 2806-106e-0016-950a-4647-2e48-bfaf-4509.ipv6.infinitum.net.mx
       Storage: /var/lib/systemd/coredump/core.OxygenNotInclud.1000.791029be7d834aa6b0af093d62ca9934.6028.1785874715000000.zst (present)
  Size on Disk: 656.5M
       Message: Process 6028 (OxygenNotInclud) of user 1000 dumped core.
                
                Module /run/host/usr/lib64/libdrm.so.2.134.0 from rpm libdrm-2.4.134-1.fc44.x86_64
                Module /run/host/usr/lib64/libxcb-randr.so.0.1.0 from rpm libxcb-1.17.0-7.fc44.x86_64
                Module /run/host/usr/lib64/libxcb-glx.so.0.0.0 from rpm libxcb-1.17.0-7.fc44.x86_64
                Module /run/host/usr/lib64/libspdlog.so.1.15.3 from rpm spdlog-1.15.3-4.fc44.x86_64
                Module /run/host/usr/lib64/libxkbcommon.so.0.13.1 from rpm libxkbcommon-1.13.1-2.fc44.x86_64
                Module /run/host/usr/lib64/libX11-xcb.so.1.0.0 from rpm libX11-1.8.13-1.fc44.x86_64
                Module /run/host/usr/lib64/libffi.so.8.2.0 from rpm libffi-3.5.2-2.fc44.x86_64
                Module /run/host/usr/lib64/libfmt.so.11.2.0 from rpm fmt-11.2.0-4.fc44.x86_64
                Module /run/host/usr/lib64/libsystemd.so.0.42.0 from rpm systemd-259.8-1.fc44.x86_64
                Module /run/host/usr/lib64/libwayland-client.so.0.25.0 from rpm wayland-1.25.0-1.fc44.x86_64
                Module /run/host/usr/lib64/libz.so.1.3.1.zlib-ng from rpm zlib-ng-2.3.3-3.fc44.x86_64
                Module /run/host/usr/lib64/libxcb-dri3.so.0.1.0 from rpm libxcb-1.17.0-7.fc44.x86_64
                Module /run/host/usr/lib64/libXfixes.so.3.1.0 from rpm libXfixes-6.0.1-7.fc44.x86_64
                Module /run/host/usr/lib64/libxcb.so.1.1.0 from rpm libxcb-1.17.0-7.fc44.x86_64
                Module /run/host/usr/lib64/libGLdispatch.so.0.0.0 from rpm libglvnd-1.7.0-9.fc44.x86_64
                Module /run/host/usr/lib64/libXext.so.6.4.0 from rpm libXext-1.3.6-5.fc44.x86_64
                Module /run/host/usr/lib64/libX11.so.6.4.0 from rpm libX11-1.8.13-1.fc44.x86_64
                Module /run/host/usr/lib64/libGLX.so.0.0.0 from rpm libglvnd-1.7.0-9.fc44.x86_64
                Module /run/host/usr/lib64/libGL.so.1.7.0 from rpm libglvnd-1.7.0-9.fc44.x86_64
                Module /run/host/usr/lib64/libXau.so.6.0.0 from rpm libXau-1.0.12-4.fc44.x86_64
                Module /run/host/usr/lib64/mangohud/libMangoHud_shim.so from rpm mangohud-0.8.3~rc1-2.fc44.x86_64
                Module libMangoHud_opengl.so from rpm mangohud-0.8.3~rc1-2.fc44.x86_64
                Module libsdkencryptedappticket.so without build-id.
                Module libmonobdwgc-2.0.so without build-id.
                Stack trace of thread 6095:
                #0  0x00007fa5b907bccc __pthread_kill_implementation (/run/host/usr/lib64/libc.so.6 + 0x74ccc)
                #1  0x00007fa5b9020e8e raise (/run/host/usr/lib64/libc.so.6 + 0x19e8e)
                #2  0x00007fa5b90087b3 abort (/run/host/usr/lib64/libc.so.6 + 0x17b3)
                #3  0x00007fa5b9009804 __libc_message_impl.cold (/run/host/usr/lib64/libc.so.6 + 0x2804)
                #4  0x00007fa5b908608c malloc_printerr (/run/host/usr/lib64/libc.so.6 + 0x7f08c)
                #5  0x00007fa5b908ab48 tcache_double_free_verify (/run/host/usr/lib64/libc.so.6 + 0x83b48)
                #6  0x00007fa4d4231eee _ZN14overlay_paramsD1Ev.lto_priv.0 (libMangoHud_opengl.so + 0x31eee)
                #7  0x00007fa4d4231116 _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE24_M_release_last_use_coldEv (libMangoHud_opengl.so + 0x31116)
                #8  0x00007fa4d42a452f _ZN6NVIDIA20get_samples_and_copyEv (libMangoHud_opengl.so + 0xa452f)
                #9  0x00007fa4d43cab06 execute_native_thread_routine (libMangoHud_opengl.so + 0x1cab06)
                #10 0x00007fa5b9079c19 start_thread (/run/host/usr/lib64/libc.so.6 + 0x72c19)
                #11 0x00007fa5b90fd5cc __clone3 (/run/host/usr/lib64/libc.so.6 + 0xf65cc)

Screenshots

No response

Additional context

No response

Activity

  1. added
    bug
    on Aug 4, 2026
  2. JROtto5 commented on Nov 25, 2026

    @JROtto5
    Contributor

    This looks like the same shutdown crash as #2223: the GPU polling thread (mangohud-nvidia in your trace) drops the last overlay_params reference after the global params were already destroyed, because the two globals lived in different files and had no fixed teardown order. #2130 fixed that order and is in v0.8.5-rc1, so it should be gone with that or current git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions