GNOME Bugzilla – Bug 774187
touchscreen event under wayland causes any GTK3 app to crash
Last modified: 2017-04-27 20:54:11 UTC
Created attachment 339440 [details] core dump Hello Gnome developers, and thank you for your excellent work that has given us an amazing desktop. This is an annoying bug that causes any GTK3 application to crash when using the touchscreen. Unless I'm mistaken, it hasn't been reported yet. Steps to reproduce: 1. Start any GTK3 application, for instance: $ gnome-calculator 2. Tap on the clock in the top panel, to open the calendar drop-down. 3. Now tap on the application's window. 4. The application crashes. This is 100% reproducible on my machine. I'm running Arch Linux with Gnome 3.22 on a Dell Inspiron 15-7568. Backtrace: (gdb) bt
+ Trace 236846
I forgot: The crash does not happen when running the application using the X11 backend: $ GDK_BACKEND=x11 gnome-calculator
Thanks for the bug report! This is a mutter issue, the event indicating the touch is down is not sent to the client underneath when leaving from a compositor grab (like the calendar's), so the next touch update event(s) are handled when the client is in an inconsistent state. This is not legal according to the wayland protocol, so it's mutter which is acting wrong here.
Hmm, can't GTK abort instead of segfault if it finds the state inconsistent?
Sure, we can add some asserts. Doesn't change the fact that the app will unexpectedly end :).
This is the same bug as 776220. I'm marking this here as duplicate because bug 776220 has a complete backtrace. *** This bug has been marked as a duplicate of bug 776220 ***