Bug 423514 - Multiple xdg-desktop-portal-kde processes using 100% CPU after Wayland session starts
Summary: Multiple xdg-desktop-portal-kde processes using 100% CPU after Wayland sessio...
Status: RESOLVED NOT A BUG
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
: 423513 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-06-25 17:41 UTC by Matej Mrenica
Modified: 2021-02-16 18:11 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matej Mrenica 2020-06-25 17:41:27 UTC
SUMMARY
Often when I start Plasma Wayland session there are few processes named xdg-desktop-portal-kde using a lot of CPU. Maybe because they fail to start properly?

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71
Qt Version: 5.15.0

Is there a log I can provide next time it happens?
Comment 1 Jan Grulich 2020-06-25 18:57:59 UTC
Try to kill them all and run one with:
QT_LOGGING_RULES='xdp*.debug=true' /usr/libexec/xdg-desktop-portal-kde

or wherever your xdg-desktop-portal-kde is located.

Attach here the output please.
Comment 2 Zamundaaa 2020-07-04 16:00:48 UTC
Same problem here.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.19.80 (compiled with kdesrc-build)
KDE Frameworks Version: 5.72
Qt Version: 5.15.0

I killed all xdg* processes, but starting the new one succeded without a problem:
    $ QT_LOGGING_RULES='xdp*.debug=true' /usr/lib/xdg-desktop-portal-kde
    xdp-kde-wayland-integration: Egl initialization succeeded
    xdp-kde-wayland-integration: "EGL version: 1.5"
    xdp-kde: Desktop portal registered successfully
    xdp-kde-wayland-integration: Registry initialized
    xdp-kde-wayland-integration: Adding output:
    xdp-kde-wayland-integration:     manufacturer:  "CMN"
    xdp-kde-wayland-integration:     model:  "eDP-1-unknown"
    xdp-kde-wayland-integration:     resolution:  QSize(1920, 1080)
Comment 3 Zamundaaa 2020-07-04 16:21:54 UTC
Well, I now built Plasma again, rebooted a few times and can't reproduce it with xdg processes anymore. kdeconnectd seems to sometimes still go rogue though.
Comment 4 Matej Mrenica 2020-07-12 09:31:38 UTC
This might be caused by drkonqi getting stuck when something crashes because since I uninstalled it I don't have this issue and It (dkonqi) was always running when this problem occured. Anyway, this bug is not caused by xdg-desktop-portal-kde so this issue can be closed now, ideally if someone else can confirm.
Comment 5 Matej Mrenica 2020-07-13 17:41:18 UTC
*** Bug 423513 has been marked as a duplicate of this bug. ***
Comment 6 aaditya 2021-01-22 12:26:13 UTC
(In reply to Jan Grulich from comment #1)
> Try to kill them all and run one with:
> QT_LOGGING_RULES='xdp*.debug=true' /usr/libexec/xdg-desktop-portal-kde
> 
> or wherever your xdg-desktop-portal-kde is located.
> 
> Attach here the output please.

Not OP but, after killing it and starting it, it seems the thing was resolved
Comment 7 Matej Mrenica 2021-02-16 18:11:52 UTC
This is not an issue caused by xdg-desktop-portal-kde, but by drkonqi.