GNOME Bugzilla – Bug 754501
Trying to run a Qt app natively on Wayland session crashes it
Last modified: 2015-12-22 00:23:18 UTC
When trying to run any Qt 5 application natively (i.e. with "-platform wayland" added to command line) on GNOME Wayland session (3.17.90), the whole shell crashes (and I get the GDM login screen). I don't have the stacktrace because I didn't figure out how to obtain it. If someone tells me how I can debug this, I will do it. This is a semi-regression from 3.16: in that version, the Qt app itself receives a "Cannot commit a NULL buffer to an xdg_surface" message from Mutter and exits. I tested on Debian unstable with some packages from experimental. Software versions used: mutter 3.17.90 gnome-shell 3.17.90 gnome-session 3.16.0 qtbase 5.5.0 qtwayland 5.5.0 Running any Qt application (i.e. Qt Assistant or Qt Designer) with -platform wayland is enough to reproduce the crash (without -platform wayland they would be run under XWayland, where they don't crash). The same applications run just fine in Weston session.
I forgot to mention a version of libwayland-client that Qt is using: it's 1.8.1.
I have finally managed to get a stacktrace: Program received signal SIGSEGV, Segmentation fault. meta_window_set_title (window=0x0, title=0x369847c "") at core/window.c:7292
+ Trace 235415
(In reply to Dmitry Shachnev from comment #2) > I have finally managed to get a stacktrace: > > Program received signal SIGSEGV, Segmentation fault. > meta_window_set_title (window=0x0, title=0x369847c "") at core/window.c:7292 Could you run the client with the WAYLAND_DEBUG=1 and attach the output here?
Created attachment 310655 [details] Output of a test Qt cleint (In reply to Jonas Ådahl from comment #3) > Could you run the client with the WAYLAND_DEBUG=1 and attach the output here? Here it is.
*** Bug 757623 has been marked as a duplicate of this bug. ***
Closing this one as dup of 757623 because I happened to attach the patches to that bug instead of this one. *** This bug has been marked as a duplicate of bug 757623 ***