Bug 1227199

Summary: xdg-desktop-portal-wlr no longer captures desktop
Product: [openSUSE] openSUSE Tumbleweed Reporter: Smith <jsmithfpv>
Component: Upgrade ProblemsAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: 95kreaninw95, anirudhata123, hotel-brot.0z
Version: Current   
Target Milestone: ---   
Hardware: HP   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screencast on snapshot 20240629.

Description Smith 2024-06-29 10:26:02 UTC
This was reported to me on Matrix and I had reproduced the issue. Both on snapshot 20240627.

Since updating, desktop capture no longer works across multiple compositors. I had tested multiple compositors, sway and river.

Relevant logs

systemctl status --user xdg-desktop-portal
```
Jun 29 06:18:24 Tylwyth systemd[2539]: Starting Portal service...
Jun 29 06:18:24 Tylwyth systemd[2539]: Started Portal service.
```

systemctl status --user xdg-desktop-portal-wlr
```
Jun 29 06:18:24 Tylwyth systemd[2539]: Starting Portal service (wlroots implementation)...
Jun 29 06:18:24 Tylwyth systemd[2539]: Started Portal service (wlroots implementation).
```
systemctl status --user wireplumber
```
Jun 29 06:21:40 Tylwyth systemd[2539]: Started Multimedia Service Session Manager.
Jun 29 06:21:40 Tylwyth wireplumber[36783]: default: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
Jun 29 06:21:40 Tylwyth wireplumber[36783]: wp-event-dispatcher: <WpAsyncEventHook:0x555a5bfd7f70> failed: <WpSiStandardLink:0x555a5c00bc00> link failed: some node was destroyed before the link was created
Jun 29 06:21:40 Tylwyth wireplumber[36783]: wp-event-dispatcher: <WpAsyncEventHook:0x555a5bfd7f70> failed: failed to configure si-standard-link <WpSiStandardLink:0x555a5c1c6b60>
Jun 29 06:21:41 Tylwyth wireplumber[36783]: [0:35:20.234047080] [36783]  WARN IPAManager ipa_manager.cpp:154 No IPA found in '/usr/lib64/libcamera'
Jun 29 06:21:41 Tylwyth wireplumber[36783]: [0:35:20.234095802] [36783]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0
```
Comment 1 Müller 2024-06-29 13:47:43 UTC
i can confirm this

journalctl:
Jun 29 15:45:31 AeonPC sudo[33990]:    user : TTY=pts/0 ; PWD=/home/user ; USER=root ; COMMAND=/usr/bin/systemctl restart systemd-journald
Jun 29 15:45:31 AeonPC sudo[33990]: pam_unix(sudo:session): session opened for user root(uid=0) by user(uid=1000)
Jun 29 15:45:31 AeonPC sudo[33990]: pam_unix(sudo:session): session closed for user root
Jun 29 15:45:37 AeonPC wireplumber[2420]: wp-event-dispatcher: <WpAsyncEventHook:0x5633eaf3da80> failed: <WpSiStandardLink:0x5633eae822d0> link failed: 1 of 1 PipeWire links failed to activate
Jun 29 15:45:37 AeonPC wireplumber[2420]: wp-event-dispatcher: <WpAsyncEventHook:0x5633eaf3da80> failed: <WpSiStandardLink:0x5633eaea2960> link failed: 1 of 1 PipeWire links failed to activate
Jun 29 15:45:38 AeonPC systemd[1701]: Started app-flatpak-dev.vencord.Vesktop-34029.scope.
Jun 29 15:45:44 AeonPC xdg-desktop-por[2470]: Failed to associate portal window with parent window 
Jun 29 15:45:46 AeonPC pipewire[2404]: mod.client-node: detected old client version 5
Jun 29 15:45:50 AeonPC xdg-desktop-por[2470]: Failed to close GNOME screen cast session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Das Objekt existiert nicht am Pfad »/org/gnome/Mutter/ScreenCast/Session/u11«
Jun 29 15:45:50 AeonPC wireplumber[2420]: wp-event-dispatcher: <WpAsyncEventHook:0x5633eaf3da80> failed: <WpSiStandardLink:0x5633eb26cb70> link failed: 1 of 1 PipeWire links failed to activate
Comment 2 Anirudha Ta 2024-06-30 06:22:05 UTC
I too have been encountering this issue
journalctl:

Jun 30 09:28:02 Sus dbus-daemon[5265]: [session uid=1000 pid=5265] Successfully activated service 'org.gnome.Shell.Screencast'

Jun 30 09:28:02 Sus org.gnome.Shell.Screencast[7321]: *** pw_stream_set_error called from wrong context, check thread and locking: Operation not permitted

Jun 30 09:28:16 Sus dbus-daemon[5265]: [session uid=1000 pid=5265] Activating service name='org.gnome.Shell.Screencast' requested by ':1.17' (uid=1000 pid=6025 comm="/usr/bin/gnome-shell")

Jun 30 09:28:16 Sus dbus-daemon[5265]: [session uid=1000 pid=5265] Successfully activated service 'org.gnome.Shell.Screencast'

Jun 30 09:28:16 Sus org.gnome.Shell.Screencast[7382]: *** pw_stream_set_error called from wrong context, check thread and locking: Operation not permitted

Jun 30 09:28:16 Sus gnome-shell[6025]: Screencast failed during phase STARTUP: GLib.Error shell-screencast-error: GDBus.Error:org.gnome.Shell.Screencast.Error.AllPipelinesFailed: All pipelines failed to start
Comment 3 Müller 2024-06-30 14:37:56 UTC
fixed with snapshot 20240629
Comment 4 Archer Allstars 2024-06-30 22:13:11 UTC
Created attachment 875787 [details]
Screencast on snapshot 20240629.

I confirm that snapshot 20240629 fixed GNOME screencast on my system. I am using Intel iGPU by the way.
Comment 5 Anirudha Ta 2024-07-01 04:09:40 UTC
I Confirm that snapshot 20240629 has fixed the issue for me
Comment 6 Müller 2024-07-01 05:01:22 UTC
Fixed by new snapshot with pipewire update