Bug 451317 - xdg-desktop-portal causes slow app launch times due to error: Failed to create settings proxy: Error calling StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was reached
Summary: xdg-desktop-portal causes slow app launch times due to error: Failed to creat...
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.24.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-09 15:02 UTC by the_archer_xz
Modified: 2022-03-09 21:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
attachment-1922-0.html (2.27 KB, text/html)
2022-03-09 16:34 UTC, the_archer_xz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description the_archer_xz 2022-03-09 15:02:53 UTC
There's an issue with xdg-desktop-portal. The service fails to start. So GTK apps take time to load now.
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open a GTK app like Lutris.
2. 
3. 

OBSERVED RESULT

Takes 20 - 30 seconds for app to open.

EXPECTED RESULT

Should open instantly.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2022-03-09 15:06:15 UTC
Is it crashing? If so we'll need a backtrace.
Comment 2 the_archer_xz 2022-03-09 15:13:14 UTC
This is the result of the service:

systemd[5685]: Starting Portal service...
xdg-desktop-por[5954]: Failed to create settings proxy: Error calling 
StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was 
reached
xdg-desktop-por[5954]: Failed to create file chooser proxy: Error calling 
StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was 
reached
xdg-desktop-por[5954]: No skeleton to export
xdg-desktop-por[5954]: Failed to create app chooser proxy: Error calling 
StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was 
reached
xdg-desktop-por[5954]: No skeleton to export
systemd[5685]: xdg-desktop-portal.service: start operation timed out. 
Terminating.
systemd[5685]: xdg-desktop-portal.service: Failed with result 'timeout'.
systemd[5685]: Failed to start Portal service.

On Wednesday, March 9, 2022 8:06:15 A.M. MST you wrote:
> https://bugs.kde.org/show_bug.cgi?id=451317
> 
> David Edmundson <kde@davidedmundson.co.uk> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> Status|REPORTED                    |NEEDSINFO
>          Resolution|---                         |WAITINGFORINFO
>                  CC|                            |kde@davidedmundson.co.uk
> 
> --- Comment #1 from David Edmundson <kde@davidedmundson.co.uk> ---
> Is it crashing? If so we'll need a backtrace.
Comment 3 Nate Graham 2022-03-09 15:24:42 UTC
Sounds like there's not actually a crash.

xdg-desktop-por[5954]: Failed to create settings proxy: Error calling 
StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was 
reached
Comment 4 the_archer_xz 2022-03-09 15:31:41 UTC
Then what's causing it? Because this started happening on all my computers that 
run KDE Neon after I updated to 5.24.3.

Is there a way to revert to 5.24.2?

On Wednesday, March 9, 2022 8:24:42 A.M. MST you wrote:
> https://bugs.kde.org/show_bug.cgi?id=451317
> 
> Nate Graham <nate@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> Summary|xdg-desktop-portal crashes  |xdg-desktop-portal timeout
>                    |                            |causes slow app launch
>                    |                            |times
> 
>          Resolution|WAITINGFORINFO              |---
>              Status|NEEDSINFO                   |REPORTED
> 
> --- Comment #3 from Nate Graham <nate@kde.org> ---
> Sounds like there's not actually a crash.
> 
> xdg-desktop-por[5954]: Failed to create settings proxy: Error calling
> StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout was
> reached
Comment 5 Nate Graham 2022-03-09 16:25:29 UTC
That would depend on your distro's package management tools.

However nothing changed in the xdg-desktop-portal-kde repo between 5.24.2 and 5.24.3, so the problem was most likely introduced elsewhere in the stack.
Comment 6 the_archer_xz 2022-03-09 16:34:03 UTC
Created attachment 147406 [details]
attachment-1922-0.html

Then this is beyond what I can understand. Lol

I'll just deal with it for now until another update comes out. Hopefully
the issues will be resolved then.


On Wed, Mar 9, 2022, 9:25 AM Nate Graham, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=451317
>
> Nate Graham <nate@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>             Summary|xdg-desktop-portal timeout  |xdg-desktop-portal causes
>                    |causes slow app launch      |slow app launch times due
>                    |times                       |to error: Failed to create
>                    |                            |settings proxy: Error
>                    |                            |calling
> StartServiceByName
>                    |                            |for
>                    |
> |org.freedesktop.impl.portal
>                    |                            |.desktop.kde: Timeout was
>                    |                            |reached
>
> --- Comment #5 from Nate Graham <nate@kde.org> ---
> That would depend on your distro's package management tools.
>
> However nothing changed in the xdg-desktop-portal-kde repo between 5.24.2
> and
> 5.24.3, so the problem was most likely introduced elsewhere in the stack.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 7 the_archer_xz 2022-03-09 17:23:08 UTC
For now, as a temporary fix, I just disabled the user service by running: 
systemctl --user mask xdg-desktop-portal.service

On Wednesday, March 9, 2022 9:25:29 A.M. MST you wrote:
> https://bugs.kde.org/show_bug.cgi?id=451317
> 
> Nate Graham <nate@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> Summary|xdg-desktop-portal timeout  |xdg-desktop-portal causes
>                    |causes slow app launch      |slow app launch times due
>                    |times                       |to error: Failed to create
>                    |
>                    |                            |settings proxy: Error
>                    |                            |calling  StartServiceByName
>                    |                            |for
>                    |                            |org.freedesktop.impl.portal
>                    |                            |.desktop.kde: Timeout was
>                    |                            |reached
> 
> --- Comment #5 from Nate Graham <nate@kde.org> ---
> That would depend on your distro's package management tools.
> 
> However nothing changed in the xdg-desktop-portal-kde repo between 5.24.2
> and 5.24.3, so the problem was most likely introduced elsewhere in the
> stack.
Comment 8 the_archer_xz 2022-03-09 21:37:56 UTC
You were right. It was an issue in the stack somewhere for KDE Neon. After some 
kind of packages called libxcursor and wayland something was updated, the issue 
was resolved.

So, I guess this can be marked as solved.

On Wednesday, March 9, 2022 9:25:29 A.M. MST you wrote:
> https://bugs.kde.org/show_bug.cgi?id=451317
> 
> Nate Graham <nate@kde.org> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> Summary|xdg-desktop-portal timeout  |xdg-desktop-portal causes
>                    |causes slow app launch      |slow app launch times due
>                    |times                       |to error: Failed to create
>                    |
>                    |                            |settings proxy: Error
>                    |                            |calling  StartServiceByName
>                    |                            |for
>                    |                            |org.freedesktop.impl.portal
>                    |                            |.desktop.kde: Timeout was
>                    |                            |reached
> 
> --- Comment #5 from Nate Graham <nate@kde.org> ---
> That would depend on your distro's package management tools.
> 
> However nothing changed in the xdg-desktop-portal-kde repo between 5.24.2
> and 5.24.3, so the problem was most likely introduced elsewhere in the
> stack.
Comment 9 the_archer_xz 2022-03-09 21:39:24 UTC
It was an issue in the stack somewhere for KDE Neon. After some 
kind of packages called libxcursor and wayland something was updated, the issue 
was resolved.

Issue can be closed and marked as solved.

On Wednesday, March 9, 2022 8:31:28 A.M. MST you wrote:
> Then what's causing it? Because this started happening on all my computers
> that run KDE Neon after I updated to 5.24.3.
> 
> Is there a way to revert to 5.24.2?
> 
> On Wednesday, March 9, 2022 8:24:42 A.M. MST you wrote:
> > https://bugs.kde.org/show_bug.cgi?id=451317
> > 
> > Nate Graham <nate@kde.org> changed:
> >            What    |Removed                     |Added
> > 
> > --------------------------------------------------------------------------
> > -- Summary|xdg-desktop-portal crashes  |xdg-desktop-portal timeout
> > 
> >                    |                            |causes slow app launch
> >                    |                            |times
> >          
> >          Resolution|WAITINGFORINFO              |---
> >          
> >              Status|NEEDSINFO                   |REPORTED
> > 
> > --- Comment #3 from Nate Graham <nate@kde.org> ---
> > Sounds like there's not actually a crash.
> > 
> > xdg-desktop-por[5954]: Failed to create settings proxy: Error calling
> > StartServiceByName for org.freedesktop.impl.portal.desktop.kde: Timeout
> > was
> > reached
Comment 10 David Edmundson 2022-03-09 21:40:06 UTC
Glad to hear. Thanks.