<html>
    <head>
      <base href="https://bugzilla.gnome.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Applications exit after "Error 71 (Protocol error) dispatching to Wayland display" while showing menu"
   href="https://bugzilla.gnome.org/show_bug.cgi?id=768111">768111</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Applications exit after "Error 71 (Protocol error) dispatching to Wayland display" while showing menu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Platform
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>gtk+
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.20.x
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: Wayland
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>gtk-bugs@gtk.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gnome@genodeftest.de
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>gtk-bugs@gtk.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>rob@robster.org.uk, wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>GNOME version</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div>
        <pre>With Gtk+ 3.x applications running with a wayland Gdk backend I recently
discovered an issue which exits applications in rare cases. They happen
while/after showing a menu. Right before the application exits, it prints this
warning

Gdk-WARNING **: Error 71 (Protocol error) dispatching to Wayland display.

from gdk/wayland/gdkeventsource.c:197. There are 2 cases I can reproduce:

1. In LibreOffice Impress, when using the "View" menu, in some cases it just
exits after printing the warning added above.
Bug report: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1343752#c7">https://bugzilla.redhat.com/show_bug.cgi?id=1343752#c7</a> 
Backtrace: <a href="https://bugzilla.redhat.com/attachment.cgi?id=1172226">https://bugzilla.redhat.com/attachment.cgi?id=1172226</a>

2. Firefox builds with Wayland Gdk backend behave similiar on showing any menu
(!)
Bug report: <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1350060">https://bugzilla.redhat.com/show_bug.cgi?id=1350060</a>
Backtrace: <a href="https://bugzilla.redhat.com/attachment.cgi?id=1172224">https://bugzilla.redhat.com/attachment.cgi?id=1172224</a>
Note that this doesn't work with default Firefox builds because they enforce
using x11 as Gdk backend on linux. You have to use the builds from
<a href="https://copr.fedorainfracloud.org/coprs/stransky/firefox-wayland/">https://copr.fedorainfracloud.org/coprs/stransky/firefox-wayland/</a> instead. See
this mailing list thread for details:
<a href="https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/54P3DQEOHXJQNUPUMHLA2GSQCWU4ZKXE/">https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/54P3DQEOHXJQNUPUMHLA2GSQCWU4ZKXE/</a>

I'm reporting this here because it happens in 2 very different applications and
because a LibreOffice developer commented this would be an issue in Gtk+ in
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1343752#c10">https://bugzilla.redhat.com/show_bug.cgi?id=1343752#c10</a>

Despite using gnome+wayland heavily, this bug hasn't occurred to me anywhere
else before so I guess it is either recently introduced or due to the special
way how Firefox and LibreOffice use Gtk+.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>