Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1700270 - High CPU Usage of `xdg-desktop-portal-kde`
Summary: High CPU Usage of `xdg-desktop-portal-kde`
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: xdg-desktop-portal-kde
Version: 30
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jan Grulich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1707954 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-16 08:25 UTC by Anass Ahmed
Modified: 2020-05-01 17:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-01 17:31:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
$ killall xdg-desktop-portal && G_MESSAGES_DEBUG=all /usr/libexec/xdg-desktop-portal (deleted)
2019-05-10 16:36 UTC, Christian Stadelmann
no flags Details

Description Anass Ahmed 2019-04-16 08:25:36 UTC
Description of problem:
The process `xdg-desktop-portal-kde` is continuously using 100% of CPU since I upgraded to F30 beta. Every time I kill it, it returns back when I search for an app in the GNOME Shell Overview.

Version-Release number of selected component (if applicable):
xdg-desktop-portal-kde-5.15.2-2.fc30.x86_64
gnome-shell-3.32.0-1.fc30.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Open GNOME Shell Overview.
2. Search for an application.
3. High CPU usage is observed in `htop` or any system resources monitoring app.

Actual results:
High CPU usage of process `xdg-desktop-portal-kde`

Expected results:
Normal CPU usage of process `xdg-desktop-portal-kde`

Additional info:
The only logs I could capture that mentions this process from `journalctl` command was the following;

Apr 16 09:47:35 anass-galago systemd[2601]: Created slice dbus\x2d:1.2\x2dorg.freedesktop.impl.portal.desktop.kde.slice.                                                                                                                      
Apr 16 09:47:35 anass-galago systemd[2601]: Started dbus-:1.2-org.freedesktop.impl.portal.desktop.kde.
Apr 16 09:47:35 anass-galago xdg-desktop-portal-kde[11551]: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Comment 1 Jan Vlug 2019-05-06 19:28:42 UTC
Confirming. Also after upgrade to Fedora 30.

Comment 2 Jan Grulich 2019-05-07 10:07:57 UTC
First of all, you shouldn't be using xdg-desktop-portal-kde in Gnome, instead install xdg-desktop-portal-gtk. Can you in a terminal run:
1) killall xdg-desktop-portal-kde
2) QT_LOGGING_RULES='xdp*.debug=true' /usr/libexec/xdg-desktop-portal-kde

Then try to reproduce the issue and attach the output here.

Comment 3 Christian Stadelmann 2019-05-08 19:22:13 UTC
*** Bug 1707954 has been marked as a duplicate of this bug. ***

Comment 4 Christian Stadelmann 2019-05-08 19:32:24 UTC
I am affected by this bug too.

(In reply to Jan Grulich from comment #2)
> First of all, you shouldn't be using xdg-desktop-portal-kde in Gnome,
> instead install xdg-desktop-portal-gtk.

I have xdg-desktop-portal-gtk running, it works fine. I don't know why xdg-desktop-portal-kde is running, but it is being started at every login as child of `/usr/lib/systemd/systemd --user`, as is xdg-desktop-portal and xdg-desktop-portal-kde and xdg-document-portal.

> Can you in a terminal run:
> 1) killall xdg-desktop-portal-kde
> 2) QT_LOGGING_RULES='xdp*.debug=true' /usr/libexec/xdg-desktop-portal-kde
> 
> Then try to reproduce the issue and attach the output here.

The output does not look like it contains anything interesting:

$ QT_LOGGING_RULES='xdp*.debug=true' /usr/libexec/xdg-desktop-portal-kde
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
xdp-kde-wayland-integration: Egl initialization succeeded
xdp-kde-wayland-integration: "EGL version: 1.4"
xdp-kde: Desktop portal registered successfully
xdp-kde-wayland-integration: Registry initialized
xdp-kde-wayland-integration: Adding output:
xdp-kde-wayland-integration:     manufacturer:  "BNQ"
xdp-kde-wayland-integration:     model:  "BenQ RL2450H"
xdp-kde-wayland-integration:     resolution:  QSize(1920, 1080)


Maybe the backtrace I reported in bug #1707954 helps.

Comment 5 Jan Grulich 2019-05-10 07:52:59 UTC
Can you kill xdg-desktop-portal and start it with "G_MESSAGES_DEBUG=all /usr/libexec/xdg-desktop-portal" to see what portals it uses?

Comment 6 Christian Stadelmann 2019-05-10 16:36:37 UTC
Created attachment 1566741 [details]
$ killall xdg-desktop-portal && G_MESSAGES_DEBUG=all /usr/libexec/xdg-desktop-portal

KDE is listed only twice in the logs, first when loading the module
> loading /usr/share/xdg-desktop-portal/portals/kde.portal

and then later during some proxy initialization stuff:
> Falling back to kde.portal for org.freedesktop.impl.portal.Settings

Comment 7 Jan Grulich 2019-05-12 13:47:53 UTC
So the only portal used from xdg-desktop-portal-kde seems to be Settings portal, I think this might be already fixed in Plasma 5.15.5 with this [1] commit. You can either try this or wait until we update it in Fedora.

[1] - https://cgit.kde.org/xdg-desktop-portal-kde.git/commit/?h=Plasma/5.15&id=045302b5292cb62da5843906825c04898d6656d7

Comment 8 Fedora Update System 2019-05-23 10:11:03 UTC
bluedevil-5.15.5-1.fc30 breeze-gtk-5.15.5-1.fc30 grub2-breeze-theme-5.15.5-1.fc30 kactivitymanagerd-5.15.5-1.fc30 kde-cli-tools-5.15.5-1.fc30 kde-gtk-config-5.15.5-1.fc30 kdecoration-5.15.5-1.fc30 kdeplasma-addons-5.15.5-1.fc30 kgamma-5.15.5-1.fc30 khotkeys-5.15.5-1.fc30 kinfocenter-5.15.5-1.fc30 kmenuedit-5.15.5-1.fc30 kscreen-5.15.5-1.fc30 kscreenlocker-5.15.5-1.fc30 ksshaskpass-5.15.5-1.fc30 ksysguard-5.15.5-1.fc30 kwayland-integration-5.15.5-1.fc30 kwin-5.15.5-1.fc30 kwrited-5.15.5-1.fc30 libkscreen-qt5-5.15.5-1.fc30 libksysguard-5.15.5-1.fc30 pam-kwallet-5.15.5-1.fc30 plasma-breeze-5.15.5-1.fc30 plasma-browser-integration-5.15.5-1.fc30 plasma-desktop-5.15.5-1.fc30 plasma-discover-5.15.5-1.fc30 plasma-drkonqi-5.15.5-1.fc30 plasma-integration-5.15.5-1.fc30 plasma-milou-5.15.5-1.fc30 plasma-nm-5.15.5-1.fc30 plasma-oxygen-5.15.5-1.fc30 plasma-pa-5.15.5-1.fc30 plasma-sdk-5.15.5-1.fc30 plasma-systemsettings-5.15.5-1.fc30 plasma-user-manager-5.15.5-1.fc30 plasma-vault-5.15.5-1.fc30 plasma-workspace-5.15.5-1.fc30 plasma-workspace-wallpapers-5.15.5-1.fc30 plymouth-kcm-5.15.5-1.fc30 plymouth-theme-breeze-5.15.5-1.fc30 polkit-kde-5.15.5-1.fc30 powerdevil-5.15.5-1.fc30 sddm-kcm-5.15.5-1.fc30 xdg-desktop-portal-kde-5.15.5-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-c8b2331683

Comment 9 Fedora Update System 2019-05-23 10:13:17 UTC
bluedevil-5.15.5-1.fc30 breeze-gtk-5.15.5-1.fc30 grub2-breeze-theme-5.15.5-1.fc30 kactivitymanagerd-5.15.5-1.fc30 kde-cli-tools-5.15.5-1.fc30 kde-gtk-config-5.15.5-1.fc30 kdecoration-5.15.5-1.fc30 kdeplasma-addons-5.15.5-1.fc30 kgamma-5.15.5-1.fc30 khotkeys-5.15.5-1.fc30 kinfocenter-5.15.5-1.fc30 kmenuedit-5.15.5-1.fc30 kscreen-5.15.5-1.fc30 kscreenlocker-5.15.5-1.fc30 ksshaskpass-5.15.5-1.fc30 ksysguard-5.15.5-1.fc30 kwayland-integration-5.15.5-1.fc30 kwin-5.15.5-1.fc30 kwrited-5.15.5-1.fc30 libkscreen-qt5-5.15.5-1.fc30 libksysguard-5.15.5-1.fc30 pam-kwallet-5.15.5-1.fc30 plasma-breeze-5.15.5-1.fc30 plasma-browser-integration-5.15.5-1.fc30 plasma-desktop-5.15.5-1.fc30 plasma-discover-5.15.5-1.fc30 plasma-drkonqi-5.15.5-1.fc30 plasma-integration-5.15.5-1.fc30 plasma-milou-5.15.5-1.fc30 plasma-nm-5.15.5-1.fc30 plasma-oxygen-5.15.5-1.fc30 plasma-pa-5.15.5-1.fc30 plasma-sdk-5.15.5-1.fc30 plasma-systemsettings-5.15.5-1.fc30 plasma-user-manager-5.15.5-1.fc30 plasma-vault-5.15.5-1.fc30 plasma-workspace-5.15.5-1.fc30 plasma-workspace-wallpapers-5.15.5-1.fc30 plymouth-kcm-5.15.5-1.fc30 plymouth-theme-breeze-5.15.5-1.fc30 polkit-kde-5.15.5-1.fc30 powerdevil-5.15.5-1.fc30 sddm-kcm-5.15.5-1.fc30 xdg-desktop-portal-kde-5.15.5-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-c8b2331683

Comment 10 Fedora Update System 2019-05-23 18:58:15 UTC
bluedevil-5.15.5-1.fc30, breeze-gtk-5.15.5-1.fc30, grub2-breeze-theme-5.15.5-1.fc30, kactivitymanagerd-5.15.5-1.fc30, kde-cli-tools-5.15.5-1.fc30, kde-gtk-config-5.15.5-1.fc30, kdecoration-5.15.5-1.fc30, kdeplasma-addons-5.15.5-1.fc30, kgamma-5.15.5-1.fc30, khotkeys-5.15.5-1.fc30, kinfocenter-5.15.5-1.fc30, kmenuedit-5.15.5-1.fc30, kscreen-5.15.5-1.fc30, kscreenlocker-5.15.5-1.fc30, ksshaskpass-5.15.5-1.fc30, ksysguard-5.15.5-1.fc30, kwayland-integration-5.15.5-1.fc30, kwin-5.15.5-1.fc30, kwrited-5.15.5-1.fc30, libkscreen-qt5-5.15.5-1.fc30, libksysguard-5.15.5-1.fc30, pam-kwallet-5.15.5-1.fc30, plasma-breeze-5.15.5-1.fc30, plasma-browser-integration-5.15.5-1.fc30, plasma-desktop-5.15.5-1.fc30, plasma-discover-5.15.5-1.fc30, plasma-drkonqi-5.15.5-1.fc30, plasma-integration-5.15.5-1.fc30, plasma-milou-5.15.5-1.fc30, plasma-nm-5.15.5-1.fc30, plasma-oxygen-5.15.5-1.fc30, plasma-pa-5.15.5-1.fc30, plasma-sdk-5.15.5-1.fc30, plasma-systemsettings-5.15.5-1.fc30, plasma-user-manager-5.15.5-1.fc30, plasma-vault-5.15.5-1.fc30, plasma-workspace-5.15.5-1.fc30, plasma-workspace-wallpapers-5.15.5-1.fc30, plymouth-kcm-5.15.5-1.fc30, plymouth-theme-breeze-5.15.5-1.fc30, polkit-kde-5.15.5-1.fc30, powerdevil-5.15.5-1.fc30, sddm-kcm-5.15.5-1.fc30, xdg-desktop-portal-kde-5.15.5-2.fc30 has been pushed to the Fedora 30 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-2019-c8b2331683

Comment 11 Fedora Update System 2019-05-28 01:10:09 UTC
bluedevil-5.15.5-1.fc30, breeze-gtk-5.15.5-1.fc30, grub2-breeze-theme-5.15.5-1.fc30, kactivitymanagerd-5.15.5-1.fc30, kde-cli-tools-5.15.5-1.fc30, kde-gtk-config-5.15.5-1.fc30, kdecoration-5.15.5-1.fc30, kdeplasma-addons-5.15.5-1.fc30, kgamma-5.15.5-1.fc30, khotkeys-5.15.5-1.fc30, kinfocenter-5.15.5-1.fc30, kmenuedit-5.15.5-1.fc30, kscreen-5.15.5-1.fc30, kscreenlocker-5.15.5-1.fc30, ksshaskpass-5.15.5-1.fc30, ksysguard-5.15.5-1.fc30, kwayland-integration-5.15.5-1.fc30, kwin-5.15.5-1.fc30, kwrited-5.15.5-1.fc30, libkscreen-qt5-5.15.5-1.fc30, libksysguard-5.15.5-1.fc30, pam-kwallet-5.15.5-1.fc30, plasma-breeze-5.15.5-1.fc30, plasma-browser-integration-5.15.5-1.fc30, plasma-desktop-5.15.5-1.fc30, plasma-discover-5.15.5-1.fc30, plasma-drkonqi-5.15.5-1.fc30, plasma-integration-5.15.5-1.fc30, plasma-milou-5.15.5-1.fc30, plasma-nm-5.15.5-1.fc30, plasma-oxygen-5.15.5-1.fc30, plasma-pa-5.15.5-1.fc30, plasma-sdk-5.15.5-1.fc30, plasma-systemsettings-5.15.5-1.fc30, plasma-user-manager-5.15.5-1.fc30, plasma-vault-5.15.5-1.fc30, plasma-workspace-5.15.5-1.fc30, plasma-workspace-wallpapers-5.15.5-1.fc30, plymouth-kcm-5.15.5-1.fc30, plymouth-theme-breeze-5.15.5-1.fc30, polkit-kde-5.15.5-1.fc30, powerdevil-5.15.5-1.fc30, sddm-kcm-5.15.5-1.fc30, xdg-desktop-portal-kde-5.15.5-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Ben Cotton 2020-04-30 21:55:11 UTC
This message is a reminder that Fedora 30 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '30'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 30 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 13 Christian Stadelmann 2020-05-01 17:31:36 UTC
I have not seen this issue for a long while on Fedora 31.


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