Summary: | Xwayland crashes when seat adds a capability and sends some input event | ||
---|---|---|---|
Product: | Wayland | Reporter: | Michael Forney <mforney> |
Component: | XWayland | Assignee: | Wayland bug list <wayland-bugs> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | normal | ||
Priority: | medium | CC: | cl91tp, mforney, stu_dby |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Patch fixing the issue
Another patch |
Description
Michael Forney
2014-07-27 21:59:38 UTC
This can be reproduced by simply starting an X application, unplugging all pointing devices, then plugging one in and moving the cursor into the X window. Created attachment 103567 [details] [review] Patch fixing the issue Does http://cgit.freedesktop.org/xorg/xserver/commit/?id=2172714c67d8701aa54c202e89f246f1dddac80a fix it for you? Partially. The commit you referenced fixes the case where a seat capability disappears and then reappears (such as when disconnecting then reconnecting a mouse, or switching VTs). However, if Xwayland is started without some capability (for example, no pointing devices connected), then a mouse is plugged in, the problem remains. This is can be reproduced by starting weston with no pointing devices, switching to another VT, launching weston-terminal (by setting WAYLAND_DISPLAY), switching back to the weston VT, launching an X client in the opened terminal (by setting DISPLAY), then plugging in a mouse and moving the cursor over the X client. The issue is that the devices created after Xwayland startup are never activated. Created attachment 103842 [details] [review] Another patch Actually I sent a patch similar to yours to xorg-devel a month ago, but another patch (the commit I mentioned above) was accepted, clearly people only thought about switching VTs and didn't notice the problem you described. Now with that commit in mind, I propose this patch. Is it okay? (In reply to comment #5) > Created attachment 103842 [details] [review] [review] > Another patch > > Actually I sent a patch similar to yours to xorg-devel a month ago, but > another patch (the commit I mentioned above) was accepted, clearly people > only thought about switching VTs and didn't notice the problem you described. > > Now with that commit in mind, I propose this patch. Is it okay? Yep. I can confirm that your patch (with a small typo fix) fixes the issue as well. Thanks! Can confirm that this patch (with a typo fix) fixes Xwayland crashing when switching tty. Now if anyone could get this patch upstream... If the patch is not already upstream, you would better not mark the bug as fixed then. Since it's not fixed upstream. :-) Marking a bug fixed just makes developers not see it anymore. Reopening, assuming the patch isn't upstream. Could you poke xorg-devel@, please? Please post it with the following line: Reviewed-by: Daniel Stone <daniels@collabora.com> as well as Cc'ing keithp@keithp.com, asking him to pull it for 1.17. The patch is at http://lists.x.org/archives/xorg-devel/2014-August/043432.html. Should I send a ping? (In reply to Boyan Ding from comment #10) > The patch is at > http://lists.x.org/archives/xorg-devel/2014-August/043432.html. Should I > send a ping? Yes please. Also is there any chance that this patch can be backported to 1.16 (and be included in say, the 1.16.3 release)? It's going to be a while before 1.17 can be released. It will be even longer before it can make into most distros. Considering that this is purely a bug fix that has minimal impact on the rest of the codebase I'd say it is fairly reasonable to do so. Patch has been merged in master. http://cgit.freedesktop.org/xorg/xserver/commit/?id=1ba4fde |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.