GNOME Bugzilla – Bug 762258
wayland: gtk3 apps segfault with plasma-wayland/kwin_wayland
Last modified: 2017-10-11 07:42:04 UTC
Summary: When gtk3 apps are run with kwin s Wayland compistior, they segfauls at startup. Downstream bug: https://bugzilla.redhat.com/show_bug.cgi?id=1298371 How to reproduce: 1. Run a kwin_wayland nested session: $ kwin_wayland --xwayland --windowed 2. Start any gtk3 based application $ gnome-calculator Additional data: kwin (at least the version found in Fedora 23) does not support xdg_shell whereas gtk3 take it for granted. segfault in wl_proxy_marshal_constructor() because the proxy is NULL. Not much gtk+ can do really, but it should bail out more gracefully I guess... Patch to follow.
Created attachment 321576 [details] [review] wayland: check for support of xdg_shell interface When running with a Wayland compositor which doesn't support the xdg_shell interface, gtk+ will segfault while trying to access the corresponding wl proxy. Check for xdg_shell support to fail more gracefully if not present.
See also: http://bugs.kde.org/show_bug.cgi?id=359531
Created attachment 321584 [details] [review] wayland: check for support of xdg_shell interface Updated patch, if xdg_shell is not available, we don't abort, we simply don't use Wayland and hope for the best with X11. When running with a Wayland compositor which doesn't support the xdg_shell interface, gtk+ will segfault while trying to access the corresponding wl proxy. Check for xdg_shell support and do not use Wayland if not present, so that it can fallback to X11, hoping that Xwayland is usable.
Review of attachment 321584 [details] [review]: looks good to me
Review of attachment 321584 [details] [review]: attachment 321584 [details] [review] pushed as commit 5a253c5 wayland: check for support of xdg_shell interface