xapp-sn-watcher segfaults in g_dbus_proxy_get_name every time Blip (Flatpak) registers its tray icon
まだ誰も着手していません。
評価
調査の方向性
The crash is in the xapp-sn-watcher binary, inside an async D-Bus callback that calls g_dbus_proxy_get_name; the reporter suspects get_all_properties_callback in sn-item.c, where the item or proxy may be freed before the callback runs. Start by reproducing with a StatusNotifierItem registration (or Blip) under a debug build, then check the object lifetimes around the proxy in that callback. Done means the watcher survives item registration and removal without segfaulting, and other tray icons stay up.
索引モデルが issue の本文から書いたものです。
説明
Distribution: Linux Mint 22.3 (zena), Cinnamon 6.6.9
Packages: libxapp1 / xapps-common 3.2.3+zena, libglib2.0-0t64 2.80.0-6ubuntu3.9
Kernel: 7.0.0-38-generic
Application: Blip 1.2.6 (Flathub, net.blip.Blip, runtime org.freedesktop.Platform 26.08)
Issue
xapp-sn-watcher crashes with SIGSEGV every time Blip registers its StatusNotifierItem. Because the watcher is gone, every other tray icon (e.g. blueman) disappears too. cinnamon-session then stops respawning it ("respawning too quickly"), and Blip quits because it can no longer show its tray icon. Blip's "Launch at Login" therefore never works.
Steps to reproduce
- Install Blip from Flathub and enable "Launch at Login" (it starts with
--background --delay 5). - Log in, or start Blip manually:
flatpak run --command=/app/bin/blip net.blip.Blip --background. - About 2 seconds later, xapp-sn-watcher segfaults. All tray icons disappear and Blip exits.
This is reproducible on every attempt. There were 7 core dumps on 2026-10-16.
When it started
Blip's tray icon worked until the first reboot after the update of 2026-10-14, which took xapps 3.2.2 -> 3.2.3, glib 2.80.0-6ubuntu3.6 -> 3.9 and Cinnamon 6.6.4 -> 6.6.9. Since that reboot, it crashes every time.
Journal
kernel: traps: xapp-sn-watcher[3794] general protection fault ip:7b3a0a11546d sp:7ffdf3bcd9e0 error:0 in libgio-2.0.so.0.8000.0[11e46d,7b3a0a030000+117000]
systemd-coredump: Process 3794 (xapp-sn-watcher) of user 1000 dumped core.
cinnamon-session-binary: WARNING: Application 'xapp-sn-watcher.desktop' killed by signal 11
cinnamon-session-binary: WARNING: App 'xapp-sn-watcher.desktop' respawning too quickly
~/.xsession-errors shows that the item is added and then everything is removed:
JS LOG: [LookingGlass/info] Adding XAppStatusIcon: (:1.162/org/x/StatusIcon/Icon_1)
WARNING: Application 'xapp-sn-watcher.desktop' killed by signal 11
JS LOG: [LookingGlass/info] Removing XAppStatusIcon: :1.169 (:1.162/org/x/StatusIcon/Icon_1)
JS LOG: [LookingGlass/info] Removing XAppStatusIcon: blueman (:1.162/org/x/StatusIcon/Icon)
Blip's own log at the same moment:
ERROR msg="requesting autostart via portal" err="org.freedesktop.dbus.errors.UnknownMethod: No such interface "org.freedesktop.portal.Background" on object at path /org/freedesktop/portal/desktop"
ERROR msg="preloading sound theme" exception="kotlinx.coroutines.JobCancellationException: Parent job is Cancelling"
at net.blip.desktop.ui.windowing.LinuxTrayKt$LinuxTray$5$1.invokeSuspend(LinuxTray.kt:70)
Error: The application has experienced an internal error and must quit.
Backtrace (crashing thread)
#0 g_dbus_proxy_get_name (libgio-2.0.so.0 + 0x11e46d)
#1 n/a (xapp-sn-watcher + 0x1036f)
#2 n/a (libgio-2.0.so.0 + 0xb17bb)
#3 n/a (libgio-2.0.so.0 + 0xb5713)
#4 n/a (libgio-2.0.so.0 + 0x10ff72)
#5 n/a (libgio-2.0.so.0 + 0xb17bb)
#6 n/a (libgio-2.0.so.0 + 0xb17f5)
#7 n/a (libglib-2.0.so.0 + 0x5d50e)
#8 n/a (libglib-2.0.so.0 + 0xbcbf7)
#9 g_main_context_iteration (libglib-2.0.so.0 + 0x5cad3)
#10 g_application_run (libgio-2.0.so.0 + 0xe789d)
#11 main (xapp-sn-watcher + 0xa010)
The frame inside xapp-sn-watcher is an async D-Bus callback calling g_dbus_proxy_get_name, which looks like the same crash as the older Fedora reports (get_all_properties_callback in sn-item.c, e.g. https://retrace.fedoraproject.org/faf/reports/1119084). My guess is that the proxy/item is freed before the callback runs. This may be related to #213.
Workaround
Restarting /usr/lib/x86_64-linux-gnu/xapps/xapp-sn-watcher brings the other icons back, but it crashes again the next time Blip starts.
- 主要言語
- C
- スター
- 170
- フォーク
- 50
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxmint/xapp のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
似ている issue
-
v9.6.0: CMake incorrectly enforces presence of libevdev対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
IoTSDK
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Azure/azure-iot-sdk-c#2776 ·
メンテナーはふだん 2 日以内に返信
-
[Bug] Unhandled ValueError terminates watchdog thread when GISRC value contains multiple colonsオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug Component component: net
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
RT-Thread/rt-thread#11913 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
contiki-ng/contiki-ng#3289 ·
メンテナーはふだん 3 日以内に返信