canonical/snapcraft.io

Snap packages broken

Closed this issue · 20 comments

Recently (after Ubuntu 23.10 updated to Mesa 23.3.0) snap apps fail to launch, all I get are empty white windows. I have two snaps - Software app and Musicpod app, both render as only white windows.

image

I must note, after Mesa update same thing happened to some flatpaks as well, but after Freedesktop platform 22.08.19 update (which I got yesterday) functionality was restored, unfortunately Snaps remain broken. They throw the same error as flatpaks did before:

(musicpod:497064): Gdk-CRITICAL **: 17:07:18.950: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
package:media_kit_libs_linux registered.
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

** (musicpod:497064): WARNING **: 17:07:19.092: Failed to start Flutter renderer: Unable to create a GL context

And snap-store output:

⋊> ~ snap run snap-store                                                             17:14:47
Gtk-Message: 17:14:58.992: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(snap-store:515079): Gtk-WARNING **: 17:14:59.051: GTK+ module /snap/snap-store/1046/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 17:14:59.051: Failed to load module "canberra-gtk-module"

(snap-store:515079): Gtk-WARNING **: 17:14:59.052: GTK+ module /snap/snap-store/1046/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 17:14:59.052: Failed to load module "canberra-gtk-module"
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

** (snap-store:515079): WARNING **: 17:14:59.166: Failed to start Flutter renderer: Unable to create a GL context
> ~ snap --version                                                                  
snap    2.60.4+23.10.1
snapd   2.60.4+23.10.1
series  16
ubuntu  23.10
kernel  6.6.7-060607-generic

Are they still broken if you reinstall them?

Are they still broken if you reinstall them?

I tried just now, snap-store works, Firefox works, Musicpod does not work, same white window.

⋊> ~ snap run musicpod                                                               18:41:16
Gtk-Message: 18:41:21.042: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(musicpod:619097): Gtk-WARNING **: 18:41:21.100: GTK+ module /snap/musicpod/676/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 18:41:21.100: Failed to load module "canberra-gtk-module"

(musicpod:619097): Gtk-WARNING **: 18:41:21.101: GTK+ module /snap/musicpod/676/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 18:41:21.101: Failed to load module "canberra-gtk-module"

(musicpod:619097): Gdk-CRITICAL **: 18:41:21.105: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
package:media_kit_libs_linux registered.
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

** (musicpod:619097): WARNING **: 18:41:21.276: Failed to start Flutter renderer: Unable to create a GL context

** (musicpod:619097): WARNING **: 18:41:22.743: Unable to retrieve framework response: No engine to send to

I tried to reproduce this with musicpod but everything fine here. BUt I only have an intel machine for ubuntu here atm. I can check on monday on a machine with amd gpu

fwiw musicpod running successfully on my AMD Radeon RX 6500 and 680M.

Only difference i can see from OP is:

snap    2.60.4+23.10.1
snapd   2.60.4+23.10.1
series  16
ubuntu  23.10
kernel  6.5.0-14-generic # <---- OP on 6.6

fwiw musicpod running successfully on my AMD Radeon RX 6500 and 680M.

Only difference i can see from OP is:

snap    2.60.4+23.10.1
snapd   2.60.4+23.10.1
series  16
ubuntu  23.10
kernel  6.5.0-14-generic # <---- OP on 6.6

Actually, another difference is, that I use kisak-mesa ppa, to update to Mesa 23.3, which these issues started to happen when I updated mesa. Kernel 6.6 has no effect on this as I tested 6.5, too. Some of flatpaks also had this exact problem on my machine, but they pushed this Freedesktop platform 22.08.19 update, and all the flatpaks are running fine. They mentioned that they had to update Mesa they are shipping separately, as there also was a bug report for this issue. Now I have no clue how snaps work, do they also have separate Mesa they use?

spydon mentioned reinstalling might help, which actually did work on snap-store and Skype. Musicpod remains the last app I use that has this issue still.

Eventually try check if your system is missing these libraries

sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

Eventually try check if your system is missing these libraries

sudo apt install libcanberra-gtk-module libcanberra-gtk3-module
⋊> ~ sudo apt install libcanberra-gtk-module libcanberra-gtk3-module                 10:03:42

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libcanberra-gtk-module is already the newest version (0.30-10ubuntu4).
libcanberra-gtk3-module is already the newest version (0.30-10ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Musicpod remains just as white window:

⋊> ~ snap run musicpod                                                               10:05:04
Gtk-Message: 10:05:07.570: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(musicpod:114019): Gtk-WARNING **: 10:05:07.621: GTK+ module /snap/musicpod/676/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 10:05:07.621: Failed to load module "canberra-gtk-module"

(musicpod:114019): Gtk-WARNING **: 10:05:07.642: GTK+ module /snap/musicpod/676/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 10:05:07.642: Failed to load module "canberra-gtk-module"

(musicpod:114019): Gdk-CRITICAL **: 10:05:07.645: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
package:media_kit_libs_linux registered.
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

** (musicpod:114019): WARNING **: 10:05:07.766: Failed to start Flutter renderer: Unable to create a GL context

Other snap apps seem tu run fine.

Before the mesa update:

grafik

after reboot

grafik

snap    2.60.4+23.10.1
snapd   2.60.4+23.10.1
series  16
ubuntu  23.10
kernel  6.5.0-14-generic

Before the mesa update:

grafik

after reboot

grafik

snap    2.60.4+23.10.1
snapd   2.60.4+23.10.1
series  16
ubuntu  23.10
kernel  6.5.0-14-generic

So how is my install any different? I have installed Ubuntu 23.10 very recently, and added Kisak-mesa ppa to be on the latest one, that's pretty much all I did, and for one person it works, for another - it doesn't. So weird.

I tested on AMD laptop with integrated GPU, and it works there too, My desktop though has an AMD RDNA3 GPU. But if other people have no complains, I guess I will close the issue, as other snaps are currently working fine, borked music player is not a huge issue, can use just another program for now.

@cybbro eventually we could continue this issue on the musicpod repo since it looks like a musicpod issue, I've pushed a linux specifc fix and the CD pushed the snap in the edge channel already, if you have time eventually check if this snap update fixes the issue

@cybbro eventually we could continue this issue on the musicpod repo since it looks like a musicpod issue, I've pushed a linux specifc fix and the CD pushed the snap in the edge channel already, if you have time eventually check if this snap update fixes the issue

Yeah, of course! Thanks for your help! I am just happy all the other apps run well now.

@cybbro what channel of the snap-store are you running?
I have the same issue reported on MusicPod and it looks like all flutter desktop apps have this problem with the new kernel
ubuntu-flutter-community/musicpod#370 (comment)

@cybbro what channel of the snap-store are you running? I have the same issue reported on MusicPod and it looks like all flutter desktop apps have this problem with the new kernel ubuntu-flutter-community/musicpod#370 (comment)

My snap store is the stable one (gnome-software 41.4), as the new one doesn't work (white window). Browsing the link you sent I can confirm that firmware-updater doesn't launch either.

I am on the latest 6.6.8 kernel. But I tried booting Ubuntu with default 6.5.0.14 and the problem persists.

Okay then I think we could re-open this bug here @spydon

Okay then I think we could re-open this bug here @spydon

I don't have any power in this repository unfortunately. But @cybbro can re-open it themselves I think when they were the one that closed it?

@cybbro to be really sure that it is not only flutter but flutter in snaps

what other package formats do you use?
if you use flatpaks I know a very nice matrix client which is available as both snap and flatpak, maybe you could test this one as well?
https://flathub.org/apps/im.fluffychat.Fluffychat
https://snapcraft.io/fluffychat

Sure!

This is Flatpak version:

image

And this is Snap:

image

⋊> ~ sudo snap install fluffychat                                                    13:39:02

[sudo] password for eima: 
fluffychat rc1.15.1-1+git2.b70d1e0b from Krille-chan (krillechritzel) installed
⋊> ~ snap run fluffychat                                                             13:39:56
Gtk-Message: 13:40:08.815: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(fluffychat:285271): Gtk-WARNING **: 13:40:08.885: GTK+ module /snap/fluffychat/924/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 13:40:08.885: Failed to load module "canberra-gtk-module"

(fluffychat:285271): Gtk-WARNING **: 13:40:08.888: GTK+ module /snap/fluffychat/924/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 13:40:08.888: Failed to load module "canberra-gtk-module"

(fluffychat:285271): Gdk-CRITICAL **: 13:40:09.029: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

** (fluffychat:285271): WARNING **: 13:40:09.289: Failed to start Flutter renderer: Unable to create a GL context

** (fluffychat:285271): WARNING **: 13:40:34.508: atk-bridge: get_device_events_reply: unknown signature

** (fluffychat:285271): WARNING **: 13:41:30.851: Unable to retrieve framework response: No engine to send to

** (fluffychat:285271): WARNING **: 13:41:31.440: Unable to retrieve framework response: No engine to send to

Perfect ! Thank you :)
Now we can be pretty sure it's a snap problem

Snaps are working again!

image

image

⋊> ~ snap --version                                                                  20:00:29
snap    2.60.4+23.10.1
snapd   2.60.4+23.10.1
series  16
ubuntu  23.10
kernel  6.6.8-060608-generic
⋊> ~ glxinfo -B | grep mesa                                                          20:00:44
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.3.2 - kisak-mesa PPA
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.3.2 - kisak-mesa PPA
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.3.2 - kisak-mesa PPA

Awesome news @cybbro !