Adding that
stage-packages:
- libwebkit2gtk-4.0-37
- libwxgtk-webview3.0-gtk3-0v5 <-----
- libsdl2-2.0-0
certainly supplies the missing WebKitNetworkProcess
file, which is promising, but I’m still getting the same crash when I run the snap. Running unsquashfs -l *.snap
shows
squashfs-root/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitNetworkProcess
I tried explicitly added the path to the snapcraft.yaml:
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/
which didn’t help.
Running sudo dmesg
and grepping for apparmor="DENIED"
gives me a bunch of lines I don’t understand, but which might be clues:
[41192.071626] audit: type=1400 audit(1680060135.599:726): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=132477 comm="(networkd)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[41192.134397] audit: type=1400 audit(1680060135.659:727): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=132502 comm="(resolved)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[41289.936981] audit: type=1400 audit(1680060233.448:740): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/" pid=134400 comm="mount" flags="rw, remount, noatime"
[41290.051986] audit: type=1400 audit(1680060233.564:746): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=134494 comm="(networkd)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[41290.108531] audit: type=1400 audit(1680060233.620:747): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=134521 comm="(resolved)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[41361.916373] audit: type=1400 audit(1680060305.423:760): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/" pid=136719 comm="mount" flags="rw, remount, noatime"
[41362.013903] audit: type=1400 audit(1680060305.519:766): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=136766 comm="(networkd)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[41362.084268] audit: type=1400 audit(1680060305.591:767): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=136785 comm="(resolved)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[41388.038147] audit: type=1400 audit(1680060331.545:782): apparmor="DENIED" operation="file_inherit" class="net" namespace="root//lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_<var-snap-lxd-common-lxd>" profile="/snap/snapd/18596/usr/lib/snapd/snap-confine" pid=137628 comm="snap-confine" family="netlink" sock_type="raw" protocol=15 requested_mask="send receive" denied_mask="send receive"
[41395.761792] audit: type=1400 audit(1680060339.269:787): apparmor="DENIED" operation="file_inherit" class="net" namespace="root//lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_<var-snap-lxd-common-lxd>" profile="/snap/snapd/18596/usr/lib/snapd/snap-confine" pid=138388 comm="snap-confine" family="netlink" sock_type="raw" protocol=15 requested_mask="send receive" denied_mask="send receive"
[112130.168190] audit: type=1400 audit(1680230653.468:817): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/" pid=151722 comm="mount" flags="rw, remount, noatime"
[112130.310022] audit: type=1400 audit(1680230653.613:823): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=151833 comm="(networkd)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[112130.368709] audit: type=1400 audit(1680230653.670:824): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=151860 comm="(resolved)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[112139.753795] audit: type=1400 audit(1680230663.116:839): apparmor="DENIED" operation="file_inherit" class="net" namespace="root//lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_<var-snap-lxd-common-lxd>" profile="/snap/snapd/18596/usr/lib/snapd/snap-confine" pid=152530 comm="snap-confine" family="netlink" sock_type="raw" protocol=15 requested_mask="send receive" denied_mask="send receive"
[112148.639036] audit: type=1400 audit(1680230672.064:844): apparmor="DENIED" operation="file_inherit" class="net" namespace="root//lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_<var-snap-lxd-common-lxd>" profile="/snap/snapd/18596/usr/lib/snapd/snap-confine" pid=153276 comm="snap-confine" family="netlink" sock_type="raw" protocol=15 requested_mask="send receive" denied_mask="send receive"
[113479.868866] audit: type=1400 audit(1680232003.043:866): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/" pid=160029 comm="mount" flags="rw, remount, noatime"
[113479.993942] audit: type=1400 audit(1680232003.168:872): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=160121 comm="(networkd)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"
[113480.051786] audit: type=1400 audit(1680232003.224:873): apparmor="DENIED" operation="mount" class="mount" info="failed flags match" error=-13 profile="lxd-snapcraft_snapcraft-snap-webkit-how-on-amd64-for-amd64-11802732_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/proc/" pid=160141 comm="(resolved)" fstype="proc" srcname="proc" flags="rw, nosuid, nodev, noexec"