#2149·MangoHud

[Bug] MangoApp 0.8.4 aborts during exit after Gamescope stops

Author: johnpippettCreated Sep 23, 2026Updated Sep 23, 2026

Describe the bug

I closed Roboquest. Gamescope then stopped, and MangoApp stopped with SIGABRT during exit cleanup.

The core dump shows an X11 input/output error followed by exit, notify_thread::~notify_thread(), std::thread::~thread(), and std::terminate().

Linux distribution

Arch Linux with Omarchy 4.0.4-1; Hyprland 0.56.2-2 on Wayland; kernel 7.2.3-arch1-3.

MangoHud version

Arch package mangohud 0.8.4-1. Version 0.8.4 is the latest release at the time of this report.

Version check

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

I have not done a test with the latest Git revision.

Commit 0c16392297ffce1aee7cef771bbe786a33411500, notify: proper cleanup, appears to address this failure. It adds a notify_thread destructor that sets quit and joins the thread before member destruction. The commit is newer than the latest release, v0.8.4. I have not verified its effect with a test.

This report supplies a stack trace with function names for the affected release. It records the release failure that this newer cleanup code may correct.

GPU

Gamescope selected Intel(R) Graphics (LNL).

GPU driver

Mesa 1:26.2.2-1; vulkan-intel 1:26.2.2-1.

MangoHud installation method

Arch Linux package, installed with pacman.

Application installation method

Roboquest through Steam, application ID 692890. Steam is the native Arch package 1.0.0.87-3.

Steps to reproduce

  1. Start Roboquest through Steam with Gamescope and MangoApp.
  2. Close the game.
  3. Examine the system journal for a MangoApp core dump.

These steps describe this incident. I have not repeated the steps as a controlled test.

I have not collected the complete Steam launch command. The core dump records the MangoApp command as mangoapp.

Expected behavior

MangoApp stops without an abort or core dump when I close the game.

Logs and terminal output

The crash occurred on 2026-09-23 at 11:45:31 MST (UTC-07:00).

Journal excerpts, with the date, hostname, and Steam log prefix removed:

11:45:31.581109 [gamescope] [Info]  launch: Primary child shut down!
11:45:31.581594 [gamescopereaper] [Info]  reaper: Parent of gamescopereaper was killed. Killing children.
11:45:31.581741 (EE) failed to read Wayland events: Broken pipe
11:45:31.589011 X connection to :1 broken (explicit kill or server shutdown).
11:45:31.589890 terminate called without an active exception

Systemd recorded signal 6 (SIGABRT) for /usr/bin/mangoapp, PID 29784.

The executable build ID is 993a072be207f24713ce5297ca4c8453da39f3f0. Arch debug information for that build ID supplied the MangoApp function names.

Call sequence from the core dump, in execution order. This list omits intermediate frames:

main
render(GLFWwindow*, overlay_params&)
ImGui_ImplGlfw_NewFrame()
XGetWindowAttributes
_XReply
_XIOError
_XDefaultIOError
exit
notify_thread::~notify_thread()        src/notify.h:9
std::thread::~thread()
std::terminate()
__cxxabiv1::__terminate(void (*)())
__gnu_cxx::__verbose_terminate_handler()
abort
raise

The stack supports a failure during thread cleanup after the X display connection closes. A joinable thread destructor calls std::terminate().

The other five threads were sleeping or waiting for messages or a condition variable. The journal contains no out-of-memory kill or GPU reset near the crash.

Screenshots

None. The journal and core dump contain the failure data.

Additional context

Other package versions:

  • Gamescope: 3.16.28-1
  • GLFW: 1:3.5.1-1

The v0.8.2 release notes include a fix for MangoApp crashes when X11 disappears. This crash occurred with package 0.8.4-1. The available data does not establish whether the earlier defect has the same cause.

Issue #1284 describes MangoApp processes that remain after game exit. This incident produces an abort instead. The September 8 cleanup commit above is a closer match to this stack than that issue.

AI disclosure and validation

I used Codex (GPT-6) to help prepare this report. I closed the game myself. Codex examined the local journal, all core-dump thread stacks, package versions, and Arch debug information for the executable build ID. Those records are the basis for the proposed cause. Codex did no separate reproduction test or test of a fix.

Prepared and submitted with GPT-6 via Codex.

Source: flightlessmango/MangoHud