torizon@verdin-imx8mp-14753765:~$ cat /etc/os-release
ID=torizon
NAME=“TorizonCore”
VERSION=“6.4.0+build.5 (kirkstone)”
VERSION_ID=6.4.0-build.5
PRETTY_NAME=“TorizonCore 6.4.0+build.5 (kirkstone)”
DISTRO_CODENAME=“kirkstone”
BUILD_ID=“5”
ANSI_COLOR=“1;34”
VARIANT=“Docker”
1.Created container
# docker run -e ACCEPT_FSL_EULA=1 -d --rm --name=weston --net=host --cap-add CAP_SYS_TTY_CONFIG
-v /dev:/dev -v /tmp:/tmp -v /run/udev/:/run/udev/
–device-cgroup-rule=‘c 4:* rmw’ --device-cgroup-rule=‘c 13:* rmw’
–device-cgroup-rule=‘c 199:* rmw’ --device-cgroup-rule=‘c 226:* rmw’
torizon/weston-vivante:$CT_TAG_WESTON_VIVANTE --developer --tty=/dev/tty7
docker exec -it weston /bin/bash
apt update
apt install python3-vtk9
Created python script from this source
6.Ran the script
7. python3 vtk.py
8. Authorization required, but no authorization protocol specified.
** segmentation fault.**
JFI, the above VTK application runs fine on WSL2(Windows subsystem for linux) which uses weston compositor. xwayland is set to true.
nkj
February 14, 2024, 11:59am
2
had something similar try running the app as su torizon.
see solution in this post had similar error
Hi @nkj
you can try running xcb-only applications under Wayland using xWayland and forcing Qt to use the xcb backend by setting the QT_QPA_PLATFORM="xcb" variable. You will also need to su torizon, aka, change to a non-root user inside the Qt5 container due to permissions (see the code snippet below)
If your application needs hardware acceleration, it will not work and most likely segfault.
Simple apps like xeyes that don’t make use of EGL will work
# ... inside qt5-wayland container with We…
1 Like
Thanks @nkj , Running the app as su torizon helps with the authorization issue.
Now, I’m still left with below issue.
$ python3 vtk.py
2024-02-14 17:45:42.041 ( 0.162s) [ 930804C0]vtkXOpenGLRenderWindow.:266 ERR| vtkXOpenGLRenderWindow (0x21de0c60): Could not find a decent config
2024-02-14 17:45:42.042 ( 0.163s) [ 930804C0]vtkXOpenGLRenderWindow.:484 ERR| vtkXOpenGLRenderWindow (0x21de0c60): Could not find a decent visual
Aborted (core dumped)
Greetings @Sudharshan ,
I’m not very familiar with the VTK framework here. But on some quick research it seems that VTK relies on GLX, is that true? If that is the case then you might have an issue since NXP has dropped support for GLX from their GPU drivers: xwayland: Drop GLX for i.MX GPU · Freescale/meta-freescale@b4fbbf1 · GitHub
Best Regards,
Jeremias