@malt thanks, I just wanted to make sure you are not using my experimental image from the pi4 thread in this forum (i sadly cant edit the posts there to remove the links).
@alan_g the EGL errors look identical to what i see on my image with any XWayland app
So, there appear to be two problems here, a surface one and an underlying one.
The surface one is that EGL clients are failing, because for some reason the software rasteriser is failing to work against Mir.
The underlying one is that accelerated GL isn’t working at all, and we’re falling back to the software rasteriser. We appear to have the relevant kernel module and DRI driver built and installed, but it is failing to load. I will continue to investigate this.
Please let me know if I can help with debugging – Pi 4 w/ 4GB available – and/or if wpe-webkit-mir-kiosk (which I maintain) requires changes to work properly on the Pi 4.
I have a snap of an Electron-based kiosk application (based on the electron-kiosk tutorial) which works on the Raspberry Pi 3 (ubuntu-core-18-armhf+raspi3) but not the Raspberry Pi 4 (ubuntu-core-18-armhf-raspi4).
On the Pi 3 the logs show:
Mar 25 17:44:05 localhost systemd[1]: Started Service for snap application krellian-kiosk.krellian-kiosk.
Mar 25 17:44:11 localhost systemd[1]: Stopping Service for snap application krellian-kiosk.krellian-kiosk…
Mar 25 17:44:11 localhost systemd[1]: Stopped Service for snap application krellian-kiosk.krellian-kiosk.
Mar 25 17:44:11 localhost systemd[1]: Started Service for snap application krellian-kiosk.krellian-kiosk.
Mar 25 17:44:20 localhost krellian-kiosk.krellian-kiosk[5940]: glamor: EGL version 1.4:
Mar 25 17:44:24 localhost krellian-kiosk.krellian-kiosk[5940]: Starting services on port 8080…
On the Pi 4 the logs show:
Mar 25 16:34:58 localhost systemd[1]: Started Service for snap application krellian-kiosk.krellian-kiosk.
Mar 25 16:35:18 localhost krellian-kiosk.krellian-kiosk[6452]: glamor: EGL version 1.4:
Mar 25 16:35:18 localhost krellian-kiosk.krellian-kiosk[6452]: (EE)
Mar 25 16:35:18 localhost krellian-kiosk.krellian-kiosk[6452]: Fatal server error:
Mar 25 16:35:18 localhost krellian-kiosk.krellian-kiosk[6452]: (EE) wl_display@1: error 2: no memory
Mar 25 16:35:18 localhost krellian-kiosk.krellian-kiosk[6452]: (EE)
Mar 25 16:35:18 localhost krellian-kiosk.krellian-kiosk[6452]: i3: Cannot open display
Mar 25 16:35:18 localhost krellian-kiosk[6709]: cannot open display: :42
Is there an existing bug report tracking this issue or should we file one?
Side note: Where can I send a pull request for the tutorial? A recent change to the Snapcraft build process broke this tutorial and it now needs an extra npm install in the override-build section.
We’re receiving a lot of requests from users asking when they can use the RPi4 for our smart mirror software (which uses our wpe-webkit-mir-kiosk snap on mir-kiosk). At the moment, we advise to buy the 3B, but the Pi 4 with 2GB RAM costs just a few bucks more.
Is there a rough timeframe for GL support on the Pi 4? Pointers to what needs to be done? Glad to help with testing (we have a Pi 4 here), and willing to help out otherwise – although I can’t offer substantial GL stack knowledge
Can you please share what would be the way forward for rpi4?
Is there any plan to have above fixes for 18.04 in near future or do we have to switch to core 20?