Snap-store Segmentation fault in Wayland session

snap-store Segmentation fault in Wayland session. No problem in X11.

corrado@corrado-x4-ff-0315:~$ snap run snap-store
Segmentation fault (core dumped)
corrado@corrado-x4-ff-0315:~$ inxi -SCGx
System: Host: corrado-x4-ff-0315 Kernel: 5.4.0-18-generic x86_64 bits: 64 compiler: gcc
v: 9.2.1 Desktop: Gnome 3.35.91 Distro: Ubuntu 20.04 LTS (Focal Fossa)
CPU: Topology: Dual Core model: Intel Core i3-7100 bits: 64 type: MT MCP
arch: Kaby Lake rev: 9 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31199
Speed: 800 MHz min/max: 800/3900 MHz Core speeds (MHz): 1: 800 2: 800 3: 800
4: 802
Graphics: Device-1: Intel HD Graphics 630 vendor: ASRock driver: i915 v: kernel
bus ID: 00:02.0
Display: wayland server: X.Org 1.20.7 driver: i915 resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 20.0.0
direct render: Yes
corrado@corrado-x4-ff-0315:~$

Perhaps @kenvandine could comment on this.

What’s snap version though?

corrado@corrado-x4-ff-0315:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.43.3 8689 latest/stable canonicalâś“ core
core18 20200124 1668 latest/stable canonicalâś“ base
gnome-3-34-1804 0+git.2c86692 21 latest/stable/… canonical✓ -
gtk-common-themes 0.1-29-g45e78c5 1474 latest/stable/… canonical✓ -
snap-store 20200318.3b39451 308 latest/stable/… canonical✓ -
corrado@corrado-x4-ff-0315:~$ snap run snap-store
Segmentation fault (core dumped)
corrado@corrado-x4-ff-0315:~$

1 Like

removed and re installed snap store. installed version is 209 instead 308 and now the problem is disappeared
corrado@corrado-p7-ff-0302:~$ echo $DESKTOP_SESSION
ubuntu-wayland
corrado@corrado-p7-ff-0302:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.43.3 8689 latest/stable canonicalâś“ core
core18 20200124 1668 latest/stable canonicalâś“ base
gnome-3-28-1804 3.28.0-16-g27c9498.27c9498 116 latest/stable canonicalâś“ -
gnome-3-34-1804 0+git.2c86692 21 latest/stable/… canonical✓ -
gtk-common-themes 0.1-29-g45e78c5 1474 latest/stable/… canonical✓ -
snap-store 20200318.3b39451 308 latest/stable/… canonical✓ -
corrado@corrado-p7-ff-0302:~$ snap-store
Segmentation fault (core dumped)
corrado@corrado-p7-ff-0302:~$ snap refresh snap-store
snap “snap-store” has no updates available
corrado@corrado-p7-ff-0302:~$ snap remove snap-store
snap-store removed
corrado@corrado-p7-ff-0302:~$ snap install snap-store
snap-store 20191114.a9948d5 from Canonicalâś“ installed
corrado@corrado-p7-ff-0302:~$ snap run snap-store
06:40:36:0657 Gs enabled plugins: odrs, rewrite-resource, snap, icons, key-colors, key-colors-metadata
06:40:36:0657 Gs disabled plugins: appstream, desktop-categories, desktop-menu-path, dpkg, dummy, epiphany, fedora-pkgdb-collections, generic-updates, hardcoded-blacklist, hardcoded-featured, hardcoded-popular, modalias, os-release, provenance, provenance-license, repos, shell-extensions
06:40:41:0181 Gs failed to create an app for ////system/*
06:40:41:0184 Gs updates-shell: failed to get updates: no plugin could handle get-updates
06:40:41:0184 Gs failed to create an app for ////system/*
06:40:41:0184 Gs failed to get system app
06:40:41:0185 Gs Only 0 apps for recent list, hiding
06:40:41:0201 GsPluginSnap Failed to load snap icon: local snap has no icon
06:40:41:0328 Gs hiding category games featured applications: found only 0 to show, need at least 9
06:40:41:0351 Gs hiding category productivity featured applications: found only 0 to show, need at least 9
06:40:41:0515 GsPluginSnap Failed to load snap icon: local snap has no icon
corrado@corrado-p7-ff-0302:~$
corrado@corrado-p7-ff-0302:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.43.3 8689 latest/stable canonicalâś“ core
core18 20200124 1668 latest/stable canonicalâś“ base
gnome-3-28-1804 3.28.0-16-g27c9498.27c9498 116 latest/stable canonicalâś“ -
gnome-3-34-1804 0+git.2c86692 21 latest/stable/… canonical✓ -
gtk-common-themes 0.1-29-g45e78c5 1474 latest/stable/… canonical✓ -
snap-store 20191114.a9948d5 209 latest/stable canonicalâś“ -
corrado@corrado-p7-ff-0302:~$

1 Like

I suspect there is something new in gnome-software/snap-store that is using clutter, which is known to have issues in wayland. Can you try this with the revision of the snap that was crashing?

Make sure you kill any snap-store background processes and run this:

DISABLE_WAYLAND=1 snap-store

Thanks!

1 Like

I removed snap-store 209 (was ok in Wayland) and re-installed snap-store 308. now starting snap store i have a lot of messages:
corrado@corrado-x4-ff-0315:~$ snap-store
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/appdata /usr/share/appdata-2 none bind,ro 0 0): permission denied
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/metainfo /usr/share/metainfo-2 none bind,ro 0 0): permission denied
Warning: Schema “org.gnome.system.locale” has path “/system/locale/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy” has path “/system/proxy/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.http” has path “/system/proxy/http/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.https” has path “/system/proxy/https/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.ftp” has path “/system/proxy/ftp/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.socks” has path “/system/proxy/socks/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Segmentation fault (core dumped)
corrado@corrado-x4-ff-0315:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.43.3 8689 latest/stable canonicalâś“ core
core18 20200311 1705 latest/stable canonicalâś“ base
gnome-3-28-1804 3.28.0-16-g27c9498.27c9498 116 latest/stable canonicalâś“ -
gnome-3-34-1804 0+git.2c86692 21 latest/stable/… canonical✓ -
gtk-common-themes 0.1-29-g45e78c5 1474 latest/stable/… canonical✓ -
snap-store 20200318.3b39451 308 latest/beta canonicalâś“ -
corrado@corrado-x4-ff-0315:~$ snap run snap-store
Segmentation fault (core dumped)
corrado@corrado-x4-ff-0315:~$

running the commans You suggest:
corrado@corrado-x4-ff-0315:~$ DISABLE_WAYLAND=1 snap-store
Segmentation fault (core dumped)
corrado@corrado-x4-ff-0315:~$

thanks

Please post the output of snap version as was requested a few posts up…

The info posted in my post 3 was not sufficient? Do You need more detail?

Well, I hit the same bug. I use Focal up to date, gnome session, wayland.

$ snap version

 snap    2.44+20.04
 snapd   2.44+20.04
 series  16
 ubuntu  20.04
 kernel  5.4.0-20-generic

and

    `    $ snap list

    Nom                Version                     Révision  Suivi          Éditeur     Notes
    core18             20200311                    1705      latest/stable  canonicalâś“  base
    gnome-3-28-1804    3.28.0-16-g27c9498.27c9498  116       latest/stable  canonicalâś“  -
    gnome-3-34-1804    0+git.2c86692               21        latest/stable  canonicalâś“  -
    gtk-common-themes  0.1-29-g45e78c5             1474      latest/stable  canonicalâś“  -
    snap-store         20200323.7c09bc5            317       latest/edge    canonicalâś“  -
    snapd              2.43.3                      6434      latest/stable  canonicalâś“  snapd`

and

$ snap-store

    Attention : le schéma « org.gnome.system.locale » comporte le chemin « /system/locale/ ». Les chemins commençant par « /apps/ », « /desktop/ » ou « /system/ » sont obsolètes.
    Attention : le schéma « org.gnome.system.proxy » comporte le chemin « /system/proxy/ ». Les chemins commençant par « /apps/ », « /desktop/ » ou « /system/ » sont obsolètes.
    Attention : le schéma « org.gnome.system.proxy.http » comporte le chemin « /system/proxy/http/ ». Les chemins commençant par « /apps/ », « /desktop/ » ou « /system/ » sont obsolètes.
    Attention : le schéma « org.gnome.system.proxy.https » comporte le chemin « /system/proxy/https/ ». Les chemins commençant par « /apps/ », « /desktop/ » ou « /system/ » sont obsolètes.
    Attention : le schéma « org.gnome.system.proxy.ftp » comporte le chemin « /system/proxy/ftp/ ». Les chemins commençant par « /apps/ », « /desktop/ » ou « /system/ » sont obsolètes.
    Attention : le schéma « org.gnome.system.proxy.socks » comporte le chemin « /system/proxy/socks/ ». Les chemins commençant par « /apps/ », « /desktop/ » ou « /system/ » sont obsolètes.
    Erreur de segmentation

If I do upgrade all snaps to edge channel :

$ snap list

Nom                Version                     Révision  Suivi        Éditeur     Notes
core18             20200324                    1722      latest/edge  canonicalâś“  base
gnome-3-28-1804    3.28.0-17-gde3d74c.de3d74c  123       latest/edge  canonicalâś“  -
gnome-3-34-1804    0+git.2c86692               24        latest/edge  canonicalâś“  -
gtk-common-themes  0.1                         1490      latest/edge  canonicalâś“  -
snap-store         20200323.7c09bc5            317       latest/edge  canonicalâś“  -
snapd              2.44.1+git744.g3501442      7070      latest/edge  canonicalâś“  snapd

$ snap-store

13:01:31:0638 Gs  plugin appstream took 2,0 seconds to do setup
13:01:31:0642 Gs  enabled plugins: desktop-categories, fwupd, os-release, packagekit, packagekit-local, packagekit-offline, packagekit-proxy, packagekit-refine-repos, packagekit-refresh, packagekit-upgrade, packagekit-url-to-app, appstream, desktop-menu-path, hardcoded-blacklist, hardcoded-popular, modalias, odrs, packagekit-refine, rewrite-resource, packagekit-history, provenance, snap, systemd-updates, generic-updates, provenance-license, icons, key-colors, key-colors-metadata
13:01:31:0642 Gs  disabled plugins: dpkg, dummy, fedora-langpacks, fedora-pkgdb-collections, repos
13:01:32:0689 Gs  /etc/PackageKit/Vendor.conf file not found
13:01:33:0046 Pango pango_font_get_hb_font: assertion 'PANGO_IS_FONT (font)' failed
Erreur de segmentation

I have set DISABLE_WAYLAND: 1 in environment: section of snapcraft file of one of my application https://snapcraft.io/red-app and it crashes similarly on wayland session a user reported this in app rating and gave it 1 star for this behavior.

Here is what I get with a Focal clean install : image

and with installing snapd (deb) then snap-store (snap) in Focal :

$ snap list
Nom                Version                     Révision  Suivi          Éditeur     Notes
core18             20200311                    1705      latest/stable  canonicalâś“  base
gnome-3-28-1804    3.28.0-16-g27c9498.27c9498  116       latest/stable  canonicalâś“  -
gtk-common-themes  0.1-29-g45e78c5             1474      latest/stable  canonicalâś“  -
musescore          3.4.2                       137       latest/stable  musescoreâś“  -
snap-store         20191114.a9948d5            209       latest/stable  canonicalâś“  -
snapd              2.43.3                      6434      latest/stable  canonicalâś“  snapd

Edit (I cannot reply more than 3 times… :frowning: ) :

Ok, snap-store works in Wayland with this config :

$ snap list
Nom                Version                    Révision  Suivi          Éditeur     Notes
core               16-2.44.1+git1687.8b129e9  8990      latest/edge    canonicalâś“  core
core18             20200324                   1722      latest/edge    canonicalâś“  base
gnome-3-34-1804    0+git.2c86692              24        latest/edge    canonicalâś“  -
gtk-common-themes  0.1                        1497      latest/edge    canonicalâś“  -
snap-store         20200323.7c09bc5           317       latest/edge    canonicalâś“  -
snapd              2.43.3                     6434      latest/stable  canonicalâś“  snapd
    corrado@corrado-x5-ff-0329:~$ snap install snap-store --edge
snap-store (edge) 20200323.7c09bc5 from Canonicalâś“ installed
corrado@corrado-x5-ff-0329:~$ snap-store 
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/appdata /usr/share/appdata-2 none bind,ro 0 0): permission denied
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/metainfo /usr/share/metainfo-2 none bind,ro 0 0): permission denied
Warning: Schema “org.gnome.system.locale” has path “/system/locale/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy” has path “/system/proxy/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.http” has path “/system/proxy/http/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.https” has path “/system/proxy/https/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.ftp” has path “/system/proxy/ftp/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.socks” has path “/system/proxy/socks/”.  Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Segmentation fault (core dumped)
corrado@corrado-x5-ff-0329:~$

Still same problem with snap-store 336.

corrado@corrado-x4-ff-beta:~$ snap run snap-store
Segmentation fault (core dumped)
corrado@corrado-x4-ff-beta:~$ snap list
Name               Version           Rev   Tracking         Publisher   Notes
core               16-2.44.1         8935  latest/stable    canonicalâś“  core
core18             20200311          1705  latest/stable    canonicalâś“  base
gnome-3-34-1804    0+git.2c86692     21    latest/stable/…  canonical✓  -
gtk-common-themes  0.1-29-g45e78c5   1474  latest/stable/…  canonical✓  -
snap-store         20200401.4cde4f1  336   latest/stable/…  canonical✓  -
corrado@corrado-x4-ff-beta:~$ echo $XDG_SESSION_TYPE
wayland
corrado@corrado-x4-ff-beta:~$ snap version
snap    2.44.2+20.04
snapd   2.44.2+20.04
series  16
ubuntu  20.04
kernel  5.4.0-21-generic
corrado@corrado-x4-ff-beta:~$

I can confirm that this isn’t just you. I’ve now replicated it on my own copy of Ubuntu 20.04 when running Wayland. It does not exhibit the crash in X11. I ran it through strace but can’t see any smoking gun obvious problems. I think it’s gonna need someone from either the snapd or desktop teams to have a poke…

I’m having the same issue with the postman snap and a few other in wayland. None of them will run without “DISABLE_WAYLAND”

snap 2.44.3+20.04
snapd 2.44.3+20.04
series 16
ubuntu 20.04
kernel 5.4.0-31-generic

Good advice, though it didn’t work out.