smithay icon indicating copy to clipboard operation
smithay copied to clipboard

XWayland mutex poisoning causes panic and window crash

Open vikigenius opened this issue 3 years ago • 2 comments

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.

log.txt

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,

vikigenius avatar Jul 22 '22 04:07 vikigenius

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

vikigenius avatar Jul 22 '22 04:07 vikigenius

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.

i509VCB avatar Jul 22 '22 04:07 i509VCB