New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wezterm crashes on launch when enable_wayland=true under sway (current git master) #1144
Comments
That error condition implies that the Wayland compositor didn't send any keymap information by the time that that code ran. |
I'm using sway normally (latest git master), and just tested with weston and it seems to be working just fine on weston (which is the only other compositor I have installed), and, interestingly, on sway it seems to work fine the first time wezterm is launched but not again until I relaunch sway - seems like an issue with sway, though, I'll go ahead and report it there. Thanks! |
Just encountered this, didn't realize it was related to a recent wlroots update. It's a very simple issue, PR incoming |
The wl_keyboard definition does not define that the incoming fd is always at seek position 0. In fact, the spec says the fd "can be memory-mapped" and that's it. And e.g. smithay client-toolkit uses mmap, but we don't :/ Recent wlroots can sometimes start returning fds that are seeked to the end. Add a rewind() call to not depend on the compositor rewinding the fd.
The wl_keyboard definition does not define that the incoming fd is always at seek position 0. In fact, the spec says the fd "can be memory-mapped" and that's it. And e.g. smithay client-toolkit uses mmap, but we don't :/ Use pread() to read from zero.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What Operating System(s) are you seeing this problem on?
Linux Wayland
WezTerm version
wezterm 20210814-124438-54e29167, but also with wezterm-nightly-bin (20210916.085405) from the AUR and the latest appimage
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
When starting wezterm with wayland enabled, I get
ERROR window::os::wayland::connection > keyboard_event: failed to fill whole buffer
but everything works fine with enable_wayland false, using the x11 backend (xwayland?_
This happens on the latest sway master.
To Reproduce
Launch wezterm with enable_wayland = true,
Configuration
Expected Behavior
No response
Logs
Anything else?
EDIT
when running with RUST_BACKTRACE=full I get:
The text was updated successfully, but these errors were encountered: