Created attachment 1173928 [details] Output of $ LC_ALL=C WAYLAND_DEBUG=1 libreoffice Note: This bug was reported in a comment to bug #1350060 first. Description of problem: In some rare cases, libreoffice just exits when showing "View" menu in Impress. Version-Release number of selected component (if applicable): libreoffice-5.1.4.2-3.fc24.x86_64 gtk3-3.20.6-1.fc24.x86_64 How reproducible: I have to try ~10 times to reproduce the crash Steps to Reproduce: 1. open LibreOffice in a gnome+wayland session (with wayland Gdk backend) 2. open Impress 3. open "View" menu and select any radio button, especially "Slide Sorter" 4. try again until bug happens (may take 10 tries or more) Actual results: LibreOffice just exits after printing this warning: (soffice:10680): Gdk-WARNING **: Error 71 (Protocol error) dispatching to Wayland display. Expected results: No exit. Additional info: A backtrace breaking on g_strerror right before LibreOffice exits: https://bugzilla.redhat.com/attachment.cgi?id=1172226 . I've set a breakpoint to g_strerror in https://github.com/GNOME/gtk/blob/master/gdk/wayland/gdkeventsource.c#L197 This issue also happens in other items in this menu (other than "Slide Sorter"), but I can't exactly tell when. Please note that I'm seeing this in firefox (wayland builds) too, see bug #1350060. I've reported this issue upstream, but they claim it is an LibreOffice bug: According to upstream Gtk+ developer Jonas Ådahl [1]: > As far as I can tell what is happening is that: > > 1. a popup is created with the toplevel window as parent > 2. another popup is created while the previous popup is still mapped, also with the toplevel window as parent > > This is not allowed, as the compositor wouldn't know what to dismiss when the popup grab is broken. > > I'm guessing that either LibreOffice is > 1) missing to destroy an old menu, or > 2) using the wrong parent for a child menu, or > 3) it accidentally creates two popups when it meant to create only one. [1] https://bugzilla.gnome.org/show_bug.cgi?id=768111#c5 and #c3
The old "all the apps are at fault" trick
because we're using native gtk3 menubar and menus here perhaps we're dispatching something before the menu is gone or perhaps its a tooltip. Hard to tell at the moment
I was able to reproduce this a few times and then not, so its a delicate thing. My guess is that it might be the "sort of tooltips" things. If in calc I do =SUM in the input bar then I get the same sort of tooltip thing that I'm talking about. Except those ones are persistent, then hit insert in the menubar and I have a guaranteed exit with the same error. So I'm going to assume the impress problem is the same as the calc problem. Upstream I have already replaced these pseudo-tooltips with native GtkPopOvers and upstream master doesn't crash. So I'll backpor the tooltips->popovers change to 5-1 as my solution for this
libreoffice-5.1.4.2-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6182a7b901
libreoffice-5.1.4.2-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6182a7b901
*** Bug 1352273 has been marked as a duplicate of this bug. ***
libreoffice-5.1.4.2-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
libreoffice-5.1.4.2-5.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-983ce3851d
libreoffice-5.1.4.2-5.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-983ce3851d
libreoffice-5.1.4.2-5.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.