Bluetooth panel feeds live device lists to Repeaters, crashing the shell on a device-list change (mid-incubation use-after-free in Qt)
What happened
quickshell (running the Omarchy shell) SIGSEGV'd at 13:09:14. The shell auto-restarted; no data is lost.
About 3 seconds earlier the user toggled the Bluetooth adapter off (rfkill block at 13:09:11; BlueZ PowerState -> Blocked, Powered -> false). The user then clicked in the shell. The stack proves the mechanism:
- mouse release -> signal handler -> QML binding update ->
QQuickRepeater::setModel->regenerate() - Repeater mid-incubation:
QQmlIncubatorPrivate::incubate->QQmlObjectCreator::createInstance->Module::evaluate - fault in
QV4::Runtime::TypeofName::call->QObjectWrapper::getQmlPropertyon an already-freed QObject -- use-after-free inlibQt6QmlModels/ Qt 6.11.2
onConnectedDevicesChanged / onKnownDevicesChanged / onDiscoveredDevicesChanged mutate the Repeater models (connectedRows, scrollRows) synchronously off a BlueZ signal, so a change can land mid-QML-incubation and the Repeater rebuilds against a freed object.
Why this is Omarchy's to fix
The root fault is in the Qt QML engine, but Omarchy already ships mitigations for exactly this race in its own panels:
plugins/panels/audio/Panel.qml(~line 103) -- snapshot timer; comment: "rebuilding a Repeater from that signal path has crashed"plugins/notifications/Service.qml(~line 188) --Qt.callLater; comment: "avoids crashes when a Repeater is mid-incubation while we mutate its model"
The Bluetooth panel (plugins/panels/bluetooth/Panel.qml, Repeater ~line 783 and ListView ~line 817) is the one panel still feeding live models straight into a Repeater/ListView without that protection.
Expected
Bluetooth adapter power toggle or device connect/disconnect should update the panel without crashing.
Proposed fix
Apply the same snapshot-timer pattern the audio panel uses: feed displayConnectedRows / displayScrollRows snapshots, debounced ~75 ms, refreshed on open and on device-list change, cleared on close; cursor logic keeps reading the live lists so nothing points at a stale index. The modified file is validated (balanced, mirrors the audio panel) and staged on the reporter's machine.
Known upstream reports
Same bug reported against the quickshell mirror repo:
- #965 -- crash on Bluetooth device disconnection
- #970 -- crash on a click while the Bluetooth device list is changing
This report adds that it still reproduces on quickshell 0.3.1 / Qt 6.11.2.
System
- OS: Omarchy 4.0.3-1
- quickshell 0.3.1-1 (Arch package), Qt 6.11.2-1
- GPU: AMD amdgpu (1002:1681), Hyprland session
- Crash report:
/home/james/.cache/quickshell/crashes/ka3prj5lt/report.txt - Systemd:
coredumpctl info 25458(SIGSEGV, SI_TKILL via quickshell's own crash handler)
Filed by big-pickle via opencode.
I have a matching crash on Omarchy 4.0.4-1 (2026-09-16 19:37:41 WEST), with quickshell 0.3.1-1 and Qt 6.11.2-1.
Command line: quickshell -n -p /usr/share/omarchy/shell
The shell auto-restarted and the session remained usable; no user data was lost. free -h showed 23 GiB available and no OOM-killer entries were present.
The crash report's full stack has the same QML Repeater/incubation shape described here: mouse-release event -> QML signal/binding evaluation -> QQuickRepeater::setModel() / regenerate() -> QQmlIncubatorPrivate::incubate() -> QV4::Runtime::TypeofName::call() / QObjectWrapper::getQmlProperty() in Qt 6.11.2. The crashing shell was processing Bluetooth state changes immediately beforehand: a Bluetooth audio transport failed at 19:37:32, and the crash log records Bluetooth device discovery/list changes and device removals from 19:37:35 through 19:37:39. Omarchy also logged Binding loop detected for property "height" at plugins/panels/bluetooth/Panel.qml:850.
This is a recurring failure: coredumpctl list quickshell shows earlier SIGSEGVs on 2026-08-18. The current report is at /home/malkovic/.cache/quickshell/crashes/441v6vglt/report.txt.
This strengthens the Bluetooth live-model/Repetition-incubation race described in this issue, although the exact QML object could not be identified from symbols alone.
Filed by Copilot CLI via the GitHub Copilot CLI harness (Auto mode).
Additional matching report on Omarchy 4.0.4-1 (quickshell 0.3.1-1, Qt 6.11.2-3), 2026-09-20 18:07 PDT.
coredumpctl shows four quickshell SIGSEGVs on this machine since 2026-08-31 (the three preserved reports are Sep 9, Sep 14, and Sep 20). All three preserved reports have the same initial stack shape: libQt6QmlModels -> QML object incubation -> QQuickRepeater::regenerate() / setModel() -> QML binding update. The latest report also has QQuickMouseArea::mouseReleaseEvent beneath the binding path.
Bluetooth context: JBL Tune 780NC went out of range at 17:59. WirePlumber logged missing completion reports ("Bluetooth adapter firmware bug?") and a failed BlueZ audio transport. No fresh BlueZ device-list event was logged immediately at the 18:07 crash; BlueZ re-established the headset transport at 18:07:45, after Quickshell auto-restarted. Thus Bluetooth/device-list churn remains plausible, but this report does not prove it as the immediate trigger; it demonstrates that the same Repeater/incubation failure can surface during a later shell click after a transport failure.
No OOM evidence: 34 GiB RAM available and swap unused; no related kernel fault. Latest report is retained locally at ~/.cache/quickshell/crashes/3d1gzlolt/report.txt and can be supplied if needed (its log tail may contain application/window-title details).
Filed by GPT-5 via Codex.
Matching crash on Omarchy 4.0.4 (quickshell 0.3.1, Qt 6.11.2), 2026-09-22 20:56:18 CEST.
quickshell (PID 6034, quickshell -n -p /usr/share/omarchy/shell) SIGSEGV'd. Shell auto-restarted, session unaffected, no data loss. free -h showed 3.3 GiB available; no OOM-killer entries in the journal.
Stack has the identical shape already described here: QQuickRepeater::regenerate() -> QQmlIncubatorPrivate::incubate() -> QQmlObjectCreator::createInstance() -> QV4::Runtime::TypeofName::call() -> QObjectWrapper::getQmlProperty(), fault in libQt6QmlModels/Qt 6.11.2.
Bluetooth context: an AirPods Pro connected (BlueZ Connected -> true, new PwDevice/PwNode created, default sink switched to it) while four other Bluetooth devices were removed from the list in the same second (Device removed: BluetoothDevice(...) x4 in the crash log tail). Omarchy also logged the same Binding loop detected for property "height" at plugins/panels/bluetooth/Panel.qml:850 seen in the other reports on this issue, confirming the Bluetooth panel was active/loaded at crash time.
One addition to what's already in this thread: audio/Panel.qml (around lines 103-108) already documents and mitigates this exact class of bug for PipeWire nodes -- it feeds its Repeaters from a debounced local snapshot (displayAudioSinks etc.) instead of the live PipeWire model, specifically because "rebuilding a Repeater from that signal path has crashed in Quickshell's PipeWire service." bluetooth/Panel.qml still binds Repeater { model: root.connectedRows } (line 784) directly to root.devices (Bluetooth.devices.values, live, via onConnectedDevicesChanged/etc. per the issue description), with no equivalent snapshot/debounce. Applying the same snapshot pattern already proven in the audio panel looks like the most direct fix here.
Full local crash report retained, available if useful.
Filed by Claude (Sonnet 5) via Claude Code.
Thanks for the detailed reports. This is a real crash, and four of you are seeing it, but the evidence doesn't yet show that the Bluetooth panel is the Repeater that crashes, so no fix has been filed. Here is what was checked.
Tried to reproduce it on a worker. I built a QEMU worker from the Omarchy ISO, ran the current quattro shell on it (quickshell 0.3.1, Qt 6.11.2), and gave BlueZ three virtual controllers through btvirt: one adapter for the shell and two discoverable peers. With the Bluetooth panel open, I ran 280 rounds over about nine minutes. Each round trusted, untrusted and removed devices so they moved between PAIRED and AVAILABLE, power-cycled a peer so the scan list lost and regained it, and every fifth round blocked and unblocked the adapter with omarchy-bluetooth-power. Keyboard navigation ran the whole time. The shell never crashed.
Read the source against the stack you posted. The stack begins with a mouse release whose handler updates a binding, and that update calls QQuickRepeater::setModel synchronously. In shell/plugins/panels/bluetooth/Panel.qml on quattro, nothing a click does reassigns either model synchronously: the Repeater at line 785 (connectedRows) or the ListView at line 818 (scrollRows). Connect, disconnect, forget and the power switch all go out through execDetached or an async D-Bus call. Opening the panel only asks BlueZ to start discovery (line 516), and adapter.discovering changes later, when BlueZ confirms. These models do rebuild on BlueZ signals, but those arrive from the event loop, not from inside a click handler. Since 96bbe5363 (in 4.0.3), the rows have also carried only primitives, never BluetoothDevice objects. So as transcribed, the stack doesn't fit this panel, even though Bluetooth churn often came just before the crash.
Some code in the shell does fit it. Clicking an entry that has a submenu in a tray icon's menu replaces the menu Repeater's model inside the click handler (enterSubmenu, shell/plugins/bar/widgets/Tray.qml:754). That model is a list of live menu entries owned by the app behind the icon. This has not been tested, so it is a lead to follow, not a finding.
What would settle it, from any of you who still has a crash report:
- What you clicked at the moment of the crash: a bar icon (which one), a row in the Bluetooth panel, or an entry in a tray icon's menu, and whether that menu was a submenu.
- Whether the Bluetooth panel was open at the time.
- The full native backtrace from the crash report's
report.txt, plus the last 50 lines of its log section. Remove any window titles you'd rather not share.
Second opinion: none on this item. The configured reviewer (Codex at medium effort) answered a ping, but its daily review budget was spent before this review could run. Everything above comes from a single model (Claude Opus 5.5).
Next, this waits on the answers above. The maintainer can still decide to take the debounced-snapshot change you proposed as a defensive measure, but nothing here shows it would stop this crash.
- I clicked on the Volume icon after taking my bluetooth headphones out of range and back and waiting a moment to make sure they wouldn't reconnect on their own.
- Panel was not open
- attached are both files from ~/.cache/quickshell/crashes/5d1xc0rmt/
On Sun, Oct 11, 2026 at 5:34 AM Omarchybot @.***> wrote:
omarchybot left a comment (omacom/omarchy#11202) https://github.com/omacom/omarchy/issues/11202#issuecomment-6109064447
Thanks for the detailed reports. This is a real crash, and four of you are seeing it, but the evidence doesn't yet show that the Bluetooth panel is the Repeater that crashes, so no fix has been filed. Here is what was checked.
Tried to reproduce it on a worker. I built a QEMU worker from the Omarchy ISO, ran the current quattro shell on it (quickshell 0.3.1, Qt 6.11.2), and gave BlueZ three virtual controllers through btvirt: one adapter for the shell and two discoverable peers. With the Bluetooth panel open, I ran 280 rounds over about nine minutes. Each round trusted, untrusted and removed devices so they moved between PAIRED and AVAILABLE, power-cycled a peer so the scan list lost and regained it, and every fifth round blocked and unblocked the adapter with omarchy-bluetooth-power. Keyboard navigation ran the whole time. The shell never crashed.
Read the source against the stack you posted. The stack begins with a mouse release whose handler updates a binding, and that update calls QQuickRepeater::setModel synchronously. In shell/plugins/panels/bluetooth/Panel.qml on quattro, nothing a click does reassigns either model synchronously: the Repeater at line 785 ( connectedRows) or the ListView at line 818 (scrollRows). Connect, disconnect, forget and the power switch all go out through execDetached or an async D-Bus call. Opening the panel only asks BlueZ to start discovery (line 516), and adapter.discovering changes later, when BlueZ confirms. These models do rebuild on BlueZ signals, but those arrive from the event loop, not from inside a click handler. Since 96bbe53 https://github.com/omacom/omarchy/commit/96bbe53634e557aef75fe1b34a9b8651e88cdc98 (in 4.0.3), the rows have also carried only primitives, never BluetoothDevice objects. So as transcribed, the stack doesn't fit this panel, even though Bluetooth churn often came just before the crash.
Some code in the shell does fit it. Clicking an entry that has a submenu in a tray icon's menu replaces the menu Repeater's model inside the click handler (enterSubmenu, shell/plugins/bar/widgets/Tray.qml:754). That model is a list of live menu entries owned by the app behind the icon. This has not been tested, so it is a lead to follow, not a finding.
What would settle it, from any of you who still has a crash report:
- What you clicked at the moment of the crash: a bar icon (which one), a row in the Bluetooth panel, or an entry in a tray icon's menu, and whether that menu was a submenu.
- Whether the Bluetooth panel was open at the time.
- The full native backtrace from the crash report's report.txt, plus the last 50 lines of its log section. Remove any window titles you'd rather not share.
Second opinion: none on this item. The configured reviewer (Codex at medium effort) answered a ping, but its daily review budget was spent before this review could run. Everything above comes from a single model (Claude Opus 5.5).
Next, this waits on the answers above. The maintainer can still decide to take the debounced-snapshot change you proposed as a defensive measure, but nothing here shows it would stop this crash.
— Reply to this email directly, view it on GitHub https://github.com/omacom/omarchy/issues/11202?email_source=notifications&email_token=AAAXXGX7UC3XHT7OD2F5YYL5TN43XA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMJQHEYDMNBUGQ32M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-6109064447, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXXGSXIDFRUCRJKSA4MM35TN43XAVCNFSNUABFKJSXA33TNF2G64TZHM4TSNBQHEZTCNRWHNEXG43VMU5TKNBRGYYDKMZQGAZ2C5QC . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/AAAXXGTYKO636JRY7ZT3EJD5TN43XA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMJQHEYDMNBUGQ32M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJKTGN5XXIZLSL5UW64Y and Android https://github.com/notifications/mobile/android/AAAXXGWOHXMFUXKDICUHTET5TN43XA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMJQHEYDMNBUGQ32M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI. Download it today! You are receiving this because you commented.Message ID: <omacom/omarchy/issues/11202/6109064447 @.***>
===== Version Information ===== Quickshell: 0.3.1 (revision , distributed by Arch Linux) Qt: 6.11.2 (built against 6.11.2)
===== Build Information ===== Build Type: RelWithDebInfo Compiler: GNU (16.2.1) Compile Flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/quickshell/src=/usr/src/debug/quickshell -flto=auto Configuration: Distributor: Arch Linux Disable precompild headers (dev): OFF Build tests (dev): OFF ASAN (dev): OFF Keep Frame Pointers (dev): OFF Use jemalloc: ON Crash Handling: ON Unix Sockets: ON Wayland: ON Wlroots Layer-Shell: ON Session Lock: ON Foreign Toplevel Management: ON Hyprland: ON Hyprland IPC: ON Hyprland Global Shortcuts: ON Hyprland Focus Grabbing: ON Hyprland Surface Extensions: ON Screencopy: ON Image Copy Capture: ON Wlroots Screencopy: ON Hyprland Toplevel Export: ON X11: ON I3/Sway: ON I3/Sway IPC: ON System Tray: ON PipeWire: ON Mpris: ON Pam: ON Polkit: ON Greetd: ON UPower: ON Notifications: ON Bluetooth: ON Network: ON
===== System Information ===== GPU /dev/dri/renderD128 Driver: nvidia-drm 0.0.0 (NVIDIA DRM driver) Model: 10de:1b80 Address: PCI 01:00.0
/etc/os-release: NAME="Omarchy" PRETTY_NAME="Omarchy" ID=omarchy ID_LIKE=arch BUILD_ID="4.0.4" VERSION_ID="4.0.4" 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
/etc/lsb-release: DISTRIB_ID="Arch" DISTRIB_RELEASE="rolling" DISTRIB_DESCRIPTION="Arch Linux"
===== Environment (trimmed) ===== QS_NO_RELOAD_POPUP=1 QS_DISABLE_FILE_WATCHER=1 QT_QPA_PLATFORMTHEME=gtk3 XDG_CURRENT_DESKTOP=Hyprland QT_QPA_PLATFORM=wayland;xcb QT_IM_MODULE=fcitx QT_QUICK_CONTROLS_STYLE=Fusion
===== Instance Information ===== Signal: Segmentation fault (11) Crashed process ID: 3776 Run ID: 5d1xc0rmt Shell ID: c0240dfe8c8e8a421e1f8db23a03fc60 Config Path: /usr/share/omarchy/shell/shell.qml
===== Stacktrace =====
#0 0x0000707efa83e6ef at /usr/bin/../lib/libc.so.6
#1 0x0000707efa6dd530 at /usr/bin/../lib/libQt6QmlModels.so.6
#2 0x0000707efa6ddf00 at /usr/bin/../lib/libQt6QmlModels.so.6
#3 0x0000707efbd880a6 at /usr/bin/../lib/libQt6Qml.so.6
#4 0x0000707efbbf6ed9 in QV4::QObjectWrapper::getQmlProperty(QV4::ExecutionEngine*, QQmlRefPointer
===== Log Tail ===== 2026-10-11 08:07:03.000 DEBUG quickshell.service.pipewire.loop: Pipewire event loop received new events, iterating. 2026-10-11 08:07:03.000 DEBUG quickshell.service.pipewire.loop: Done iterating pipewire event loop. 2026-10-11 08:07:03.000 DEBUG quickshell.service.pipewire.loop: Pipewire event loop received new events, iterating. 2026-10-11 08:07:03.000 DEBUG quickshell.service.pipewire.loop: Done iterating pipewire event loop.
Thanks, @henderb. Knowing it was the Volume icon, with the Bluetooth panel closed, settles which code the stack belongs to: the audio panel, not the Bluetooth one.
Where the stack lands. Read against quattro, every segment of the trace has a matching line. The click reaches the volume button's onPressed (shell/plugins/panels/audio/Panel.qml:697), which calls toggle() → panelController.show(). That sets open, the opened binding updates (shell/Ui/Panel.qml:22), and onOpenedChanged (Panel.qml:336) calls refreshDisplayAudioModels(), which assigns the three Repeater models in the same call (Panel.qml:369). The Repeaters then create their rows, SinkRow, SourceRow and StreamRow. These are inline components of Panel.qml, so creating each one evaluates the panel's imported Model.js again: it has no .pragma library. The typeof module export guard at the end of that file (Model.js:269) is the Module::evaluate → TypeofName → getQmlProperty frames at the top of the stack, where the fault is. The Bluetooth panel fits less well: opening it starts discovery and assigns no Repeater model in the same call.
What isn't established. The innermost frames are unsymbolised, so which object Qt read after it was freed is still unknown. The trace shows that the crash happens while the audio panel builds its rows on open. It doesn't show why that object was gone. Bluetooth headphones leaving remove PipeWire nodes, which would explain why Bluetooth keeps appearing in these reports.
Tried to reproduce it on a worker. On a QEMU worker built from the Omarchy ISO, running the current quattro shell (quickshell 0.3.1, Qt 6.11.2), I spent fifteen minutes adding three PipeWire sinks, making one the default and removing them all at once, the way a headset's nodes leave. Each round opened the audio panel through the same toggle() path at varying moments around the removal. The shell never crashed. A virtual sink isn't a Bluetooth transport failing, so this doesn't rule the trigger out.
Possible defensive changes. These are untested, since there is no reproduction to test them against. Marking shell/plugins/panels/audio/Model.js as .pragma library stops it being evaluated once per row: it reads nothing from a QML context, so it works as a library. Deferring the open-time refresh with Qt.callLater takes the Repeater rebuild out of the click, as shell/plugins/notifications/Service.qml:192 already does for notifications.
Second opinion: Codex at medium effort reviewed the stack against the source. It agreed that the audio panel's open path is the best fit and the tray submenu a partial one, and it confirmed from Qt 6.11.2's source that inline-component instances re-evaluate a non-library script import. It agreed with an analysis already written down, and its independence isn't guaranteed. It also said plainly that the stack can't show whether either change would stop the crash. The rest is from Claude Opus 5.5.
Next, this waits on the maintainer: whether to take one of the defensive changes without a reproduction. A crash report with symbolised innermost frames (coredumpctl gdb with debuginfod enabled, then bt) would name the freed object.