omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Hyprland 0.56.2 SIGSEGV during mouse-move callback dispatch on Omarchy dev

Open ADIBAINS opened this issue 1 month ago • 3 comments

System details

Intel Core i5-12450HX; Intel Alder Lake-S UHD Graphics [8086:468b]; Omarchy dev 4.0.0.r6942.gf5006bd-1; Hyprland 0.56.2-4; Linux 7.2.9-arch1-1; Wayland session managed by UWSM/start-hyprland; internal eDP-1 display at 1920×1080, 144 Hz, scale 1.25.

What's wrong?

Summary

My Hyprland session crashed with SIGSEGV on 13 October 2026 at 11:31:27 IST (06:01:27 UTC). The original input stack reaches CInputManager::onMouseMoved / mouseMoveUnified, then Hyprutils signal dispatch, then an unresolved callback at 0x7faa8c9381f0.

GDB's recorded mappings contain no mapping for that callback address. This is consistent with a stale callback into unloaded code or another invalid function pointer. The callback's owner and the underlying cause have not been confirmed.

omarchy-hyprland-titlebars 0.2.1-1 was installed the previous evening and is a candidate to investigate because it registers mouse-move listeners. However, I do not have proof that this plugin owned the callback, was loaded immediately before the crash, or was unloaded in the sequence that triggered it.

After the crash, start-hyprland restarted Hyprland in safe mode. The Omarchy shell was absent, leaving no bar or wallpaper. Loading/reloading my normal configuration alone did not restore those surfaces; omarchy restart shell did. I include this as a recovery observation, not as a confirmed second bug: some behavior may be intentional in safe mode.

Expected behavior

  • Pointer input should not crash the compositor or invalidate active signal callbacks.
  • If the failure is caused by a native plugin, its callback ownership/lifetime should be handled safely during cleanup and unloading.
  • After loading a corrected normal configuration during recovery, there should be a clear way to restore the Omarchy desktop shell without rebooting. Please clarify whether a manual shell restart is expected here.

Observed sequence and reproduction limits

This report describes one captured crash, not a deterministic reproduction:

  1. A normal Omarchy dev session was running under UWSM, with start-hyprland supervising Hyprland PID 1392.
  2. The session crashed during the mouse-motion input path shown in the backtrace below. The precise user gesture and any preceding layout/theme changes have not been reconstructed.
  3. Hyprland wrote ~/.cache/hyprland/hyprlandCrashReport1392.txt and systemd captured a core.
  4. The supervisor started replacement PID 50891 with --safe-mode.
  5. During recovery, Hyprland could accept IPC requests and run terminal windows, but there was no Quickshell process and no layer surfaces.
  6. A local workaround was added to prevent loading the suspected titlebar plugin, then hyprctl reload and hyprctl configerrors were run. Reload succeeded with no config errors, but this alone did not restore the shell.
  7. Running omarchy restart shell restored omarchy-background and omarchy-bar surfaces. Shell IPC returned ok. The compositor PID remained 50891.

I have not intentionally retriggered the crash, re-enabled the suspected plugin for an A/B comparison, or reproduced this with a clean/default configuration. The successful recovery is not evidence that the workaround fixes the original cause.

Crash evidence

PID:          1392
Signal:       11 (SIGSEGV), SEGV_MAPERR
Timestamp:    2026-10-13 11:31:27 IST
Command:      Hyprland --watchdog-fd 4
Executable:   /usr/bin/Hyprland
User service: [email protected]
Hyprland tag: v0.56.2
Commit:       efb50993780079460b0cbed1363e2166a2de1d9f

Relevant GDB frames, with long template names abbreviated for readability (the expandable backtrace.txt section below preserves the full output):

#0  0x00007faaa2f11f07 in ?? () from /usr/lib/libgcc_s.so.1
#1  _Unwind_Backtrace () from /usr/lib/libgcc_s.so.1
#2  backtrace () from /usr/lib/libc.so.6
#3  getBacktrace()
#4  CrashReporter::createAndSaveCrash(int)
#5  ?? ()
#6  <signal handler called>
#7  0x00007faa8c9381f0 in ?? ()
#8  std::_Function_handler<...CSignalT<Vector2D, Event::SCallbackInfo&>...>::_M_invoke(...)
#9  Hyprutils::Signal::CSignalListener::emitInternal(void*)
#10 Hyprutils::Signal::CSignalBase::emitInternal(void*)
#11 CInputManager::mouseMoveUnified(unsigned int, bool, bool, std::optional<Vector2D>)
#12 CInputManager::onMouseMoved(IPointer::SMotionEvent)
#13 ?? ()

Frames 0–5 are in crash-report/backtrace handling, so the top libgcc_s frame should not by itself be interpreted as the initial cause. The earlier fault context appears below the signal-handler boundary, at the unresolved callback in frame 7.

The kernel also recorded:

Hyprland[1392]: segfault at 7faa8c9381f0 ip 00007faaa2f11f07 sp 00007fff8dec8690 error 4 in libgcc_s.so.1[20f07,7faaa2ef5000+23000] likely on CPU 2 (core 4, socket 0)

No titlebars.so entry appeared in the core's shared-library or mapping lists. This does not establish that the plugin had been loaded and unloaded; it only limits what can be concluded from this core.

A targeted journal search around the crash found no OOM-kill or i915 GPU-hang/reset messages. Memory was not exhausted when checked afterward, although that check is not a measurement taken at the exact crash instant.

Relevant package versions and recent updates

omarchy-dev                 4.0.0.r6942.gf5006bd-1
omarchy-settings-dev        4.0.0.r6942.gf5006bd-1
hyprland                    0.56.2-4
omarchy-hyprland-titlebars   0.2.1-1
hyprutils                   0.14.2-1
hyprgraphics                0.5.1-4
hyprcursor                  0.1.13-7
hyprlang                    0.6.8-5
aquamarine                  0.15.1-1
mesa                        1:26.2.4-1
libgcc                      16.2.1+r23+gd564253eb6c8-1
quickshell                  0.3.2-4

The crash report lists matching build-time and runtime versions for Hyprgraphics, Hyprutils, Hyprcursor, Hyprlang, and Aquamarine.

Pacman history, all times IST:

  • 12 October, 22:50:27: Mesa updated from 26.2.2-1 to 26.2.4-1.
  • 12 October, 22:50:59: Hyprland updated from 0.56.2-2 to 0.56.2-4.
  • 12 October, 22:58:01: Omarchy dev 4.0.0.r6927.g4c1b4cb-1 installed, replacing the stable package.
  • 12 October, 22:59:16: omarchy-hyprland-titlebars 0.2.1-1 installed.
  • 13 October, 09:55:50: Omarchy dev updated to 4.0.0.r6942.gf5006bd-1.
  • 13 October, 11:31:27: Crash captured.

These changes are context, not proof of a regression in any one package.

Configuration context

The session uses the stock Omarchy Lua bootstrap/defaults plus personal overrides. It is not a clean-config reproduction.

Relevant customizations include:

  • Internal display mode/scale override described above.
  • Keyboard options: compose:caps,shift:both_capslock,grp:alts_toggle.
  • Print key launches omasnap, with a layer rule for its overlay.
  • XF86KbdLightOnOff unbound locally.
  • Two Voxtype-related bindings on Super+E and Super+M.

The user looknfeel.lua and autostart.lua inspected during diagnosis contained comments only. Omarchy's workspace-mode code loads /usr/lib/omarchy-hyprland-titlebars/titlebars.so when floating workspace mode requires titlebars, but the workspace/plugin state at the crash instant is unknown.

The installed plugin's v0.2.1 source registers a mouse-move listener. That makes it relevant to investigate, but does not tie it to the unresolved frame by itself.

Temporary workaround and recovery

A local Lua guard was placed after the Omarchy bootstrap and before loading defaults in ~/.config/hypr/hyprland.lua:

if not omarchy_original_plugin_load then
  omarchy_original_plugin_load = hl.plugin.load
end
hl.plugin.load = function(path, ...)
  if path == "/usr/lib/omarchy-hyprland-titlebars/titlebars.so" then
    return
  end
  return omarchy_original_plugin_load(path, ...)
end

Verification:

  • hyprctl reload returned ok.
  • hyprctl configerrors returned no errors.
  • Invoking the affected load path through the guard left hyprctl plugin list reporting no plugins loaded.
  • omarchy restart shell restored the missing desktop surfaces.
  • Shell IPC ping returned ok; the replacement compositor stayed alive during these checks.

This guard is a temporary local mitigation, not a proposed upstream fix. Added titlebars for floating workspaces are disabled. No long-term stability claim or causal A/B result is available.

Related reports checked

  • #10912: mouse-button/keybind path involving bad_any_cast / Lua dispatcher registration. The recorded stack differs from this mouse-motion signal callback failure.
  • #10957: dragging/floating transition involving CDwindleAlgorithm::movedTarget. Those frames do not appear in the available stack here.
  • #12799: missing Omarchy desktop after a crash restart, with similar “No config file found” logging. The recovery symptoms may overlap, but my replacement explicitly ran in safe mode; I have not established an environment-loss defect.

Please let me know whether this should be routed to the titlebar-plugin repository or Hyprland upstream, or added to an existing report once the callback owner is established.

Diagnostics and attachments

The template recommends omarchy-debug. On this dev build, the documented command was unavailable:

$ omarchy debug --no-sudo --print
Unknown Omarchy command: omarchy debug --no-sudo --print
Run 'omarchy commands --all' to discover available commands.

Text diagnostics included below:

  • hyprlandCrashReport1392.txt: original Hyprland crash report.
  • backtrace.txt: GDB backtrace excerpt with complete demangled frame names.
  • diagnostics.txt: package versions, kernel message, mapping observations, recovery evidence, and diagnostics-command result.

No screenshot or recording of the original failure was captured. The core remains available locally; it is not included in this public report.

hyprlandCrashReport1392.txt
--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
Calm down, it was a misinput! MISINPUT!

Hyprland received signal 11(SEGV)
Version: efb50993780079460b0cbed1363e2166a2de1d9f
Tag: v0.56.2
Date: Wed Aug 5 14:13:21 2026
Flags:

System info:
	System name: Linux
	Node name: omarchy
	Release: 7.2.9-arch1-1
	Version: #1 SMP PREEMPT_DYNAMIC Sat, 03 Oct 2026 11:43:28 +0000

GPU:
	00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-S [UHD Graphics] [8086:468b] (rev 0c) (prog-if 00 [VGA controller])


os-release:
	NAME="Omarchy"
	PRETTY_NAME="Omarchy"
	ID=omarchy
	ID_LIKE=arch
	BUILD_ID="4.0.0.r6942.gf5006bd"
	VERSION_ID="4.0.0.r6942.gf5006bd"
	ANSI_COLOR="38;2;158;206;106"
	HOME_URL="https://omarchy.org/"
	DOCUMENTATION_URL="https://learn.omacom.io/2/the-omarchy-manual"
	SUPPORT_URL="https://discord.gg/tXFUdasqhY"
	BUG_REPORT_URL="https://github.com/basecamp/omarchy/issues"
	LOGO=omarchy

Libraries:
Hyprgraphics: built against 0.5.1, system has 0.5.1
Hyprutils: built against 0.14.2, system has 0.14.2
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.8, system has 0.6.8
Aquamarine: built against 0.15.1, system has 0.15.1
backtrace.txt
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007faaa2f11f07 in ?? () from /usr/lib/libgcc_s.so.1
[Current thread is 1 (Thread 0x7faa9f35fe80 (LWP 1392))]
#0  0x00007faaa2f11f07 in ?? () from /usr/lib/libgcc_s.so.1
#1  0x00007faaa2f13f06 in _Unwind_Backtrace () from /usr/lib/libgcc_s.so.1
#2  0x00007faaa1d2c1a8 in backtrace () from /usr/lib/libc.so.6
#3  0x000055c33c8364f3 in getBacktrace() ()
#4  0x000055c33c75a9d4 in CrashReporter::createAndSaveCrash(int) ()
#5  0x000055c33c6307ee in ?? ()
#6  <signal handler called>
#7  0x00007faa8c9381f0 in ?? ()
#8  0x000055c33cbf672f in std::_Function_handler<void (void*), Hyprutils::Signal::CSignalT<Hyprutils::Math::Vector2D, Event::SCallbackInfo&>::mkHandler(std::function<void (Hyprutils::Math::Vector2D, Event::SCallbackInfo&)>)::{lambda(void*)#1}>::_M_invoke(std::_Any_data const&, void*&&) ()
#9  0x00007faaa393a1ad in Hyprutils::Signal::CSignalListener::emitInternal(void*) () from /usr/lib/libhyprutils.so.13
#10 0x00007faaa393a423 in Hyprutils::Signal::CSignalBase::emitInternal(void*) () from /usr/lib/libhyprutils.so.13
#11 0x000055c33c946e36 in CInputManager::mouseMoveUnified(unsigned int, bool, bool, std::optional<Hyprutils::Math::Vector2D>) ()
#12 0x000055c33c94fb91 in CInputManager::onMouseMoved(IPointer::SMotionEvent) ()
#13 0x000055c33c9e888e in ?? ()
diagnostics.txt
Crash: 2026-10-13 11:31:27 IST / 06:01:27 UTC
Original process: PID 1392, /usr/bin/Hyprland --watchdog-fd 4
Recovered process: PID 50891, Hyprland --watchdog-fd 4 --safe-mode
Session parent: PID 1387, /usr/bin/start-hyprland
CPU: 12th Gen Intel Core i5-12450HX
GPU: Intel Alder Lake-S UHD Graphics [8086:468b]
Kernel: 7.2.9-arch1-1

Package versions:
omarchy-dev 4.0.0.r6942.gf5006bd-1
omarchy-settings-dev 4.0.0.r6942.gf5006bd-1
hyprland 0.56.2-4
omarchy-hyprland-titlebars 0.2.1-1
hyprutils 0.14.2-1
hyprgraphics 0.5.1-4
hyprcursor 0.1.13-7
hyprlang 0.6.8-5
aquamarine 0.15.1-1
mesa 1:26.2.4-1
libgcc 16.2.1+r23+gd564253eb6c8-1
quickshell 0.3.2-4

Crash-time kernel message:
Hyprland[1392]: segfault at 7faa8c9381f0 ip 00007faaa2f11f07 sp 00007fff8dec8690 error 4 in libgcc_s.so.1[20f07,7faaa2ef5000+23000] likely on CPU 2 (core 4, socket 0)

Core mapping inspection:
The unresolved callback address 0x7faa8c9381f0 falls in no range listed by GDB info proc mappings.
Nearby mappings:
0x00007faa8c8f1000 0x00007faa8c901000 anon_inode:i915.gem
0x00007faa8c94a000 0x00007faa8c96a000 anon_inode:i915.gem
No titlebars.so entry appeared in GDB info sharedlibrary or info proc mappings.
This is consistent with a stale callback or invalid function pointer; the owning code and an unload event have not been established.

Recovery log excerpt:
DEBUG ]: [cfg] Config is either explicit or special.
DEBUG ]: [cfg] Config is lua, loading lua mgr
WARN ]: No config file found; attempting to generate.
A recoverycfg.lua file was generated under the recovered Hyprland instance directory.

Desktop restoration:
Before shell restart: no Quickshell process; no layer surfaces.
After omarchy restart shell: IPC ping returned ok; omarchy-background and omarchy-bar surfaces appeared.
The compositor PID remained 50891.

Diagnostics command:
$ omarchy debug --no-sudo --print
Unknown Omarchy command: omarchy debug --no-sudo --print
Run 'omarchy commands --all' to discover available commands.

Resource checks:
After the crash: about 5.9 GiB memory available, about 22 GiB swap free.
A targeted journal search around 11:29–11:32 IST found no OOM-kill or i915 GPU-hang/reset messages.
This is a limited check, not proof that every hardware or resource issue is excluded.

Filed by GPT-6 via Codex, at the reporter’s request. Root-cause hypotheses remain unconfirmed.

ADIBAINS avatar Oct 13 '26 06:10 ADIBAINS

Thanks for the careful write-up. A callback into unmapped memory from mouseMoveUnified does fit a plugin listener outliving its plugin. To narrow it down:

  1. From a normal session, the output of hyprctl plugin list and pacman -Qi omarchy-hyprland-titlebars | head -20.
  2. Does it happen again over a day or two with the titlebars plugin disabled? And with it enabled?
  3. Please attach the full ~/.cache/hyprland/hyprlandCrashReport1392.txt and coredumpctl info 1392.

If it tracks the plugin, the fix belongs in the plugin's package rather than in Hyprland. The shell not coming back in safe mode is worth its own issue once the crash is pinned down.

jandrusk avatar Oct 13 '26 16:10 jandrusk

Thanks for the detailed report and the core analysis. Here is what I checked, read from source rather than reproduced:

  • Hyprland v0.56.2 leaves a plugin's decoration alive on a hidden window when the plugin unloads. CPluginSystem::unloadPlugin asks each plugin decoration to be removed (src/plugins/PluginSystem.cpp:166) and then dlcloses the library (:188). The removal is queued and drained in CWindow::updateWindowDecos, which returns before draining when the window is unmapped or hidden (src/desktop/view/Window.cpp:385). A hidden window — one swallowed by a child terminal, or an XWayland window sized to 1×1 — therefore keeps its titlebar decoration after the code behind it is gone.
  • That decoration owns the mouse-move listener. In titlebars v0.2.1 the bar registers it in its constructor (barDeco.cpp:65), so the next pointer motion calls into unmapped memory from mouseMoveUnified, which matches your frames 7–11, the SEGV_MAPERR and the missing titlebars.so mapping in the core.
  • Omarchy's config unloads the plugin on any reload where no workspace floats. default/hypr/workspace-modes.lua only calls hl.plugin.load while something floats, and under the Lua config Hyprland unloads a plugin the config no longer asks for (updateConfigPlugins, PluginSystem.cpp:212). So floating a workspace, setting it back to tiling and reloading is a path to the unload. The comment above titlebars() says the opposite, that Hyprland keeps the plugin loaded.
  • Hyprland's main branch already drains pending removals before the hidden-window check (CWindowPresentation::updateDecorations), but no release carries it yet; v0.56.2 is the latest.
  • Your regression test in omacom/omarchy-hyprland-titlebars#2 exercises this exact sequence. I have not run it, and nothing here was reproduced on a worker.

No duplicate turned up in this repository, and no open pull request fixes it.

This was checked by Claude Opus 5.5 alone. The independent second opinion (Codex) did not run because today's review budget is spent, so the classification of this issue is unsettled and it carries no label yet. It is waiting on the maintainer, who decides where the fix belongs: the Hyprland package, the titlebars plugin, or the way Omarchy's config loads it.

omarchybot avatar Oct 22 '26 11:10 omarchybot

Same crash here, with two things the thread doesn't have yet: the dead callback attributed to titlebars from the core, and a reproduction on titlebars 0.2.2-2.

System: Omarchy 4.5.0rc1-1 (stable, not dev), Hyprland 0.56.2-4, hyprutils 0.14.2-1, omarchy-hyprland-titlebars 0.2.2-2, NVIDIA RTX 3080 Ti with nvidia-open 615.78.08.

Crash: 2026-10-22 17:41:39 UTC, SIGSEGV / SEGV_MAPERR, fault address 0x7f21461114f0. It happened a few seconds after Steam launched a Proton game (Red Dead Redemption 2). The path into mouseMoveUnified is the XWayland configure path, not real pointer motion:

#7  0x00007f21461114f0 in ?? ()
#8  std::_Function_handler<..., CSignalT<Vector2D, Event::SCallbackInfo&>::mkHandler(...)::{lambda(void*)#1}>::_M_invoke
#9  Hyprutils::Signal::CSignalListener::emitInternal(void*)
#10 Hyprutils::Signal::CSignalBase::emitInternal(void*)
#11 CInputManager::mouseMoveUnified(unsigned int, bool, bool, std::optional<Vector2D>)
#12 Desktop::View::CWindow::onX11ConfigureRequest(CBox)
...
#17 CXWM::handleConfigureRequest(xcb_configure_request_event_t*)
#18 CXWM::onEvent(int, unsigned int)

This fits the hidden XWayland window case described above: a game or launcher window that was never shown normally still had a decoration when the plugin unloaded.

Attributing the dead listener to titlebars. I walked the mouse-move signal's listener list in the core. There were four listeners. For each one I followed the inner std::function (_M_manager at +0x10, _M_invoker at +0x18):

listener _M_manager _M_invoker owner
1 in /usr/bin/Hyprland in /usr/bin/Hyprland Hyprland
2 0x7f2144c60b20 0x7f2144c7b850 another plugin, still mapped, resolves to its own mouse-move lambda
3 0x7f21461060a0 0x7f21461114f0 unmapped
4 0x7f21461060a0 0x7f21461114f0 unmapped

The two dead listeners share one manager/invoker pair. If the module was mapped at 0x7f21460db000, they land at file offsets 0x2b0a0 and 0x364f0 of the installed /usr/lib/omarchy-hyprland-titlebars/titlebars.so (0.2.2-2). That base address is exactly where the preceding /dev/nvidiactl mapping ends, and the gap that follows it in the core is unmapped. In that library:

  • 0x2b0a0 begins endbr64; test %edx,%edx, the usual start of a std::function _M_manager (it switches on the operation).
  • 0x364f0 begins endbr64; movsd (%rsi),%xmm0, which loads a Vector2D&& argument. It then tail-calls through the GOT slot at 0x68648, whose relocation is R_X86_64_GLOB_DAT COmarchyFloatingHyprBar::onMouseMove(Hyprutils::Math::Vector2D).

So the two dangling mouse-move listeners are two COmarchyFloatingHyprBar instances whose titlebars.so had already been unloaded. The other plugin in the session was still loaded and its listener was valid. titlebars.so was not loaded in the core, and right now hyprctl plugin list shows only the other plugin, which is consistent with titlebars having been unloaded by a config reload while nothing floated.

The 0.2.2 code still has the same lifetime problem, so the fix hasn't landed in the plugin or in Hyprland 0.56.2-4 yet.


Filed by Claude Opus 5.5 via Claude Code.

cgldotorg avatar Oct 22 '26 17:10 cgldotorg