Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

xapp-sn-watcher segfaults in g_dbus_proxy_get_name every time Blip (Flatpak) registers its tray icon

Đang mở
#217 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, linux
Lĩnh vực
desktop

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

  1. Install Blip from Flathub and enable "Launch at Login" (it starts with --background --delay 5).
  2. Log in, or start Blip manually: flatpak run --command=/app/bin/blip net.blip.Blip --background.
  3. 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.

Ngôn ngữ chính
C
Star
170
Fork
50
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linuxmint/xapp

Tất cả issue của linuxmint/xapp

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.