I'm trying to use another WM than Weston with the Imx8mp as I'm trying to use an implementation of xdg-desktop-portal for screencasting using pipewire and the hardware encoder, for an application that has to run in "kiosk mode".
"Cage" (or "Sway") are window managers that are build on top of wlroots, and thus would allow me to use the xdg-desktop-portal-wlr implementation.
It works fine on PC during my tests, either with simple example programs or my own application, but fails on the imx8mp board. Even the test programs provided by NXP in /opt/imx-gpu-viv/GLES2 GLES3 or Vulkan are unfortunately failing to run and end up segfaulting when creating the window. Notable exception, something like weston-terminal works fine (not sure
On my own program, I traced the crash, and it happens during the creation of the window (glfwCreateWindow), and more specifically down the line, in wl_proxy_set_queue due to an invalid structure pointer passed by something in the libEGL.so (which is in a closed source blob provided by imx-gpu-viv if I'm not mistaken ?). I can't debug it blindly further. I've spent quite some time trying different things, and searching the web for leads on similar issues or potentials workarounds without success.
It's the same issue than this user talked about a few months ago : https://community.nxp.com/t5/i-MX-Processors/glfw-apps-crash-when-used-with-wlroots-based-compositor... . I'm also using the NXP BSP / yocto kirkstone, and tried both on the official evaluation kit (EVK) and our a board of our own design.
Someone had the same issue at Toradex a month ago : https://community.toradex.com/t/opengl-not-working-on-wlroots-based-compositor/18238/3
Have anyone managed to run an application on a wlroots based WM on the imx8mp ? The program starts and works fine on weston, but I need to use a wlroots-based compositor.
Thanks,