Summary: | weston aborts on touching the secondary output when primary output (touch device) is unplugged | ||
---|---|---|---|
Product: | Wayland | Reporter: | Anu Reddy <anasuyax.r.nannuri> |
Component: | weston | Assignee: | Wayland bug list <wayland-bugs> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | SIGABRT-gdb-backtrace |
Description
Anu Reddy
2014-01-22 22:54:55 UTC
Created attachment 92626 [details]
SIGABRT-gdb-backtrace
First bad commit is http://cgit.freedesktop.org/wayland/weston/commit/?id=17bccaed I wasn't able to reproduce this one, but I think I was able to write a fix anyway. I sent it to the mailing list: http://lists.freedesktop.org/archives/wayland-devel/2014-April/014370.html commit ae826cead7caa46e03984955d38631ad0ea0c8fd Author: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Date: Thu Apr 24 15:11:16 2014 +0300 evdev: Fix assertion error for unplugged output with paired touchscreen If the output a touchscreen is paired to is unplugged, events coming from it should be ignored. Commit 17bccaed introduced logic for that in evdev_flush_pending_damage(). However, the break statements it introduced would cause the assertion after the switch statement to fail. That function has the odd behavior that goto's are used to skip the assertion after the switch statement and jump to the hunk of code that marks the event as processed. Only in the case where the event type has an invalid value the assertion should trigger. So this patch fixes the problem by moving the assertion into the default case of the switch and replacing the goto statements with break ones. https://bugs.freedesktop.org/show_bug.cgi?id=73950 |
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.