omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Bluetooth panel feeds live device lists to Repeaters, crashing the shell on a device-list change (mid-incubation use-after-free in Qt)

Open jte369 opened this issue 2 months ago • 6 comments

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::getQmlProperty on an already-freed QObject -- use-after-free in libQt6QmlModels / 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.

jte369 avatar Sep 10 '26 18:09 jte369

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).

Malkovic85 avatar Sep 16 '26 18:09 Malkovic85

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.

henderb avatar Sep 21 '26 01:09 henderb

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.

vayners avatar Sep 22 '26 19:09 vayners

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:

  1. 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.
  2. Whether the Bluetooth panel was open at the time.
  3. 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.

omarchybot avatar Oct 11 '26 12:10 omarchybot

  1. 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.
  2. Panel was not open
  3. 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:

  1. 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.
  2. Whether the Bluetooth panel was open at the time.
  3. 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 const&, QV4::Heap::Object*, QObject*, QV4::String*, QFlagsQV4::QObjectWrapper::Flag, bool*, QQmlPropertyData const**) at /usr/bin/../lib/libQt6Qml.so.6 #5 0x0000707efbbf024d in QV4::QQmlContextWrapper::getPropertyAndBase(QV4::QQmlContextWrapper const*, QV4::PropertyKey, QV4::Value const*, bool*, QV4::Value*, QV4::Lookup*) at /usr/bin/../lib/libQt6Qml.so.6 #6 0x0000707efbb6b822 in QV4::ExecutionContext::getProperty(QV4::String*) at /usr/bin/../lib/libQt6Qml.so.6 #7 0x0000707efbc2a3de in QV4::Runtime::TypeofName::call(QV4::ExecutionEngine*, int) at /usr/bin/../lib/libQt6Qml.so.6 #8 0x0000707efbc6513e at /usr/bin/../lib/libQt6Qml.so.6 #9 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #10 0x0000707efbbd1ab0 in QV4::Module::evaluate() at /usr/bin/../lib/libQt6Qml.so.6 #11 0x0000707efbd9bb3d at /usr/bin/../lib/libQt6Qml.so.6 #12 0x0000707efbce43e2 in QQmlEnginePrivate::createInternalContext(QQmlRefPointerQV4::ExecutableCompilationUnit const&, QQmlRefPointer const&, int, bool) at /usr/bin/../lib/libQt6Qml.so.6 #13 0x0000707efbd6615b at /usr/bin/../lib/libQt6Qml.so.6 #14 0x0000707efbd5ec2e in QQmlObjectCreator::createInstance(int, QObject*, bool) at /usr/bin/../lib/libQt6Qml.so.6 #15 0x0000707efbd66224 at /usr/bin/../lib/libQt6Qml.so.6 #16 0x0000707efbd14b9c in QQmlIncubatorPrivate::incubate(QQmlInstantiationInterrupt&) at /usr/bin/../lib/libQt6Qml.so.6 #17 0x0000707efbd156b1 in QQmlEnginePrivate::incubate(QQmlIncubator&, QQmlRefPointer const&) at /usr/bin/../lib/libQt6Qml.so.6 #18 0x0000707efa6b687b at /usr/bin/../lib/libQt6QmlModels.so.6 #19 0x0000707efcf70431 in QQuickRepeater::regenerate() at /usr/bin/../lib/libQt6Quick.so.6 #20 0x0000707efcf70e67 in QQuickRepeater::setModel(QVariant const&) at /usr/bin/../lib/libQt6Quick.so.6 #21 0x0000707efbc8623a at /usr/bin/../lib/libQt6Qml.so.6 #22 0x0000707efbd722a7 in QQmlPropertyPrivate::write(QObject*, QQmlPropertyData const&, QVariant const&, QQmlRefPointer const&, QFlagsQQmlPropertyData::WriteFlag) at /usr/bin/../lib/libQt6Qml.so.6 #23 0x0000707efbca5530 in QQmlBinding::slowWrite(QQmlPropertyData const&, QQmlPropertyData const&, QV4::Value const&, bool, QFlagsQQmlPropertyData::WriteFlag) at /usr/bin/../lib/libQt6Qml.so.6 #24 0x0000707efbca72f8 at /usr/bin/../lib/libQt6Qml.so.6 #25 0x0000707efbca8804 in QQmlBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, QFlagsQQmlPropertyData::WriteFlag, QV4::Scope&) at /usr/bin/../lib/libQt6Qml.so.6 #26 0x0000707efbc9f860 in QQmlBinding::update(QFlagsQQmlPropertyData::WriteFlag) at /usr/bin/../lib/libQt6Qml.so.6 #27 0x0000707efbd4cc1f in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) at /usr/bin/../lib/libQt6Qml.so.6 #28 0x0000707efb1eef5e at /usr/bin/../lib/libQt6Core.so.6 #29 0x0000707efbbf928a in QV4::QObjectWrapper::setProperty(QV4::ExecutionEngine*, QObject*, QQmlPropertyData const*, QV4::Value const&) at /usr/bin/../lib/libQt6Qml.so.6 #30 0x0000707efbbfa5e0 in QV4::QObjectWrapper::setQmlProperty(QV4::ExecutionEngine*, QQmlRefPointer const&, QObject*, QV4::String*, QFlagsQV4::QObjectWrapper::Flag, QV4::Value const&) at /usr/bin/../lib/libQt6Qml.so.6 #31 0x0000707efbbedbb3 in QV4::QQmlContextWrapper::virtualPut(QV4::Managed*, QV4::PropertyKey, QV4::Value const&, QV4::Value*) at /usr/bin/../lib/libQt6Qml.so.6 #32 0x0000707efbb6b4d2 in QV4::ExecutionContext::setProperty(QV4::String*, QV4::Value const&) at /usr/bin/../lib/libQt6Qml.so.6 #33 0x0000707efbc24a6a in QV4::Runtime::StoreNameSloppy::call(QV4::ExecutionEngine*, int, QV4::Value const&) at /usr/bin/../lib/libQt6Qml.so.6 #34 0x0000707efbc63f08 at /usr/bin/../lib/libQt6Qml.so.6 #35 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #36 0x0000707efbbb7496 at /usr/bin/../lib/libQt6Qml.so.6 #37 0x0000707efbc24081 in QV4::Runtime::CallQmlContextPropertyLookup::call(QV4::ExecutionEngine*, unsigned int, QV4::Value*, int) at /usr/bin/../lib/libQt6Qml.so.6 #38 0x0000707efbc638b7 at /usr/bin/../lib/libQt6Qml.so.6 #39 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #40 0x0000707efbba8873 at /usr/bin/../lib/libQt6Qml.so.6 #41 0x0000707efbbaee54 in QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) at /usr/bin/../lib/libQt6Qml.so.6 #42 0x0000707efbd1f907 in QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) at /usr/bin/../lib/libQt6Qml.so.6 #43 0x0000707efbcade0a in QQmlBoundSignalExpression::evaluate(void**) at /usr/bin/../lib/libQt6Qml.so.6 #44 0x0000707efbcb3938 at /usr/bin/../lib/libQt6Qml.so.6 #45 0x0000707efbd4cc1f in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) at /usr/bin/../lib/libQt6Qml.so.6 #46 0x0000707efb1eef5e at /usr/bin/../lib/libQt6Core.so.6 #47 0x0000707efbe165c3 in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) at /usr/bin/../lib/libQt6Qml.so.6 #48 0x0000707efbc86265 at /usr/bin/../lib/libQt6Qml.so.6 #49 0x0000707efbcac0fe at /usr/bin/../lib/libQt6Qml.so.6 #50 0x0000707efbca8804 in QQmlBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, QFlagsQQmlPropertyData::WriteFlag, QV4::Scope&) at /usr/bin/../lib/libQt6Qml.so.6 #51 0x0000707efbc9f860 in QQmlBinding::update(QFlagsQQmlPropertyData::WriteFlag) at /usr/bin/../lib/libQt6Qml.so.6 #52 0x0000707efbd4cc1f in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) at /usr/bin/../lib/libQt6Qml.so.6 #53 0x0000707efb1eef5e at /usr/bin/../lib/libQt6Core.so.6 #54 0x0000707efbe165c3 in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) at /usr/bin/../lib/libQt6Qml.so.6 #55 0x0000707efbc86265 at /usr/bin/../lib/libQt6Qml.so.6 #56 0x0000707efbd72647 in QQmlPropertyPrivate::write(QObject*, QQmlPropertyData const&, QVariant const&, QQmlRefPointer const&, QFlagsQQmlPropertyData::WriteFlag) at /usr/bin/../lib/libQt6Qml.so.6 #57 0x0000707efbbf9996 in QV4::QObjectWrapper::setProperty(QV4::ExecutionEngine*, QObject*, QQmlPropertyData const*, QV4::Value const&) at /usr/bin/../lib/libQt6Qml.so.6 #58 0x0000707efbbfa5e0 in QV4::QObjectWrapper::setQmlProperty(QV4::ExecutionEngine*, QQmlRefPointer const&, QObject*, QV4::String*, QFlagsQV4::QObjectWrapper::Flag, QV4::Value const&) at /usr/bin/../lib/libQt6Qml.so.6 #59 0x0000707efbbedbb3 in QV4::QQmlContextWrapper::virtualPut(QV4::Managed*, QV4::PropertyKey, QV4::Value const&, QV4::Value*) at /usr/bin/../lib/libQt6Qml.so.6 #60 0x0000707efbb6b4d2 in QV4::ExecutionContext::setProperty(QV4::String*, QV4::Value const&) at /usr/bin/../lib/libQt6Qml.so.6 #61 0x0000707efbc24a6a in QV4::Runtime::StoreNameSloppy::call(QV4::ExecutionEngine*, int, QV4::Value const&) at /usr/bin/../lib/libQt6Qml.so.6 #62 0x0000707efbc63f08 at /usr/bin/../lib/libQt6Qml.so.6 #63 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #64 0x0000707efbbb7496 at /usr/bin/../lib/libQt6Qml.so.6 #65 0x0000707efbc642c7 at /usr/bin/../lib/libQt6Qml.so.6 #66 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #67 0x0000707efbbb7496 at /usr/bin/../lib/libQt6Qml.so.6 #68 0x0000707efbc24081 in QV4::Runtime::CallQmlContextPropertyLookup::call(QV4::ExecutionEngine*, unsigned int, QV4::Value*, int) at /usr/bin/../lib/libQt6Qml.so.6 #69 0x0000707efbc638b7 at /usr/bin/../lib/libQt6Qml.so.6 #70 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #71 0x0000707efbbb7496 at /usr/bin/../lib/libQt6Qml.so.6 #72 0x0000707efbc642c7 at /usr/bin/../lib/libQt6Qml.so.6 #73 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #74 0x0000707efbba8873 at /usr/bin/../lib/libQt6Qml.so.6 #75 0x0000707efbbaee54 in QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) at /usr/bin/../lib/libQt6Qml.so.6 #76 0x0000707efbd1f907 in QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) at /usr/bin/../lib/libQt6Qml.so.6 #77 0x0000707efbcadc67 in QQmlBoundSignalExpression::evaluate(void**) at /usr/bin/../lib/libQt6Qml.so.6 #78 0x0000707efbcb3938 at /usr/bin/../lib/libQt6Qml.so.6 #79 0x0000707efbd4cc1f in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) at /usr/bin/../lib/libQt6Qml.so.6 #80 0x0000707efb1eef5e at /usr/bin/../lib/libQt6Core.so.6 #81 0x0000707efbe16b8f in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) at /usr/bin/../lib/libQt6Qml.so.6 #82 0x0000707efbd66662 at /usr/bin/../lib/libQt6Qml.so.6 #83 0x0000707efbc016ba at /usr/bin/../lib/libQt6Qml.so.6 #84 0x0000707efbc03507 in QV4::QObjectMethod::callPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) at /usr/bin/../lib/libQt6Qml.so.6 #85 0x0000707efbc05854 in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const at /usr/bin/../lib/libQt6Qml.so.6 #86 0x0000707efbc642c7 at /usr/bin/../lib/libQt6Qml.so.6 #87 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #88 0x0000707efbbb7496 at /usr/bin/../lib/libQt6Qml.so.6 #89 0x0000707efbc642c7 at /usr/bin/../lib/libQt6Qml.so.6 #90 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #91 0x0000707efbbb7496 at /usr/bin/../lib/libQt6Qml.so.6 #92 0x0000707efbc642c7 at /usr/bin/../lib/libQt6Qml.so.6 #93 0x0000707efbc70fd1 at /usr/bin/../lib/libQt6Qml.so.6 #94 0x0000707efbba8873 at /usr/bin/../lib/libQt6Qml.so.6 #95 0x0000707efbbaee54 in QV4::Function::call(QObject*, void**, QMetaType const*, int, QV4::ExecutionContext*) at /usr/bin/../lib/libQt6Qml.so.6 #96 0x0000707efbd1f907 in QQmlJavaScriptExpression::evaluate(void**, QMetaType const*, int) at /usr/bin/../lib/libQt6Qml.so.6 #97 0x0000707efbcadc67 in QQmlBoundSignalExpression::evaluate(void**) at /usr/bin/../lib/libQt6Qml.so.6 #98 0x0000707efbcb3938 at /usr/bin/../lib/libQt6Qml.so.6 #99 0x0000707efbd4cc1f in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) at /usr/bin/../lib/libQt6Qml.so.6 #100 0x0000707efb1eef5e at /usr/bin/../lib/libQt6Core.so.6 #101 0x0000707efcbbe4b1 in QQuickMouseArea::setPressed(Qt::MouseButton, bool, Qt::MouseEventSource) at /usr/bin/../lib/libQt6Quick.so.6 #102 0x0000707efcbbe7e7 in QQuickMouseArea::mouseReleaseEvent(QMouseEvent*) at /usr/bin/../lib/libQt6Quick.so.6 #103 0x0000707efcb8b716 in QQuickItemPrivate::deliverPointerEvent(QEvent*) at /usr/bin/../lib/libQt6Quick.so.6 #104 0x0000707efcb9644a in QQuickItem::event(QEvent*) at /usr/bin/../lib/libQt6Quick.so.6 #105 0x0000707efb1822b7 in QCoreApplication::notifyInternal2(QObject*, QEvent*) at /usr/bin/../lib/libQt6Core.so.6 #106 0x0000707efcdadd7f in QQuickDeliveryAgentPrivate::deliverMatchingPointsToItem(QQuickItem*, bool, QPointerEvent*, bool) at /usr/bin/../lib/libQt6Quick.so.6 #107 0x0000707efcdae568 in QQuickDeliveryAgentPrivate::deliverUpdatedPoints(QPointerEvent*) at /usr/bin/../lib/libQt6Quick.so.6 #108 0x0000707efcdb0085 in QQuickDeliveryAgentPrivate::deliverPointerEvent(QPointerEvent*) at /usr/bin/../lib/libQt6Quick.so.6 #109 0x0000707efcdb0f4a in QQuickDeliveryAgentPrivate::handleMouseEvent(QMouseEvent*) at /usr/bin/../lib/libQt6Quick.so.6 #110 0x0000707efcda4a42 in QQuickDeliveryAgent::event(QEvent*) at /usr/bin/../lib/libQt6Quick.so.6 #111 0x0000707efcc672e4 in QQuickWindow::event(QEvent*) at /usr/bin/../lib/libQt6Quick.so.6 #112 0x0000707efb1822b7 in QCoreApplication::notifyInternal2(QObject*, QEvent*) at /usr/bin/../lib/libQt6Core.so.6 #113 0x0000707efc1b70bf in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) at /usr/bin/../lib/libQt6Gui.so.6 #114 0x0000707efc230d3a in QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) at /usr/bin/../lib/libQt6Gui.so.6 #115 0x0000707efc77be73 at /usr/bin/../lib/libQt6Gui.so.6 #116 0x0000707efdb1ec75 at /usr/bin/../lib/libglib-2.0.so.0 #117 0x0000707efdb20ed6 at /usr/bin/../lib/libglib-2.0.so.0 #118 0x0000707efdb21054 in g_main_context_iteration at /usr/bin/../lib/libglib-2.0.so.0 #119 0x0000707efb496f31 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) at /usr/bin/../lib/libQt6Core.so.6 #120 0x0000707efb18f663 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) at /usr/bin/../lib/libQt6Core.so.6 #121 0x0000707efb186859 in QCoreApplication::exec() at /usr/bin/../lib/libQt6Core.so.6 #122 0x00005f58a40375f1 at /usr/bin/quickshell #123 0x00005f58a402701f at /usr/bin/quickshell #124 0x00005f58a402ccef at /usr/bin/quickshell #125 0x00005f58a4015490 at /usr/bin/quickshell #126 0x0000707efa827780 at /usr/bin/../lib/libc.so.6 #127 0x0000707efa8278b8 in __libc_start_main at /usr/bin/../lib/libc.so.6 #128 0x00005f58a4018084 at /usr/bin/quickshell

===== 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.

henderb avatar Oct 11 '26 15:10 henderb

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.

omarchybot avatar Oct 11 '26 22:10 omarchybot