xdg-desktop-portal-wlr: After sharing a few times (~3) it no longer works (using systemd unit)
Hi,
this is working pretty good in general, but the main problem is that after sharing and stop sharing the screen a few times, it no longer works. I have tested this in Chromium and Firefox. I am using the systemd unit, where I have edited the ExecStart lines as follows, so that it works with the browsers and uses the output I want:
ExecStart=/usr/lib/xdg-desktop-portal-wlr -p BGRx -o DP-1
The status of xdg-desktop-portal.service shows the following error:
~$ systemctl status --user xdg-desktop-portal.service
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static; vendor preset: enabled)
Active: active (running) since Wed 2020-04-29 08:57:28 CEST; 2h 12min ago
Main PID: 5898 (xdg-desktop-por)
CGroup: /user.slice/user-1000.slice/user@1000.service/xdg-desktop-portal.service
└─5898 /usr/lib/xdg-desktop-portal
Apr 29 08:57:28 tapia-laptop systemd[5544]: Starting Portal service...
Apr 29 08:57:28 tapia-laptop systemd[5544]: Started Portal service.
Apr 29 08:57:58 tapia-laptop xdg-desktop-por[5898]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
Could you tell me, how to further debug this?
Thanks!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18
Arch has updated the official pipewire package to version 0.3.4, so you will no longer need to use the pipewire-git AUR package to use this fix on Arch.
I’ve not seen any more complaints about this bug, so I’m gonna close it. If you think you are still experiencing intermittent failures that require a pipewire restart, you have segfaults in pipewire-media-session, and you’re using version 0.3.3 or newer, comment here and I’ll reopen this.
@danshick “Rock solid” seems like an accurate description to me 😉 I have tested this with the new pipewire patch and it is working perfectly. Right on time for a video-workshop I was planning to give next week at the university.
Thanks!
I havnt’t have time today to try to reliably reproduce this. I will report as soon as I have done it (if I can).
@cristobaltapia FYI
Okay, I’ve now tested dozens of casts, starting and stopping, in parallel and serially. It seems rock solid now.
I think this is fixed, but I’ll leave the issue open for a couple of days in case we have any more people experiencing issues. If you are running pipewire master and you get a pipewire-media-session segfault, please let us know and attach a backtrace to your comment if you can. Thanks!
Quick note for anyone wanting to test, pipewire-git in AUR is currently broken. Needed to update the _pick lines to:I’ve also commented on the AUR package, so it’ll probably be fixed soon. Just read the PKGBUILD before you use it.Edit: The PKGBUILD is now fixed.