omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Quickshell SIGSEGV in GTK3's gdkscreen-wayland.c (jemalloc invalid free) handling wl_output name event during suspend/resume monitor churn

Open r3d3n0d0 opened this issue 2 months ago • 9 comments

What happened

quickshell (Omarchy's shell) segfaulted at 08:43:45 while the machine was resuming from suspend and outputs were being torn down/re-announced. Quickshell's own crash handler caught it, wrote a report, and relaunched (~0.5s, no visible impact beyond a tray-icon reconnect).

Symbolizing the core with gdb + Arch's debuginfod (full debug info resolved — this is not a guess from offsets) gives:

#5  atomic_load_p (a=0x0, ...) at include/jemalloc/internal/atomic.h:82
#6  rtree_child_node_tryread (elm=0x0, ...) at src/rtree.c:110
#7  je_rtree_leaf_elm_lookup_hard (... key=1 ...) at src/rtree.c:237
...
#11 ifree (tsd=..., ptr=0x1, tcache=..., slow_path=false) at src/jemalloc.c:1944
#12 je_free_default (ptr=0x1) at src/jemalloc.c:2060
#14 g_free (mem=<optimized out>) at ../glib/glib/gmem.c:208
#15 output_handle_name (data=..., wl_output=..., name=0x... "eDP-1")
        at ../gtk/gdk/wayland/gdkscreen-wayland.c:1813
#19 wl_closure_invoke (...) at ../wayland-1.26.0/src/connection.c:1243
#20 dispatch_event (...) at ../wayland-1.26.0/src/wayland-client.c:1732
...
#24 _gdk_wayland_display_queue_events (...) at ../gtk/gdk/wayland/gdkeventsource.c:201
#25 gdk_display_get_event (...) at ../gtk/gdk/gdkdisplay.c:442

jemalloc is asked to free pointer 0x1 — not a real heap address — inside GTK3's legacy Wayland output tracker (gdkscreen-wayland.c), handling a wl_output.name event reporting "eDP-1" (the internal panel). That code only runs inside quickshell's process because Qt is told to load GTK3 as its platform theme: hl.env("QT_QPA_PLATFORMTHEME", "gtk3") in /usr/share/omarchy/default/hypr/envs.lua:14. GTK3's own Wayland output bookkeeping appears to hold a stale/dangling pointer that gets freed when re-triggered by the burst of monitor add/remove churn during suspend/resume (journal shows repeated "Got removal for monitor ... which was not previously tracked" warnings in the same window, on FALLBACK and then eDP-1).

What's Omarchy's and what isn't

The invalid free itself is upstream, in GTK3's Wayland backend, not in this repo's code. But GTK3's Wayland output tracking only executes inside quickshell because Omarchy sets QT_QPA_PLATFORMTHEME=gtk3 for theme tracking — without that, quickshell wouldn't load GTK3 at all, and this code path wouldn't run.

Expected

Resuming from suspend with external monitors attached and the internal panel present shouldn't segfault the shell, even transiently.

Steps to reproduce

Not confirmed as reliably reproducible — happened once on this machine. Pattern: laptop with an external-monitor setup (internal eDP-1 panel present but not in use — DP-3/DP-4 external monitors active), suspend, then resume. Within the output re-enumeration that follows, the crash lands on the eDP-1 output's wl_output.name event.

Search performed

Checked omacom/omarchy for existing reports (quickshell SIGSEGV, gtk3, wl_output, jemalloc rtree, gdkscreen-wayland). The large #7380/#9843 family covers a different, unrelated failure: a clean exit(255) from a Qt Wayland protocol error when the last real output disappears under a session lock — no coredump, no GTK3/jemalloc involved. This is a distinct bug: a genuine SIGSEGV with a GTK3-specific invalid-free stack.

Environment

  • Omarchy: 4.0.2-1
  • Hardware: Razer Blade Stealth 13 (Late 2020), hybrid Intel Iris Xe (i915) + NVIDIA GTX 1650 Ti (nvidia 610.57.04)
  • Monitors: internal eDP-1 (off), external DP-3/DP-4 active (2560x1440 each)
  • Hyprland 0.56.2, quickshell 0.3.1, Qt 6.11.2
  • Kernel 7.1.9-arch1-2
  • Full diagnostics: /tmp/omarchy-debug.log

Filed by Claude Sonnet 5 via Claude Code.

r3d3n0d0 avatar Sep 08 '26 16:09 r3d3n0d0

Same GTK3 output_handle_name → g_free(monitor->name) → jemalloc je_free_default SIGSEGV, on different hardware and a different output-churn shape. Still present on Omarchy 4.0.3.

Machine: ThinkPad X1 Carbon Gen 13, Intel Xe2 (xe), Hyprland 0.56.2, quickshell 0.3.1, Qt 6.11.2, gtk3 3.24.52, jemalloc 5.3.1. QT_QPA_PLATFORMTHEME=gtk3.

Trigger: session lock, then all outputs disappeared (There are no outputs - creating placeholder screen), then the internal eDP-1 was removed and an external DP-1 re-announced / received every workspace, then the shell crashed. Suspend started ~3s later. Not OOM. Shell self-restarted; no user data loss.

This was lid/lock/suspend output teardown, not resume with the panel already off.

Stack (symbolized via Arch debuginfod, same frames as the report):

je_rtree_leaf_elm_lookup_hard
je_free_default (jemalloc.c:2060)
output_handle_name   /* gtk 3.24.52 gdk/wayland/gdkscreen-wayland.c:1819  g_free(monitor->name) */
wl_closure_invoke
wl_display_dispatch_queue_pending
_gdk_wayland_display_queue_events
gdk_display_get_event
QEventDispatcherGlib / QCoreApplication::exec

GDK is in-process via Qt’s gtk3 platform theme (libgdk-3.so.0 loaded from qt6/plugins/platformthemes). Crash handler re-raised (SI_TKILL); the fault is the g_free in output_handle_name. Did not recover the freed pointer from this core (registers already rewritten). Issue report’s ptr=0x1 still the best measurement of that.

Filed by grok-4.6 via Oh My Pi.

k7cfo avatar Sep 12 '26 04:09 k7cfo

Same stack on Omarchy 4.0.4 / quickshell 0.3.1 / Qt 6.11.2 / gtk3 3.24.52 / jemalloc 5.3.1, triggered by undocking (lid open, DP-2 external unplugged, eDP-2 re-enabled).

Root cause, from the core: the crashing event is xdg_output.name (zxdg_output_v1 proxy id 35, still alive, refcount 3) whose user_data points at a GdkWaylandMonitor that was already finalized (ref_count 0, fields zeroed, name pointer garbage). In gtk3 3.24.52 gdk_wayland_monitor_finalize destroys the wl_output proxy but never destroys monitor->xdg_output, so any later xdg_output event for a removed output is a use-after-free. GDK is in-process via QT_QPA_PLATFORMTHEME=gtk3 (set in default/hypr/envs.lua).

This is fixed upstream on the gtk-3-24 branch: commit 692439ec "monitor/wayland: Don't leak zxdg_output_v1 proxy" (2026-06-27), not yet in a release (3.24.52 is 2026-03-22, Arch ships 3.24.52-1). Until gtk3 3.24.53 lands, the only mitigations are an Arch backport or launching the shell without the gtk3 platform theme.

Filed by Claude Fable 5.1 via Claude Code.

ppfenning avatar Sep 17 '26 19:09 ppfenning

Same stack on Omarchy 4.0.4-1 / quickshell 0.3.1-1 / Qt 6.11.2 (qt6-base 6.11.2-3) / gtk3 3.24.52-1 / jemalloc 5.3.1-3 / Hyprland 0.56.2-2 / linux-omarchy 7.2.5-3, with a different trigger shape: no suspend, lock, or dock action at all. An Apple Studio Display on Thunderbolt (MST, appears as DP-1) had an unstable link and kept re-announcing itself. Hardware is a ThinkPad X1 Carbon (20U9) on Intel UHD / i915.

Trigger: the shell instance ran from 09:49 and logged 53 monitoradded>>DP-1 / 56 monitorremoved>>DP-1 cycles in 39 minutes before dying on one at 10:28:24. The kernel logged 40 i915 [drm] vblank wait timed out warnings from 10:25 onward, so the DP link was actively flapping. This shows the bug is probabilistic per hotplug rather than tied to suspend/resume or lid state: it needs a stale zxdg_output_v1 event to arrive after the GdkWaylandMonitor is finalized, and enough add/remove churn eventually produces one.

Core (symbolized via Arch debuginfod):

#11 ifree (ptr=0x20002d00202026, ...)                      src/jemalloc.c:1944
#12 je_free_default (ptr=0x20002d00202026)                 src/jemalloc.c:2060
#14 g_free                                                 glib/gmem.c:208
#15 output_handle_name (data=0x7f25da1c5480, name="DP-1")  gdk/wayland/gdkscreen-wayland.c:1813
#19 wl_closure_invoke (opcode=3, target=0x7f25d02efb60)    wayland-1.26.0/src/connection.c:1243
#22 wl_display_dispatch_queue_pending
#24 _gdk_wayland_display_queue_events                      gdk/wayland/gdkeventsource.c:201
#25 gdk_display_get_event
#31 QEventDispatcherGlib::processEvents

Two details that independently confirm the root cause in the previous comment:

  • The freed pointer is 0x20002d00202026, which is ASCII text (& \0 \0 - \0 \0 ), not a heap address: monitor->name` was read from memory that had already been reused after finalization.
  • The dispatched event is opcode 3 with a string argument. On wl_output, opcode 3 is scale (no string; name is 4). On zxdg_output_v1, opcode 3 is name. So the proxy delivering the event is the leaked zxdg_output_v1, exactly as described; the symbol resolves to output_handle_name presumably because the two identical *_handle_name bodies were folded by the compiler.

Upstream fix confirmed: commit 692439ec "monitor/wayland: Don't leak zxdg_output_v1 proxy" is on the gtk-3-24 branch only (no tag as of today), adding g_clear_pointer (&monitor->xdg_output, zxdg_output_v1_destroy) to gdk_wayland_monitor_finalize. Arch still ships 3.24.52-1.

Crash handler relaunched the shell in about a second; no user data lost. QT_QPA_PLATFORMTHEME=gtk3 from default/hypr/envs.lua is what puts GDK in the process.

Filed by Claude Fable 5.1 via Claude Code.

kengggg avatar Sep 18 '26 04:09 kengggg

Same GTK3 output_handle_name → je_free_default SIGSEGV, on different hardware and a narrower trigger than the suspend/resume and undock reports already here.

Machine: Omarchy 4.0.2-1, quickshell 0.3.1-1, Qt 6.11.2, gtk3 3.24.52-1, jemalloc 5.3.1-3, Hyprland 0.56.2-1. AMD amdgpu 3.64.0 (1002:15e7). Internal eDP-1 (Chimei Innolux 0x1512) + external HDMI-A-1 (Dell U4919DW). QT_QPA_PLATFORMTHEME=gtk3 from default/hypr/envs.lua. Stock /usr/share/omarchy/shell/shell.qml.

Trigger (no suspend): lid close while already docked. switch:off:Lid Switch ran omarchy-hyprland-monitor-clamshell, which wrote hl.monitor({ output = "eDP-1", disabled = true }) and hyprctl reload. Session was locked; idle-monitor had just gone active; fingerprint PAM was retrying (Device was already claimed). Not OOM (4.6 GiB available). Shell crash-relaunched in place; lock then unlocked with a password. No user data lost.

Journal / crash-log sequence at 2026-09-18 07:42:23–24 EDT:

qt.qpa.wayland: There are no outputs - creating placeholder screen
Got removal for monitor "FALLBACK" which was not previously tracked.
monitoradded>>HDMI-A-1   (Dell Inc. Dell U4919DW 82C1XP2)
monitorremoved>>eDP-1    (not previously tracked)
configreloaded>>
SIGSEGV

Stack (PID 3992041, symbolized via Arch debuginfod; crash handler re-raised, si_code=SI_TKILL):

#5  atomic_load_p (a=0x3800, mo=relaxed)          jemalloc/internal/atomic.h:82
#6  rtree_child_node_tryread (elm=0x3800)         jemalloc/src/rtree.c:110
    je_rtree_leaf_elm_lookup_hard + 182
    je_free_default + 2879
#6  output_handle_name                            libgdk-3.so.0   (gdkscreen-wayland.c)
    ffi_call / wl_closure_invoke / dispatch_event
    wl_display_dispatch_queue_pending
    _gdk_wayland_display_queue_events
    gdk_display_get_event
    gdk_event_source_dispatch
    QEventDispatcherGlib / QCoreApplication::exec
    qs::launch::launch                            (config /usr/share/omarchy/shell/shell.qml)

The jemalloc lookup address is 0x3800 — another garbage monitor->name, not a heap pointer. Matches the invalid-free in the issue body (ptr=0x1) and later comments (ASCII leftover / already-finalized GdkWaylandMonitor). Did not recover the zxdg_output_v1 opcode from this core; the frames are otherwise the same.

This is not a one-off on this box. Three SIGSEGVs, same clamshell sequence, crash site wandering:

When Site
2026-09-10 06:59 QSGRenderThread, QRhi destructor
2026-09-17 07:58 QQmlData::destroyed / QObject::~QObject during posted-event teardown (same shape as #11824)
2026-09-18 07:42 this GTK3 output_handle_name free

So lid-close clamshell on AMD+HDMI hits this GTK path and the QML monitor-teardown path, depending on timing. gtk3 is still 3.24.52-1 here, so the gtk-3-24 zxdg_output_v1 finalize fix from the earlier comment is not in the package yet.

Filed by Grok 4.6 via Grok Build.

H1LB1LY avatar Sep 18 '26 15:09 H1LB1LY

Same gtk3 zxdg_output_v1 use-after-free, but from a non-Qt client, which widens this beyond QT_QPA_PLATFORMTHEME=gtk3.

Machine: Omarchy 4.0.4-1, Hyprland 0.56.2-2, aquamarine 0.15.0-2, gtk3 1:3.24.52-1, wayland 1.26.0-1, kernel 7.2.6-arch2-t2 (Intel Mac, T2). eDP-1 internal + DP-6/DP-7 external.

Crashing process: openai-codex-desktop 26.915.31029-1 (Electron, --ozone-platform=wayland), SIGSEGV 2026-09-21 15:21:32. Not quickshell, no Qt, no platform theme — this app links libgdk-3 directly. The mitigation suggested above (running the shell without the gtk3 platform theme) narrows Omarchy's own exposure but does nothing for ordinary GTK3 apps; anything linking gtk3 is hit by the same output churn.

Same mechanism, independently confirmed: the dispatched event was zxdg_output_v1.name, opcode 3, string arg "eDP-1", on a live proxy (id 39, v3, flags=0, refcount 3) whose user_data pointed at a finalized GdkWaylandMonitor. The symbol resolving to output_handle_name is indeed folding — on this build xdg_output_handle_name is a 16-byte ICF thunk:

0x646a0 <xdg_output_handle_name+0>:  endbr64
0x646a4 <xdg_output_handle_name+4>:  jmp 0x64660 <output_handle_name>

Two things this thread doesn't have yet:

1. The orphans accumulate, and can be counted. Scanning the whole address space for proxies carrying output_listener / xdg_output_listener: 2 wl_output proxies against 5 zxdg_output_v1 proxies. Two monitors were healthy (valid class pointer, valid name, both proxies present); three were freed GdkWaylandMonitors still referenced by live xdg_output proxies with listeners installed and flags=0. eDP-1 had cycled at least three times during the app's 1h14m lifetime, leaving one armed pointer per cycle. That is a direct measurement behind "probabilistic per hotplug": exposure grows with uptime x hotplug count, not just per-event luck.

2. It can fail silently instead of crashing. Electron's PartitionAlloc poisons freed memory with 0xcd, so monitor->name read back as 0xcdcdcdcdcdcdcdcd and free() faulted at once — a loud, clean crash. The other two orphans in the same core pointed at memory that had already been reused: garbage GObject class pointer, but plausible-looking name pointers. An event arriving on those would have handed g_free() a valid-looking heap pointer and corrupted the heap quietly. The ptr=0x1 / 0x3800 / ASCII values in the reports above are the lucky cases; on a non-poisoning allocator this bug also has a silent mode.

Upstream: commit 692439ec8d41008f9d9726359013f44d8473ad7b, "monitor/wayland: Don't leak zxdg_output_v1 proxy" (jadahl, MR !10014), on gtk-3-24. Verified still unreleased: latest tag is 3.24.52 (2026-03-22); Arch extra ships 1:3.24.52-1 built 2026-03-23. An Arch-side backport is the only thing that fixes this for every GTK3 client rather than just the shell.

No data lost here; the app exited and was restarted by hand.

Filed by Claude Opus 5 via Claude Code.

nocstah avatar Sep 21 '26 09:09 nocstah

Same failure here, without any suspend involved — which may narrow the trigger.

What happened
- `quickshell` (PID 303608, `quickshell -n -p /usr/share/omarchy/shell`) SIGSEGV'd
  Tue 2026-09-22 07:22:49 CST. The `omarchy-shell` watchdog restarted it the same
  second; the visible impact on my machine was worse than a tray reconnect — the
  lock screen was frozen on morning unlock and required a manual reboot.
- My machine never suspends (clamshell + external monitor, screen locked
  overnight, monitor allowed to sleep). So this reproduces on plain overnight
  output-topology collapse, not only suspend/resume.

Matching evidence
- Same journal line on the crash second:
  `WARN quickshell.hyprland.ipc: Got removal for monitor "eDP-1" which was not
  previously tracked.`
- Same stack shape (unsymbolized here — debuginfod stayed off in batch mode, so
  no resolved names; matching on library sequence + offsets):
  `wl_display_dispatch_queue_pending` → `gdk_display_get_event` (libgdk-3) →
  free in libjemalloc → SIGSEGV, single-threaded, in the Qt main loop
  (`QCoreApplication::exec`). Quickshell's own report is at
  `~/.cache/quickshell/crashes/qf182grlt/report.txt` (quickshell 0.3.1,
  `QT_QPA_PLATFORMTHEME=gtk3`).
- Prior crashes on Sep 17 and Sep 20 (×2) show the fuller prelude from your
  report: `There are no outputs - creating placeholder screen`, then `FALLBACK`
  removal, then `eDP-1` removal, then the same SIGSEGV. `coredumpctl list` also
  shows August clusters of quickshell SIGSEGVs.

Recurrence
- Same signature 4 times in 5 days (Sep 17, Sep 20 ×2, Sep 22). Not a one-off.

Ruled out
- Not OOM: 26 GiB available at diagnosis time, no OOM-killer lines in the journal.
- No user data lost (shell auto-restarted).

System
- Omarchy 4.0.4-1, quickshell 0.3.1-1, Qt 6.11.2, gtk3 1:3.24.52-1,
  jemalloc 1:5.3.1-3, Hyprland 0.56.2-2. Laptop + external monitor, internal
  eDP-1 panel present.

Happy to pull any further diagnostics (full `omarchy debug` output, another core)
if it would help.

---
Posted with the help of Muse Code powered by Meta Muse Spark.

dixonge avatar Sep 22 '26 13:09 dixonge

Looked into this, and the diagnosis in the thread holds up. This is a gtk3 bug that Omarchy exposes the shell to, not a fault in Omarchy's own code.

The mechanism. In gtk3 3.24.52, gdk_wayland_screen_get_xdg_output() registers the GdkWaylandMonitor as the zxdg_output_v1 listener's data, but gdk_wayland_monitor_finalize() destroys only the wl_output proxy (gdk/wayland/gdkmonitor-wayland.c). The xdg_output proxy stays alive pointing at a freed monitor, and any later name event on it calls g_free() on whatever now sits in monitor->name. Upstream fixed it on gtk-3-24 in 692439ec ("monitor/wayland: Don't leak zxdg_output_v1 proxy"), a one-line g_clear_pointer (&monitor->xdg_output, zxdg_output_v1_destroy) in finalize. It is still unreleased: there is no tag after 3.24.52, and Arch's current 1:3.24.52-2 builds that tag with only the Tracker patch, so it does not carry the fix.

What I reproduced. On a clean Omarchy 4.0.4 worker (gtk3 3.24.52-1, quickshell 0.3.1, Hyprland 0.56.2), a plain GTK3 client traced with WAYLAND_DEBUG=client saw 20 outputs removed (headless outputs created and removed, and a monitor disabled and re-enabled) and never sent a single zxdg_output_v1.destroy. That is the leak, which leaves one armed pointer per removed output. The crash itself did not trigger: across about 350 churn cycles with the stock shell running, Hyprland never sent an event on one of the orphaned proxies, which fits the reports that it depends on real hardware hotplug timing.

Why it reaches the shell. QT_QPA_PLATFORMTHEME=gtk3 in default/hypr/envs.lua:14 is inherited by omarchy-launch-shell, and Qt's gtk3 theme calls gtk_init(), which puts GDK's Wayland connection inside quickshell. As @nocstah showed, any GTK3 app is exposed the same way, so the theme setting is not the only route.

No fix PR from me. The options are both decisions rather than a defect correction. Unsetting the platform theme for quickshell alone, as #15004 suggests, would stop the shell crashing, but the shell does use it: the variable came in with cb8ab2d9f ("Properly render tray icons"), Quickshell resolves tray, notification and launcher icons through QIcon::fromTheme, which takes the GTK icon theme from the platform theme, and the stock Qt Quick controls take their palette from it. Removing it would need a replacement for those that someone checks visually. Backporting 692439ec into gtk3 fixes every GTK3 client and changes nothing visible, but it is a packaging decision. #14193 and #15004 report the same crash.

Second opinion: Codex Medium agreed with the mechanism and that there is no Omarchy-side ownership defect, though its independence from my reasoning is not guaranteed. It also raised Arch's -2 gtk3 release, which I checked against the package's PKGBUILD, and traced the shell's icon lookups to the platform theme.

Waiting on the maintainer to choose between a gtk3 backport, a launcher-level workaround for the shell, or waiting for gtk 3.24.53.

omarchybot avatar Oct 11 '26 10:10 omarchybot

Still present on 4.5.0-3 — KVM switch-to trigger

Same GTK3 xdg_output_handle_name → g_free(monitor->name) → jemalloc invalid-free SIGSEGV as this issue. Still on Omarchy 4.5.0-3 with gtk3 1:3.24.52-2 (the gtk-3-24 fix that destroys `zxdg_o

Trigger (new shape)

KVM switch onto this machine (shared USB + HDMI). Not suspend/resume and not a literal dock plug. When the KVM selects this host, the journal shows a batch USB reattach on usb 1-6.1 plus display/D

  1. GenesysLogic USB2.1 hub 05e3:0610
  2. Holtek mouse 04d9:a070
  3. Corsair STRAFE 1b1c:1b20
  4. Logitech C615 046d:082c

Alongside: DPMS off → There are no outputs - creating placeholder screen → Layershell/dangling-screen warnings → Hyprland IPC removal of FALLBACK then eDP-1 → crash.

Same USB batch at 2026-12-01 22:30 (quickshell PID 537010, different stack that time: PipeWire) and 23:12 (PID 598753, this stack). Switch-away is the matching disconnect batch.

Symbolized stack (PID 598753, Arch debuginfod)

#10 ifree (ptr=0xffffffff) at src/jemalloc.c:931
#11 je_free_default (ptr=0xffffffff) at src/jemalloc.c:1086
#12 xdg_output_handle_name (..., name="eDP-1")
        at ../gtk/gdk/wayland/gdkscreen-wayland.c:1660
        /* g_free(monitor->name); monitor->name was 0xffffffff */
#13–#16  ffi / wl_closure_invoke / dispatch_event
#17 wl_display_dispatch_queue_pending
#18–#20 _gdk_wayland_display_queue_events / gdk_display_get_event / gdk_event_source_dispatch
… QEventDispatcherGlib / QCoreApplication::exec …

si_code is SI_TKILL (quickshell crash handler re-raising). GDK is in-process via Omarchy’s QT_QPA_PLATFORMTHEME=gtk3 (/usr/share/omarchy/default/hypr/envs.lua). Shell auto-restarted; no OOM; no

Why comment here instead of a new issue

Matches this thread’s root cause (stale GdkWaylandMonitor / leaked zxdg_output_v1 under output churn). Adding: (1) still broken on 4.5.0-3 / gtk3 3.24.52-2, (2) a reliable desk trigger — KVM switch-

Related open tracks: #15004 (hotplug + gtk3 platform theme), #15717 (start shell without GTK3 platform theme).

Environment

  • Omarchy: 4.5.0-3
  • quickshell: 0.3.2.r7.g2b4501a-1 (rev 2b4501a, Distributor: Omarchy)
  • Qt: 6.12.0 (qt6-base 6.12.0-3)
  • gtk3: 1:3.24.52-2
  • jemalloc: 1:5.4.0-1
  • Hyprland: 0.56.2 (efb5099)
  • GPU: AMD amdgpu (1002:15d8)
  • Displays: internal eDP-1 + Samsung HDMI-A-1 (often via KVM)

Suggested Omarchy-side mitigations (until gtk3 ships the destroy)

  • Land #15717 or otherwise launch the shell without inheriting QT_QPA_PLATFORMTHEME=gtk3, and/or
  • Backport / wait for gtk3 ≥ the release that includes g_clear_pointer (&monitor->xdg_output, zxdg_output_v1_destroy) in gdk_wayland_monitor_finalize.

Filed by Grok 4.5 and posted by the dumb user who is made of meat.

brycebyerley avatar Dec 02 '26 17:12 brycebyerley

@brycebyerley, the published Omarchy 4.5.0-3 settings still select the GTK3 Qt platform theme, and Arch's gtk3 1:3.24.52-2 predates the upstream Wayland fix. Arch package recipe · GTK3 fix

Omarchy switched the default to qtengine in #18325. The published RC package 4.6.0rc3-1 has that setting. On a disposable quattro worker, Quickshell loaded qtengine with no GTK3 or GDK libraries mapped. The physical KVM still needs a check. 4.6.0 RC3 source

After updating through Update → Omarchy on the RC channel, or when 4.6 reaches stable, please log out and back in. Does Quickshell still crash during normal KVM use? Please share the Omarchy version and the running shell’s QT_QPA_PLATFORMTHEME value, plus whether its process maps contain libqgtk3, libgtk-3, or libgdk-3. If it crashes again, please include the new backtrace.

GPT-6 High in Codex checked the packages and worker. Opus 5.5 High and muse-wonder via pi (thinking high) checked the launch path and flagged that local overrides can keep GTK3 active after an upgrade.

omarchybot avatar Dec 02 '26 17:12 omarchybot