Cannot launch application by icon ('scope is not a snap cgroup'), but command line works

From time to time I get this weird situation where I click on an application icon, the spinner spins for couple of second and stops and nothing is happening. At the same time, launching application by command line works without problem. Usually the issue goes away by itself, faster in some cases, slower for others, like just now with thunderbird I had this problem for solid couple of minutes, and it also was solved by itself. It lasted long enough for me to observe it for couple of minutes, then get some logs, then write most of this post.

While it was happening, clicking aplication icon on desktop panel was producing such messages in syslog:

Jul  1 20:54:16 pc systemd[2875]: Started snap.thunderbird.thunderbird.a930894d-7b4e-4ea6-ba79-f7d864c451bd.scope.
Jul  1 20:54:16 pc systemd[2875]: Started Application launched by gnome-shell.
Jul  1 20:54:16 pc thunderbird_thunderbird.desktop[688945]: /user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-thunderbird_thunderbird-688945.scope is not a snap cgroup

DBUS_SESSION_BUS_ADDRESS env var seems to be ok:

echo $DBUS_SESSION_BUS_ADDRESS
unix:path=/run/user/1000/bus

My system:

$ snap version
snap    2.59.5
snapd   2.59.5
series  16
ubuntu  22.04
kernel  5.15.0-75-generic

This time it was with thunderbird snap, but I do not think it is specific to any particular snap; I had it with others. Next time it happens I would like to get neccesary information required for filing proper bug report, so any sugestions what info I could get are welcome. Or maybe we will solve the mystery here :slight_smile:

Hi mrk,

Do you have the thunderbird deb package installed as well?

Hi @ernestl, no, just snap.

$ find / -name "*thunderbird.desktop"
/snap/thunderbird/332/meta/gui/thunderbird.desktop
/snap/thunderbird/339/meta/gui/thunderbird.desktop
/snap/thunderbird/339/snap/gui/thunderbird.desktop
/var/lib/snapd/desktop/applications/thunderbird_thunderbird.desktop

two attempts to launch by icon and third by command line:

Hi mrk,

I cannot yet reproduce the issue: ubuntu 22.04 snapd 2.59.5 thunderbird 102.13.0-1 (revision 344)

Log for icon start:

Jul 19 09:25:41 ernest systemd[1482]: Started Application launched by gnome-shell.
Jul 19 09:25:41 ernest systemd[1482]: Started snap.thunderbird.thunderbird.fb431c9f-ca6d-4188-9daa-3a4f195fb026.scope.
Jul 19 09:25:41 ernest thunderbird_thunderbird.desktop[2298268]: [GFX1-]: glxtest: libpci missing
Jul 19 09:25:41 ernest thunderbird_thunderbird.desktop[2298268]: ATTENTION: default value of option mesa_glthread overridden by environment.
Jul 19 09:25:41 ernest thunderbird_thunderbird.desktop[2298268]: /usr/share/libdrm/amdgpu.ids: No such file or directory
Jul 19 09:25:41 ernest thunderbird_thunderbird.desktop[2298268]: ATTENTION: default value of option mesa_glthread overridden by environment.
Jul 19 09:25:41 ernest thunderbird_thunderbird.desktop[2298268]: amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
Jul 19 09:25:41 ernest thunderbird_thunderbird.desktop[2298268]: If they do, bad things may happen!
Jul 19 09:25:41 ernest kernel: [134360.397400] audit: type=1326 audit(1689751541.723:2026): auid=1000 uid=1000 gid=1000 ses=2 subj=snap.thunderbird.thunderbird pid=2298268 comm="thunderbird-bin" exe="/snap/thunderbird/344/thunderbird-bin" sig=0 arch=c000003e syscall=312 compat=0 ip=0x7f7c81ee7a3d code=0x50000
Jul 19 09:25:41 ernest thunderbird_thunderbird.desktop[2298268]: ATTENTION: default value of option mesa_glthread overridden by environment.
Jul 19 09:25:41 ernest kernel: [134360.420695] audit: type=1326 audit(1689751541.747:2027): auid=1000 uid=1000 gid=1000 ses=2 subj=snap.thunderbird.thunderbird pid=2298268 comm="GLXVsyncThread" exe="/snap/thunderbird/344/thunderbird-bin" sig=0 arch=c000003e syscall=312 compat=0 ip=0x7f7c81ee7a3d code=0x50000
Jul 19 09:25:41 ernest kernel: [134360.420711] audit: type=1326 audit(1689751541.747:2028): auid=1000 uid=1000 gid=1000 ses=2 subj=snap.thunderbird.thunderbird pid=2298268 comm="GLXVsyncThread" exe="/snap/thunderbird/344/thunderbird-bin" sig=0 arch=c000003e syscall=312 compat=0 ip=0x7f7c81ee7a3d code=0x50000
Jul 19 09:25:41 ernest kernel: [134360.451584] audit: type=1326 audit(1689751541.775:2029): auid=1000 uid=1000 gid=1000 ses=2 subj=snap.thunderbird.thunderbird pid=2298268 comm="Renderer" exe="/snap/thunderbird/344/thunderbird-bin" sig=0 arch=c000003e syscall=312 compat=0 ip=0x7f7c81ee7a3d code=0x50000
Jul 19 09:25:41 ernest kernel: [134360.451591] audit: type=1326 audit(1689751541.775:2030): auid=1000 uid=1000 gid=1000 ses=2 subj=snap.thunderbird.thunderbird pid=2298268 comm="Renderer" exe="/snap/thunderbird/344/thunderbird-bin" sig=0 arch=c000003e syscall=312 compat=0 ip=0x7f7c81ee7a3d code=0x50000
Jul 19 09:25:41 ernest kernel: [134360.451595] audit: type=1326 audit(1689751541.775:2031): auid=1000 uid=1000 gid=1000 ses=2 subj=snap.thunderbird.thunderbird pid=2298268 comm="Renderer" exe="/snap/thunderbird/344/thunderbird-bin" sig=0 arch=c000003e syscall=312 compat=0 ip=0x7f7c81ee7a3d code=0x50000
Jul 19 09:25:41 ernest thunderbird_thunderbird.desktop[2298268]: ATTENTION: default value of option mesa_glthread overridden by environment.
Jul 19 09:25:41 ernest dbus-daemon[1534]: apparmor="DENIED" operation="dbus_method_call"  bus="session" path="/org/a11y/bus" interface="org.freedesktop.DBus.Properties" member="Get" mask="send" name="org.a11y.Bus" pid=2298268 label="snap.thunderbird.thunderbird" peer_pid=1859 peer_label="unconfined"
Jul 19 09:25:42 ernest rtkit-daemon[1510]: Supervising 6 threads of 3 processes of 1 users.
Jul 19 09:25:42 ernest rtkit-daemon[1510]: message repeated 5 times: [ Supervising 6 threads of 3 processes of 1 users.]
Jul 19 09:25:42 ernest rtkit-daemon[1510]: Successfully made thread 2298524 of process 2298268 owned by '1000' RT at priority 10.
Jul 19 09:25:42 ernest rtkit-daemon[1510]: Supervising 7 threads of 4 processes of 1 users.

sudo find -name “thunderbird.desktop” in /snap/:

./thunderbird/344/meta/gui/thunderbird.desktop
./thunderbird/344/snap/gui/thunderbird.desktop