-
Notifications
You must be signed in to change notification settings - Fork 81
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
wl_seat::get_pointer request issued on a seat without the pointer capability #83
Comments
Indeed, the |
@st3r4g Would you mind running |
The crash happens if the compositor sets to NULL the implementation of wl_seat::get_pointer (a compositor could choose not to support pointers). Actually can be easily circumvented by implementing the request in the compositor as a no-op, but anyway the spec is pretty explicit that it is an error (and many other clients do not call it). |
Probably |
|
I guess you've installed it from your distro package, since alacritty by default builds in release + debug symbols. You can follow alacritty's INSTALL.md instructions for your distro to build it in debug, also compile this PR instead of master. P.s. |
I updated the backtrace. But why do you say this is an Alacritty bug? I thought the crash happened at the Rust |
Note that setting NULL as the implementation of anything is a bug of the server though. A server should not crash due to ill-behaving clients, but rather detect protocol errors and kill the ill-behaving clients (with In any case @kchibisov, both winit/SCTK and smithay-clipboard need to be fixed wrt to that. For SCTK/winit, the issue is that
|
The bug is not in alacritty, that's right, I just wanted for us(alacritty) make it easier to track things, we're already has a lot of dependency bugs on our bug tracker. Anyway I can remember it or open myself. @vberger Yeah, I see. As I said before on IRC to you, I'll try to fix |
This is fixed with the new refactor, as |
From https://wayland.freedesktop.org/docs/html/apa.html#protocol-spec-wl_seat:
Observed behaviour in
alacritty
and in the example clients (with WAYLAND_DEBUG=server):The bitfield value 2 sent by the server in the capability event means that the seat has keyboards but not pointer or touch devices. It should be easy to request the creation of the appropriate protocol objects based on the capabilities sent by the server.
The text was updated successfully, but these errors were encountered: