JeffyCN / meta-rockchip

Yocto BSP layer for the Rockchip SOC boards
Other
129 stars 97 forks source link

EGL issue with weston on scarthgap branch #119

Closed dylad closed 4 months ago

dylad commented 4 months ago

Hello,

I am having some issues with EGL. When building core-image-weston with meta-rockchip (scarthgap) for RK3588S board, examples app from weston using EGL crash with a segfault. (for instance weston-simple-egl)

I am using lastest revision from scarthgap with poky and meta-openembedded. No others layers are involved. I just add DEPENDS:append:pn-xwayland = " libtirpc" in my local.conf because xwayland seems to have a missing dependency.

I am building an image for RK3588S chip.

JeffyCN commented 4 months ago

maybe try to apply this: https://github.com/JeffyCN/rockchip_mirrors/blob/buildroot/package/wayland/0003-client-Assign-proxy-to-default-queue-when-releasing-.patch

JeffyCN commented 4 months ago

and maybe try to test: https://github.com/JeffyCN/yocto-manifests/tree/scarthgap

dylad commented 4 months ago

I didn't try the manifest but the first patch seems to work on my side ! Thanks @JeffyCN !

dylad commented 4 months ago

Hi again @JeffyCN While the segfault no longer happen, I just notice that weston-simple-egl produces two windows (see following screenshot):

wayland-screenshot-2024-02-27_18-43-53

Then if I hit a Ctrl-C with a keyboard on Weston (not in the shell which started the app obviously), the second window is killed.

wayland-screenshot-2024-02-27_18-44-07

JeffyCN commented 4 months ago

it works well on my side, maybe try to upload your rootfs.img

dylad commented 4 months ago

I've started a fresh build, using the manifest this time. I'll see if there is a difference. Are you also using a Rk3588S-based board ?

dylad commented 4 months ago

@JeffyCN In the mean time, you can find my generated rootfs here

JeffyCN commented 4 months ago

didn't repro it with your rootfs, everything works well on my board...

dylad commented 4 months ago

It seems I mismatch my rootfs when flashing. Sorry about that. I'll try to trigger this in a reproducible way on my side and come back to you. Thanks for your help !

dylad commented 4 months ago

BTW, I just flashed a fresh image using scarthgap manifest file without the patch you mentioned from Buildroot. weston-simple-egl segfaults again so I guess this patch is needed using Yocto build.