xapp-sn-watcher segfaults in g_dbus_proxy_get_name every time Blip (Flatpak) registers its tray icon
还没有人认领这个 Issue。
评估
调研方向
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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
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 天内回复
-
area:docs help wanted type:enhancement
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复