Bug 28224 - GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
Summary: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-01-26 15:39 CET by papoteur
Modified: 2021-02-05 12:56 CET (History)
3 users (show)

See Also:
Source RPM: xdg-desktop-portal-1.4.2-1.mga7
CVE:
Status comment:


Attachments

Description papoteur 2021-01-26 15:39:46 CET
journal is spammed every minute by:
janv. 26 15:18:23 xdg-desktop-por[2019]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: Impossible d’appeler la méthode ; le serveur est mandataire d’un nom connu org.gnome.Shell sans propriétaire alors que le proxy a été construit avec le marqueur G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START
janv. 26 15:19:23 xdg-desktop-por[2019]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: Impossible d’appeler la méthode ; le serveur est mandataire d’un nom connu org.gnome.Shell sans propriétaire alors que le proxy a été construit avec le marqueur G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START
janv. 26 15:20:23 xdg-desktop-por[2019]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: Impossible d’appeler la méthode ; le serveur est mandataire d’un nom connu org.gnome.Shell sans propriétaire alors que le proxy a été construit avec le marqueur G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START
janv. 26 15:21:23 xdg-desktop-por[2019]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: Impossible d’appeler la méthode ; le serveur est mandataire d’un nom connu org.gnome.Shell sans propriétaire alors que le proxy a été construit avec le marqueur G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START

I didn't find any explanation except that xdg-desktop-portal 1.4.2 has to be updated to 1.5.

https://github.com/flatpak/xdg-desktop-portal-gtk/issues/215

This happens for as long as the journal is recorded.
I have flatpak installed through dependency of discover:
rpm -qa --last|grep discover
discover-5.15.4-2.mga7.x86_64                 jeu. 12 nov. 2020 09:13:23 CET
I will try to uninstall discover and flatpak.
Comment 1 papoteur 2021-01-27 07:33:49 CET
Uninstalling flatpak and xdg-desktop-portal and rebooting, works around the problem.

Source RPM: (none) => xdg-desktop-portal-1.4.2-1.mga7

Comment 3 Aurelien Oudelet 2021-01-28 21:04:13 CET
@Papoteur,

How this become appearing?
Installing flatpak?

CC: (none) => ouaurelien

Comment 4 papoteur 2021-01-28 23:04:44 CET
I presume yes. I installed it in November, but my journal is not so old. Until I uninstalled xdg-desktop-portal, this was present in journal every minute.
Comment 5 David GEIGER 2021-01-29 03:59:44 CET
And what about xdg-desktop-portal-1.4.2-1.1.mga7 in Core/Updayes_testing repo?

CC: (none) => geiger.david68210

Comment 6 papoteur 2021-01-29 09:23:54 CET
Hi David,
Installed and rebooted.
In journal, I have nothing else than what follows:

journalctl -b  |grep xdg-desk
janv. 29 09:13:17 YZenbook.home dbus-daemon[4512]: [session uid=1000 pid=4512] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.120' (uid=1000 pid=11146 comm="deja-dup --delay Pas de route vers l???h??te")
janv. 29 09:13:17 YZenbook.home dbus-daemon[4512]: [session uid=1000 pid=4512] Activating via systemd: service name='org.freedesktop.portal.Documents' unit='xdg-document-portal.service' requested by ':1.121' (uid=1000 pid=11149 comm="/usr/libexec/xdg-desktop-portal")
janv. 29 09:13:17 YZenbook.home dbus-daemon[4512]: [session uid=1000 pid=4512] Activating service name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.121' (uid=1000 pid=11149 comm="/usr/libexec/xdg-desktop-portal")
janv. 29 09:13:17 YZenbook.home xdg-desktop-por[11149]: Failed connect to PipeWire: Couldn't connect PipeWire remote

Thus I have no more the warning. Thus OK.
I don't know the last message means.
Failed connect to PipeWire: Couldn't connect PipeWire remote
Comment 7 Lewis Smith 2021-02-01 10:13:13 CET
Thanks both to DavidG for yet another fix; and papoteur for confirming its efficacity. That should do for MGA7-64OK (if 64-bit).
Should this now go to QA with an advisory?
Comment 8 Lewis Smith 2021-02-03 21:44:14 CET
Silence... I invent an advisory:
Advisory
--------
Bug 28224
Type: bugfix
Subject: Updated xdg-desktop-portal package stops it spamming the journal
RPM: xdg-desktop-portal-1.4.2-1.1.mga7
 in Core/Updates_testing
SRPM: xdg-desktop-portal-1.4.2-1.1.mga7.src.rpm
Description: xdg-desktop-portal would in some circumstances spam the journal every minute with "Failed to get application states ... Failed: Could not get window list" error messages. This update only warns once if it does not find the shell api.
Refs : 
https://github.com/flatpak/xdg-desktop-portal-gtk/issues/215
https://github.com/matthiasclasen/xdg-desktop-portal/commit/a3fd03f852a27ac45fbaf740a965ce45af5f5390
---
Assigning to QA to get this on its way.
I think papoteur's test comment 6 is good for 64-bit OK; it would be difficult to reproduce, the origin is uncertain. Test update, though.

Assignee: bugsquad => qa-bugs

Comment 9 Aurelien Oudelet 2021-02-04 14:01:49 CET
(In reply to papoteur from comment #6)
> Hi David,
> Installed and rebooted.
> In journal, I have nothing else than what follows:
> 
> journalctl -b  |grep xdg-desk
> janv. 29 09:13:17 YZenbook.home dbus-daemon[4512]: [session uid=1000
> pid=4512] Activating via systemd: service
> name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service'
> requested by ':1.120' (uid=1000 pid=11146 comm="deja-dup --delay Pas de
> route vers l???h??te")
> janv. 29 09:13:17 YZenbook.home dbus-daemon[4512]: [session uid=1000
> pid=4512] Activating via systemd: service
> name='org.freedesktop.portal.Documents' unit='xdg-document-portal.service'
> requested by ':1.121' (uid=1000 pid=11149
> comm="/usr/libexec/xdg-desktop-portal")
> janv. 29 09:13:17 YZenbook.home dbus-daemon[4512]: [session uid=1000
> pid=4512] Activating service name='org.freedesktop.impl.portal.desktop.kde'
> requested by ':1.121' (uid=1000 pid=11149
> comm="/usr/libexec/xdg-desktop-portal")
> janv. 29 09:13:17 YZenbook.home xdg-desktop-por[11149]: Failed connect to
> PipeWire: Couldn't connect PipeWire remote
> 
> Thus I have no more the warning. Thus OK.
> I don't know the last message means.
> Failed connect to PipeWire: Couldn't connect PipeWire remote

MGA7-64-OK
Validating,
Advisory pushed to SVN.

Keywords: (none) => advisory, validated_update
CC: (none) => sysadmin-bugs
Whiteboard: (none) => MGA7-64-OK

Comment 10 Mageia Robot 2021-02-05 12:56:11 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0019.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.