xdg-desktop-portal-gtk malfunctions on Wayland: wl_display@1.error(zxdg_imported_v1@36, 0, "set_parent_of was called with an invalid child")

Bug #1774560 reported by James Henstridge
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Bionic by Daniel van Vugt
xdg-desktop-portal-gtk (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Bionic by Daniel van Vugt

Bug Description

When running on a Wayland session, if xdg-desktop-portal-gtk is asked to display a window on behalf of a Wayland app, it gets disconnected from gnome-shell with one of these messages:

    Gdk-Message: 09:49:31.837: Lost connection to Wayland compositor.
    Gdk-Message: 09:50:28.438: Error 71 (Protocol error) dispatching to Wayland display.

Running it with WAYLAND_DEBUG=1, the underlying error message that GDK seems to eat is:

    [3471970.531] wl_display@1.error(zxdg_imported_v1@36, 0, "set_parent_of was called with an invalid child")

That is, when it tries to associate the dialog box with the confined application's window. It seems the underlying bug is in in Mutter:

    https://gitlab.gnome.org/GNOME/mutter/issues/138

According to duflu, the patch referenced in that bug report has been merged for 3.28.2 and 3.29.2. It seems like a candidate to backport to bionic if we want portals to work on the (non-default) Wayland session.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yeah cosmic already has the fix (mutter 3.28.2). You're only waiting on bionic.

tags: added: fixed-in-3.28.2
Changed in mutter (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdg-desktop-portal-gtk (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Gratton (mjog) wrote :

It would be great to get the fix backported to Bionic since people have been reporting this as bug in Geary already: https://bugzilla.gnome.org/show_bug.cgi?id=789846#c6

Revision history for this message
James Henstridge (jamesh) wrote :

bionic-proposed has a 3.28.2 package, so this should be resolved for that release shortly.

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Is this a bug in mutter that has been fixed ? As I'm wondering why this bug is still open for xdg-desktop-portal-gtk and if it can be closed ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.