popey / spot-snap

9 stars 0 forks source link

Missing libx11.so.6 dependency from spot snap app #8

Closed craigwilliamsonnz closed 3 weeks ago

craigwilliamsonnz commented 1 month ago

Environment: Ubuntu 24.04 running on Raspberry Pi 5 - latest updates applied

Description: I'm not sure where the problem originates from but I'll post it here for now. If I try to run spot from the command line I get the following error:

craig@craig-desktop:~$ snap run spot /snap/spot/88/usr/bin/spot: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory craig@craig-desktop:~$

If I check the connections it looks like the x11 connection is present: craig@craig-desktop:~$ snap connections spot Interface Plug Slot Notes audio-playback spot:audio-playback :audio-playback - content[gnome-46-2404] spot:gnome-46-2404 gnome-46-2404:gnome-46-2404 - content[gtk-3-themes] spot:gtk-3-themes gtk-common-themes:gtk-3-themes - content[icon-themes] spot:icon-themes gtk-common-themes:icon-themes - content[sound-themes] spot:sound-themes gtk-common-themes:sound-themes - dbus - spot:spot - desktop spot:desktop :desktop - desktop-legacy spot:desktop-legacy :desktop-legacy - gsettings spot:gsettings :gsettings - mpris - spot:spot-mpris - network spot:network :network - opengl spot:opengl :opengl - password-manager-service spot:password-manager-service - - wayland spot:wayland :wayland - x11 spot:x11 :x11 - craig@craig-desktop:~$

If I run the following I get the following result: craig@craig-desktop:~$ sudo find /snap -name libX11.so.6 /snap/mesa-2404/48/usr/lib/aarch64-linux-gnu/libX11.so.6 /snap/chromium/2906/usr/lib/aarch64-linux-gnu/libX11.so.6 /snap/gnome-42-2204/178/usr/lib/aarch64-linux-gnu/libX11.so.6 /snap/cups/1059/usr/lib/aarch64-linux-gnu/libX11.so.6 /snap/thunderbird/483/usr/lib/aarch64-linux-gnu/libX11.so.6 /snap/thunderbird/491/usr/lib/aarch64-linux-gnu/libX11.so.6 /snap/gnome-46-2404/25/usr/lib/aarch64-linux-gnu/libX11.so.6 craig@craig-desktop:~$

It was working correctly for up to at least a week ago so possibly an ubuntu update made it get into this state. I've tried uninstalling and reinstalling but no change occurred. if you need any more help diagnosing the issue please let me know and I'll get more information. So far I haven't seen any other snaps failing with this error. Thanks.

popey commented 1 month ago

Thanks for filing the issue. Sorry to hear it broke.

I suspect it might be this: https://forum.snapcraft.io/t/q-about-migration-to-core24-gnome-46/41100/13 which may be fixed, if I trigger a fresh build. Which I have just done. Let's see if the next build in the edge channel works.

popey commented 1 month ago

Nope. Still broken. Sorry.

spot
libpxbackend-1.0.so: cannot open shared object file: No such file or directory
Failed to load module: /home/alan/snap/spot/common/.cache/gio-modules/libgiolibproxy.so
xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb
xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb
Segmentation fault (core dumped)
popey commented 1 month ago

Ok, try spot from edge, and gnome-46-2404 from edge too..

snap refresh spot --edge ; snap refresh gnome-46-2404 --edge

Works here on my arm64 Ubuntu laptop.

image

craigwilliamsonnz commented 1 month ago

It is working for me now so thank you very much for fixing that so quickly. I'm seeing a couple of warnings but that isn't stopping the app from behaving correctly as far as I can tell.

craig@craig-desktop:~$ snap run spot libpxbackend-1.0.so: cannot open shared object file: No such file or directory Failed to load module: /home/craig/snap/spot/common/.cache/gio-modules/libgiolibproxy.so

(process:5862): Adwaita-CRITICAL **: 13:43:58.017: adw_leaflet_set_visible_child: assertion 'contains_child' failed craig@craig-desktop:~$

So feel free to close the issue if you like. Thanks again for the quick turn around.