I’ve tried 5 different snaps on 2 different systems.
Os list
- 1.os: Ubuntu 18.04 LTS (x86)
- 2.os: An Ubuntu Core Virtual Machine hosted by 1.os.
Command to start mir-kiosk on 1.os:
sudo mir-kiosk --x11-output 800x600
Command to launch the virtual machine for 2.os:
sudo kvm -smp 2 -m 1500 -netdev user,id=mynet0,hostfwd=tcp::8022-:22,hostfwd=tcp::8090-:80 -device\
virtio-net-pci,netdev=mynet0 -vga qxl -drive file=ubuntu-core-18-amd64.img,format=raw
App list
I tried all the apps in standard and in devmode:
- 1.app: wpe-webkit-mir-kiosk
- 2.app: chromium-mir-kiosk
- 3.app: mir-kiosk-apps
- 4.app: mir-kiosk-scummvm
- 5.app: electron-hello-world-kiosk
On 1.os:
On 2.os:
2.os - snap logs wpe-webkit-mir-kiosk -n60:
2020-05-14T09:56:00Z -[1429]: <https://wpewebkit.org/> Crash!: The renderer process crashed. Reloading the page may fix intermittent failures.
2020-05-14T09:56:00Z wpe-webkit-mir-kiosk.browser[768]: EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
2020-05-14T09:56:00Z -[1429]: Renderer process terminated and failed to recover within 1000ms
Process restart
2020-05-14T09:56:01Z wpe-webkit-mir-kiosk.browser[768]: EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
2020-05-14T09:56:01Z -[1429]: Renderer process terminated and failed to recover within 1000ms
2020-05-14T09:56:01Z -[1429]: <https://wpewebkit.org/> Crash!: The renderer process crashed. Reloading the page may fix intermittent failures.
2020-05-14T09:56:01Z -[1429]: <https://wpewebkit.org/> Crash!: The renderer process crashed. Reloading the page may fix intermittent failures.
2020-05-14T09:56:01Z systemd[1]: Stopping Service for snap application wpe-webkit-mir-kiosk.browser...
2020-05-14T09:56:01Z systemd[1]: Stopped Service for snap application wpe-webkit-mir-kiosk.browser.
2020-05-14T09:56:05Z systemd[1]: Started Service for snap application wpe-webkit-mir-kiosk.browser.
2020-05-14T09:56:05Z wpe-webkit-mir-kiosk.browser[18105]: realpath: '': No such file or directory
On 2.os mir-kiosk starts at boot and I can see the mouse pointer and the orange splash screen.
Snap source code (see edits.txt):
https://github.com/Admdebian/test-electron-quick-start-snap
Snap install on 2.os:
snap install electron-hello-world-kiosk_0.10_amd64.snap --devmode
2.os - snap connections | grep electron:
browser-support electron-hello-world-kiosk:browser-support :browser-support -
network electron-hello-world-kiosk:network :network -
network-bind electron-hello-world-kiosk:network-bind :network-bind -
opengl electron-hello-world-kiosk:opengl :opengl -
pulseaudio electron-hello-world-kiosk:pulseaudio pulseaudio:service -
wayland electron-hello-world-kiosk:wayland mir-kiosk:wayland -
2.os - snap logs -n 60 electron-hello-world-kiosk:
2020-05-14T09:35:02Z systemd[1]: Started Service for snap application electron-hello-world-kiosk.daemon.
2020-05-14T09:35:45Z electron-hello-world-kiosk.daemon[19103]: pci id for fd 8: 1b36:0100, driver (null)
2020-05-14T09:35:46Z electron-hello-world-kiosk.daemon[19103]: glamor: EGL version 1.4:
2020-05-14T09:35:47Z electron-hello-world-kiosk.daemon[19103]: (EE)
2020-05-14T09:35:47Z electron-hello-world-kiosk.daemon[19103]: Fatal server error:
2020-05-14T09:35:47Z electron-hello-world-kiosk.daemon[19103]: (EE) wl_display@1: error 2: no memory
2020-05-14T09:35:47Z electron-hello-world-kiosk.daemon[19103]: (EE)
2020-05-14T09:35:47Z electron-hello-world-kiosk.daemon[19103]: i3: Cannot open display
2020-05-14T09:35:48Z -[19278]: cannot open display: :89
2020-05-14T09:35:48Z systemd[1]: snap.electron-hello-world-kiosk.daemon.service: Service hold-off time over, scheduling restart.
2020-05-14T09:35:48Z systemd[1]: snap.electron-hello-world-kiosk.daemon.service: Scheduled restart job, restart counter is at 1.
2020-05-14T09:35:48Z systemd[1]: Stopped Service for snap application electron-hello-world-kiosk.daemon.
2020-05-14T09:35:48Z systemd[1]: Started Service for snap application electron-hello-world-kiosk.daemon.
2020-05-14T09:37:05Z electron-hello-world-kiosk.daemon[19288]: pci id for fd 8: 1b36:0100, driver (null)
2020-05-14T09:37:05Z electron-hello-world-kiosk.daemon[19288]: glamor: EGL version 1.4:
2020-05-14T09:37:05Z electron-hello-world-kiosk.daemon[19288]: (EE)
2020-05-14T09:37:05Z electron-hello-world-kiosk.daemon[19288]: Fatal server error:
2020-05-14T09:37:05Z electron-hello-world-kiosk.daemon[19288]: (EE) wl_display@1: error 2: no memory
2020-05-14T09:37:05Z electron-hello-world-kiosk.daemon[19288]: (EE)
2020-05-14T09:37:06Z electron-hello-world-kiosk.daemon[19288]: i3: Cannot open display
2020-05-14T09:37:06Z -[19516]: cannot open display: :29
2020-05-14T09:37:06Z systemd[1]: snap.electron-hello-world-kiosk.daemon.service: Service hold-off time over, scheduling restart.
2020-05-14T09:37:06Z systemd[1]: snap.electron-hello-world-kiosk.daemon.service: Scheduled restart job, restart counter is at 2.
2020-05-14T09:37:06Z systemd[1]: Stopped Service for snap application electron-hello-world-kiosk.daemon.
2020-05-14T09:37:06Z systemd[1]: Started Service for snap application electron-hello-world-kiosk.daemon.
No:
localhost:~$ electron-hello-world-kiosk
Error: Unable to find a valid Wayland socket in /run/user/1000
Is a Wayland server running?
You could try running as root
With sudo:
/snap/electron-hello-world-kiosk/x1/bin/xwayland-kiosk-launch: line 1: kill: (-30650) - No such process
None
Thanks for your time and your articles!