https://bugs.kde.org/show_bug.cgi?id=527555

--- Comment #2 from Matteo <[email protected]> ---
Root cause found: a race in KRdp's PortalRequest, not in the greeter switch.

PortalRequest connects to the portal's Response signal only after the method
call has returned. The portal sometimes sends Response before that, and the
signal is dropped, so the session never starts. dbus-monitor on a Raspberry
Pi 5 (Plasma 6.8.0, RemoteAccess mode) shows it in every failed connection:
the Response for CreateSession or SelectDevices arrives 1-13 ms before
krdpserver's AddMatch for the request path. On good connections the AddMatch
wins by only 2-4 ms. The "Tried to make uncreated stream active" warning
also shows on good connections; it is not related.

Automated test (xfreerdp3 connecting from localhost): 9 of 45 connections
without picture before the fix, 0 of 40 with it (krdp 6.8.1 + patch).

Fix: listen on the request path derived from handle_token before making the
call, as the portal documentation recommends.
MR: https://invent.kde.org/plasma/krdp/-/merge_requests/282

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to