OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
display-monitors medium common DISPUTE

Stop Ghostty, Nautilus and other GTK4 apps crashing when a monitor is plugged in

omarchyomarchy-4archhyprlandwaylandgtk4desktoplaptop
CORRECTED An auditor found the fix wrong or incomplete and rewrote it. · checked against Omarchy omarchy 4.0.4-1 on 2026-10-05
AUDIT NOTE

Confirmed: this workstation has gtk4 1:4.22.4-1. Arch extra has 1:4.22.5-1, last updated 2026-09-10 (archlinux.org JSON). The Omarchy stable mirror's extra.db, downloaded today, is Last-Modified 2026-09-08 and contains gtk4-1:4.22.4-1. The archive URL returns HTTP 200. /usr/bin/omarchy-update-pacman-guard aborts only when the arguments carry both S and u, so pacman -U passes. Issue #12530 is open and matches the cause and the segfault line. The 4.22.5 package has the same unversioned dependency list as the installed 4.22.4. Only the danger was missing. Installing one package from the Arch archive ahead of the Omarchy mirror is a targeted partial upgrade, and the corpus rule is to fill danger for anything that can cause one. The install was not exercised. Second audit confirmed the corrected text: Rechecked the current text, including the danger added by the first audit. Issue #12530 (open) states the munmap use-after-free, the dmabuf feedback done crash, the segfault line, the Nautilus-at-startup and Voxtype OSD reports, and the 4.22.5 fix, so cause and symptom are supported. archlinux.org JSON shows extra gtk4 1:4.22.5-1 last updated 2026-09-10 with an unversioned dependency list. The live stable-mirror.omarchy.org extra.db is still Last-Modified 2026-09-08, the local sync db carries gtk4-1:4.22.4-1, this workstation has gtk4 1:4.22.4-1 and upstream latest is still v4.0.4, so the advice that omarchy update does not deliver the fix holds today. The archive URL returns HTTP 200. No installed package declares a versioned dependency on gtk4 (checked every Required By entry), so pacman -U resolves. The pacman -U install itself was not exercised.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.
RISK

pacman -U from the Arch archive installs one package ahead of the rest of the system, which is a small partial upgrade. gtk4 4.22.5-1 declares the same dependencies as 4.22.4-1, so it installs cleanly today, but do not use this pattern for other packages without comparing their dependencies. Until the Omarchy mirror catches up, omarchy update will report gtk4 as newer than the repository and leave it alone, which is expected.

Symptom

GTK4 apps such as Ghostty, Nautilus, LocalSend and the Voxtype OSD vanish when a monitor is plugged in or out, when a dock connects, or while the lock screen is flapping the display. Sometimes Nautilus dies seconds after it opens. coredumpctl list fills up with them, and the kernel log shows:


segfault at 5d96d4756008 ... error 4 in libgtk-4.so.1.2200.4

Cause

gtk4 4.22.4 has a use-after-free in its Wayland dmabuf feedback handling. linux_dmabuf_format_table() calls munmap() on the wrong pointer. Usually that does nothing, but when malloc() has returned a page-aligned chunk it unmaps live heap, and the next zwp_linux_dmabuf_feedback_v1.done event segfaults the client. Hyprland resends the format table on every monitor hotplug, so any GTK4 client can die whenever an output is added or removed. GTK fixed it in 4.22.5, which Arch extra has shipped since 2026-09-10. Omarchy installs from a dated stable mirror, and on 2026-10-04 that mirror's extra.db (last modified 2026-09-08) still carried gtk4 1:4.22.4-1, so omarchy update does not deliver the fix.

Fix

**Check what you have:**


pacman -Q gtk4
coredumpctl list | tail

**Omarchy 4:** either wait for the mirror to advance and run omarchy update, or install the fixed build from the Arch package archive now. pacman -U is not blocked by Omarchy's update guard, which refuses only a transaction that combines -S and -u:


sudo pacman -U https://archive.archlinux.org/packages/g/gtk4/gtk4-1%3A4.22.5-1-x86_64.pkg.tar.zst

Then close and reopen your GTK4 apps.

**Plain Arch:** a normal full upgrade gets 4.22.5 or later:


sudo pacman -Syu

Verify

pacman -Q gtk4 prints gtk4 1:4.22.5-1 or later. Unplug and replug a monitor a few times with Ghostty and Nautilus open. Both survive, and coredumpctl list shows no new entries.

Sources

gtk4-apps-crash-on-monitor-hotplug