hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
305 stars 48 forks source link

Browser screensharing stops after a seemingly random period of time #202

Open JonaLoeffler opened 8 months ago

JonaLoeffler commented 8 months ago

I can start screensharing in Google Meet on Firefox without issue, but after a few minutes the picture freezes and I have to manually restart the screenshare. Sometimes it will even stop completely instead of just freezing.

systemctl status --user xdg-desktop-portal.service reports

Mar 19 07:05:04 nidavellir systemd[12043]: Starting xdg-desktop-portal.service - Portal service...
Mar 19 07:05:04 nidavellir systemd[12043]: Started xdg-desktop-portal.service - Portal service.
Mar 19 07:32:32 nidavellir xdg-desktop-por[12381]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/portal/desktop/session/1_27/webrtc_session97553910'.
Mar 19 07:52:08 nidavellir xdg-desktop-por[12381]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/portal/desktop/session/1_27/webrtc_session205824168'.
Mar 19 07:56:00 nidavellir xdg-desktop-por[12381]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/portal/desktop/session/1_27/webrtc_session1591423792'.
Mar 19 07:57:10 nidavellir xdg-desktop-por[12381]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/portal/desktop/session/1_27/webrtc_session115758832'.
Mar 19 07:59:26 nidavellir xdg-desktop-por[12381]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/portal/desktop/session/1_27/webrtc_session398004492'.
Mar 19 08:05:02 nidavellir xdg-desktop-por[12381]: Failed to close session implementation: GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/portal/desktop/session/1_27/webrtc_session675058866'.
~
~

The attached log has more relevant logs from journalctl --user -xeu xdg-desktop-portal-hyprland.service:

Mar 19 07:30:21 nidavellir systemd-coredump[69223]: Process 12562 (xdg-desktop-por) of user 1000 dumped core.

                                                    Module libpipewire-module-session-manager.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libpipewire-module-metadata.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libpipewire-module-adapter.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libpipewire-module-client-device.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libpipewire-module-client-node.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libpcre2-8.so.0 from rpm pcre2-10.42-1.fc39.2.x86_64
                                                    Module libselinux.so.1 from rpm libselinux-3.5-5.fc39.x86_64
                                                    Module libpipewire-module-protocol-native.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libdbus-1.so.3 from rpm dbus-1.14.10-1.fc39.x86_64
                                                    Module libspa-dbus.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libspa-journal.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libspa-support.so from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libXau.so.6 from rpm libXau-1.0.11-3.fc39.x86_64
                                                    Module libxcb.so.1 from rpm libxcb-1.13.1-12.fc39.x86_64
                                                    Module libffi.so.8 from rpm libffi-3.4.4-4.fc39.x86_64
                                                    Module libzstd.so.1 from rpm zstd-1.5.5-4.fc39.x86_64
                                                    Module liblzma.so.5 from rpm xz-5.4.4-1.fc39.x86_64
                                                    Module liblz4.so.1 from rpm lz4-1.9.4-4.fc39.x86_64
                                                    Module libcap.so.2 from rpm libcap-2.48-9.fc39.x86_64
                                                    Module libxcb-randr.so.0 from rpm libxcb-1.13.1-12.fc39.x86_64
                                                    Module libexpat.so.1 from rpm expat-2.6.0-1.fc39.x86_64
                                                    Module libwayland-server.so.0 from rpm wayland-1.22.0-2.fc39.x86_64
                                                    Module libwayland-client.so.0 from rpm wayland-1.22.0-2.fc39.x86_64
                                                    Module libsystemd.so.0 from rpm systemd-254.10-1.fc39.x86_64
                                                    Module libpipewire-0.3.so.0 from rpm pipewire-1.0.4-2.fc39.x86_64
                                                    Module libdrm.so.2 from rpm libdrm-2.4.120-1.fc39.x86_64
                                                    Module libhyprlang.so.2 from rpm hyprlang-0.5.0-1.fc39.x86_64
                                                    Module libgbm.so.1 from rpm mesa-23.3.6-1.fc39.x86_64
                                                    Module xdg-desktop-portal-hyprland from rpm xdg-desktop-portal-hyprland-1.3.1-4.fc39.x86_64
                                                    Stack trace of thread 12562:
                                                    #0  0x000055a9224e00ea _ZL19pwStreamStateChangePv15pw_stream_stateS0_PKc (xdg-desktop-portal-hyprland + 0x3e0ea)
                                                    #1  0x00007fd1aab0e639 stream_set_state (libpipewire-0.3.so.0 + 0x89639)
                                                    #2  0x00007fd1aab052e8 pw_proxy_destroy (libpipewire-0.3.so.0 + 0x802e8)
                                                    #3  0x00007fd1aab12c9e stream_disconnect (libpipewire-0.3.so.0 + 0x8dc9e)
                                                    #4  0x00007fd1aaacfd15 proxy_core_removed (libpipewire-0.3.so.0 + 0x4ad15)
                                                    #5  0x00007fd1aab05518 pw_proxy_remove (libpipewire-0.3.so.0 + 0x80518)
                                                    #6  0x00007fd1aaad0218 pw_core_disconnect (libpipewire-0.3.so.0 + 0x4b218)
                                                    #7  0x000055a9224df2e7 _ZN19CPipewireConnectionD2Ev (xdg-desktop-portal-hyprland + 0x3d2e7)
                                                    #8  0x000055a9224f8721 _ZN14CPortalManager4initEv (xdg-desktop-portal-hyprland + 0x56721)
                                                    #9  0x000055a9224ba992 main (xdg-desktop-portal-hyprland + 0x18992)
                                                    #10 0x00007fd1aa44614a __libc_start_call_main (libc.so.6 + 0x2814a)
                                                    #11 0x00007fd1aa44620b __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x2820b)
                                                    #12 0x000055a9224baf55 _start (xdg-desktop-portal-hyprland + 0x18f55)

                                                    Stack trace of thread 12567:
                                                    #0  0x00007fd1aa533c12 epoll_wait (libc.so.6 + 0x115c12)
                                                    #1  0x00007fd1aa2760a8 impl_pollfd_wait (libspa-support.so + 0x170a8)
                                                    #2  0x00007fd1aa267eb9 loop_iterate (libspa-support.so + 0x8eb9)
                                                    #3  0x00007fd1aaace1f3 do_loop (libpipewire-0.3.so.0 + 0x491f3)
                                                    #4  0x00007fd1aa4ac897 start_thread (libc.so.6 + 0x8e897)
                                                    #5  0x00007fd1aa53380c __clone3 (libc.so.6 + 0x11580c)
                                                    ELF object binary architecture: AMD x86-64
░░ Subject: Process 12562 (xdg-desktop-por) dumped core
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ Documentation: man:core(5)
░░
░░ Process 12562 (xdg-desktop-por) crashed and dumped core.
░░
░░ This usually indicates a programming error in the crashing program and
░░ should be reported to its vendor as a bug.

desktop-portal-hyprland.log