XWayland mutex poisoning causes panic and window crash
I am running with backend_session_elogind feature and the winit backend causes the window to crash with a panic.
The log messages and the backtrace are quite long so I am attaching it as a file.
For context I am running a Linux x86_64 desktop machine with proprietary nvidia drivers (515.57)
However disabling the xwayland feature fixes the error on winit.
The X11 backend does not work with either case,
After some further investigation, installing this package
xorg-server-xwayland-22.1.2_1 Nested X server that runs as a wayland client
fixes the issue for winit even when enabling the xwayland feature
Regarding specifics we call code here when the stdout of the child is readable: https://github.com/Smithay/smithay/blob/master/src/xwayland/xserver.rs#L229
However instance is None because xwayland was not found it appears: https://github.com/Smithay/smithay/blob/master/src/xwayland/xserver.rs#L336
The log mentions that instance is None before the Xwayland ready log message.