hyprwm / xdg-desktop-portal-hyprland

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

[SOLVED]Unable to screen share after restart session(logout/login) and have to reboot to screen share again #101

Closed NotRealSean closed 1 year ago

NotRealSean commented 1 year ago

I have experience this issue after I install Cinnamon desktop and remove it with its desktop portal. xdg-desktop-portal-hyprland work fine but all I see is black screen on screen share without any pop up or anything. I have follow this tutorial but nothing work for me.

My system info

Here is all error I think is the main problem

qt.accessibility.atspi: Error in contacting registry: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server"


Sep 26 08:48:08 sanvitalia sudo[4746]:    lunar : TTY=pts/0 ; PWD=/home/lunar ; USER=root ; COMMAND=/sbin/hyprland-share-picker
Sep 26 08:48:08 sanvitalia sudo[4746]: pam_unix(sudo:session): session opened for user root(uid=0) by lunar(uid=1000)
Sep 26 08:48:08 sanvitalia sudo[4746]: pam_unix(sudo:session): session closed for user root
Sep 26 08:51:10 sanvitalia dbus-daemon[508]: [session uid=1000 pid=508] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.hyprland' unit='xdg-desktop-portal-hy>
Sep 26 08:51:10 sanvitalia systemd[483]: Starting Portal service (Hyprland implementation)...
Sep 26 08:51:10 sanvitalia dbus-daemon[508]: [session uid=1000 pid=508] Successfully activated service 'org.freedesktop.impl.portal.desktop.hyprland'
Sep 26 08:51:10 sanvitalia systemd[483]: Started Portal service (Hyprland implementation).
Sep 26 08:51:10 sanvitalia systemd-coredump[5622]: [🡕] Process 5605 (xdg-desktop-por) of user 1000 dumped core.

                                                   Stack trace of thread 5605:
                                                   #0  0x00007fc9bf0d9b5f wl_list_remove (libwayland-client.so.0 + 0x7b5f)
                                                   #1  0x00005555cfd05257 method_screencast_select_sources (xdg-desktop-portal-hyprland + 0xb257)
                                                   #2  0x00007fc9bf01542d n/a (libsystemd.so.0 + 0x3642d)
                                                   #3  0x00007fc9bf02edec n/a (libsystemd.so.0 + 0x4fdec)
                                                   #4  0x00005555cfd01259 main (xdg-desktop-portal-hyprland + 0x7259)
                                                   #5  0x00007fc9bec27cd0 n/a (libc.so.6 + 0x27cd0)
                                                   #6  0x00007fc9bec27d8a __libc_start_main (libc.so.6 + 0x27d8a)
                                                   #7  0x00005555cfd00975 _start (xdg-desktop-portal-hyprland + 0x6975)

                                                   Stack trace of thread 5608:
                                                   #0  0x00007fc9bed11226 epoll_wait (libc.so.6 + 0x111226)
                                                   #1  0x00007fc9bf109cd9 n/a (libspa-support.so + 0x15cd9)
                                                   #2  0x00007fc9bf0fc4fd n/a (libspa-support.so + 0x84fd)
                                                   #3  0x00007fc9bef41cc2 n/a (libpipewire-0.3.so.0 + 0x45cc2)
                                                   #4  0x00007fc9bec8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007fc9bed10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5610:
                                                   #0  0x00007fc9bec894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007fc9bec8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007fc9bbcc791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007fc9bbd1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007fc9bec8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007fc9bed10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5611:
                                                   #0  0x00007fc9bec894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007fc9bec8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007fc9bbcc791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007fc9bbd1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007fc9bec8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007fc9bed10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5612:
                                                   #0  0x00007fc9bec894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007fc9bec8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007fc9bbcc791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007fc9bbd1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007fc9bec8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007fc9bed10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5613:
                                                   #0  0x00007fc9bec894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007fc9bec8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007fc9bbcc791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007fc9bbd1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007fc9bec8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007fc9bed10dfc n/a (libc.so.6 + 0x110dfc)
                                                   ELF object binary architecture: AMD x86-64
Sep 26 08:51:10 sanvitalia systemd[483]: xdg-desktop-portal-hyprland.service: Main process exited, code=dumped, status=11/SEGV
Sep 26 08:51:10 sanvitalia xdg-desktop-por[663]: A backend call failed: Message recipient disconnected from message bus without replying
Sep 26 08:51:10 sanvitalia systemd[483]: xdg-desktop-portal-hyprland.service: Failed with result 'core-dump'.
Sep 26 08:51:10 sanvitalia dbus-daemon[508]: [session uid=1000 pid=508] Activating via systemd: service name='org.freedesktop.impl.portal.desktop.hyprland' unit='xdg-desktop-portal-hy>
Sep 26 08:51:10 sanvitalia xdg-desktop-por[663]: Error deleting permission: No entry for 83c4601f-1b1e-4682-9162-606596406ae6
Sep 26 08:51:11 sanvitalia systemd[483]: xdg-desktop-portal-hyprland.service: Scheduled restart job, restart counter is at 1.
Sep 26 08:51:11 sanvitalia systemd[483]: Starting Portal service (Hyprland implementation)...
Sep 26 08:51:11 sanvitalia dbus-daemon[508]: [session uid=1000 pid=508] Successfully activated service 'org.freedesktop.impl.portal.desktop.hyprland'
Sep 26 08:51:11 sanvitalia systemd[483]: Started Portal service (Hyprland implementation).
Sep 26 08:51:35 sanvitalia xdg-desktop-por[663]: Failed to close session implementation: Timeout was reached
Sep 26 08:51:36 sanvitalia hyprland-share-picker[7061]: qt.accessibility.atspi: Error in contacting registry: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server"
Sep 26 08:51:41 sanvitalia systemd-coredump[7094]: [🡕] Process 5540 (obs) of user 1000 dumped core.

                                                   Stack trace of thread 5540:
                                                   #0  0x00007f26e6a8fdb4 pthread_mutex_lock (libc.so.6 + 0x8fdb4)
                                                   #1  0x00007f26e9379f63 signal_handler_signal (libobs.so.0 + 0x7bf63)
                                                   #2  0x00007f26e937118d obs_source_save (libobs.so.0 + 0x7318d)
                                                   #3  0x00007f2677d591ac n/a (linux-pipewire.so + 0x491ac)
                                                   #4  0x00007f26d9c76ec8 n/a (libgio-2.0.so.0 + 0x100ec8)
                                                   #5  0x00007f26e6d0df19 n/a (libglib-2.0.so.0 + 0x59f19)
                                                   #6  0x00007f26e6d6c2b7 n/a (libglib-2.0.so.0 + 0xb82b7)
                                                   #7  0x00007f26e6d0c112 g_main_context_iteration (libglib-2.0.so.0 + 0x58112)
                                                   #8  0x00007f26e7532794 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3327>
                                                   #9  0x00007f26e7345623 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x145623)
                                                   #10 0x00007f26e733f1f8 _ZN16QCoreApplication4execEv (libQt6Core.so.6 + 0x13f1f8)
                                                   #11 0x0000563b94146ba8 main (obs + 0xa0ba8)
                                                   #12 0x00007f26e6a27cd0 n/a (libc.so.6 + 0x27cd0)
                                                   #13 0x00007f26e6a27d8a __libc_start_main (libc.so.6 + 0x27d8a)
                                                   #14 0x0000563b94149cc5 n/a (obs + 0xa3cc5)

                                                   Stack trace of thread 5549:
                                                   #0  0x00007f26e6b0359f __poll (libc.so.6 + 0x10359f)
                                                   #1  0x00007f26e6d6c206 n/a (libglib-2.0.so.0 + 0xb8206)
                                                   #2  0x00007f26e6d0c112 g_main_context_iteration (libglib-2.0.so.0 + 0x58112)
                                                   #3  0x00007f26e75327ba _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x3327>
                                                   #4  0x00007f26e7345623 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x145623)
                                                   #5  0x00007f26e742d14f _ZN7QThread4execEv (libQt6Core.so.6 + 0x22d14f)
                                                   #6  0x00007f26d9aeeaef n/a (libQt6DBus.so.6 + 0x2eaef)
                                                   #7  0x00007f26e7473352 n/a (libQt6Core.so.6 + 0x273352)
                                                   #8  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #9  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5555:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a8c055 pthread_cond_timedwait (libc.so.6 + 0x8c055)
                                                   #2  0x00007f26e93b4d6a os_event_timedwait (libobs.so.0 + 0xb6d6a)
                                                   #3  0x00007f26e934be65 obs_hotkey_thread (libobs.so.0 + 0x4de65)
                                                   #4  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5550:
                                                   #0  0x00007f26e6b0359f __poll (libc.so.6 + 0x10359f)
                                                   #1  0x00007f26d61e0a58 n/a (libQt6WaylandClient.so.6 + 0x68a58)
                                                   #2  0x00007f26e7473352 n/a (libQt6Core.so.6 + 0x273352)
                                                   #3  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #4  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5552:
                                                   #0  0x00007f26e6b0ed6d syscall (libc.so.6 + 0x10ed6d)
                                                   #1  0x00007f26e6d67247 g_cond_wait (libglib-2.0.so.0 + 0xb3247)
                                                   #2  0x00007f26e6cd91b4 n/a (libglib-2.0.so.0 + 0x251b4)
                                                   #3  0x00007f26e6d41a2e n/a (libglib-2.0.so.0 + 0x8da2e)
                                                   #4  0x00007f26e6d3f9a5 n/a (libglib-2.0.so.0 + 0x8b9a5)
                                                   #5  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #6  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5554:
                                                   #0  0x00007f26e6b0359f __poll (libc.so.6 + 0x10359f)
                                                   #1  0x00007f26e6d6c206 n/a (libglib-2.0.so.0 + 0xb8206)
                                                   #2  0x00007f26e6d0eb47 g_main_loop_run (libglib-2.0.so.0 + 0x5ab47)
                                                   #3  0x00007f26d9c880bc n/a (libgio-2.0.so.0 + 0x1120bc)
                                                   #4  0x00007f26e6d3f9a5 n/a (libglib-2.0.so.0 + 0x8b9a5)
                                                   #5  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #6  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5553:
                                                   #0  0x00007f26e6b0359f __poll (libc.so.6 + 0x10359f)
                                                   #1  0x00007f26e6d6c206 n/a (libglib-2.0.so.0 + 0xb8206)
                                                   #2  0x00007f26e6d0c112 g_main_context_iteration (libglib-2.0.so.0 + 0x58112)
                                                   #3  0x00007f26e6d0c162 n/a (libglib-2.0.so.0 + 0x58162)
                                                   #4  0x00007f26e6d3f9a5 n/a (libglib-2.0.so.0 + 0x8b9a5)
                                                   #5  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #6  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5556:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a94980 n/a (libc.so.6 + 0x94980)
                                                   #2  0x00007f26e93bc8a3 n/a (libobs.so.0 + 0xbe8a3)
                                                   #3  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #4  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5564:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a94980 n/a (libc.so.6 + 0x94980)
                                                   #2  0x00007f26e93aa268 n/a (libobs.so.0 + 0xac268)
                                                   #3  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #4  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5570:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a94980 n/a (libc.so.6 + 0x94980)
                                                   #2  0x00007f26c41df546 n/a (libobs-scripting.so.1 + 0x6546)
                                                   #3  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #4  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5604:
                                                   #0  0x00007f26e6b0359f __poll (libc.so.6 + 0x10359f)
                                                   #1  0x00007f26e44cf8c7 n/a (libpulse.so.0 + 0x338c7)
                                                   #2  0x00007f26e44b946c pa_mainloop_poll (libpulse.so.0 + 0x1d46c)
                                                   #3  0x00007f26e44c342c pa_mainloop_iterate (libpulse.so.0 + 0x2742c)
                                                   #4  0x00007f26e44c34e1 pa_mainloop_run (libpulse.so.0 + 0x274e1)
                                                   #5  0x00007f26e44d3c02 n/a (libpulse.so.0 + 0x37c02)
                                                   #6  0x00007f26d873bc67 n/a (libpulsecommon-16.1.so + 0x5bc67)
                                                   #7  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #8  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5565:
                                                   #0  0x00007f26e6ad5835 clock_nanosleep (libc.so.6 + 0xd5835)
                                                   #1  0x00007f26e6ae7ef7 __nanosleep (libc.so.6 + 0xe7ef7)
                                                   #2  0x00007f26e93b5195 os_sleepto_ns (libobs.so.0 + 0xb7195)
                                                   #3  0x00007f26e9381aa3 obs_graphics_thread_loop (libobs.so.0 + 0x83aa3)
                                                   #4  0x00007f26e93830f9 obs_graphics_thread (libobs.so.0 + 0x850f9)
                                                   #5  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #6  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5559:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f26bcec791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f26bcf1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5563:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f26bcec791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f26bcf1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5551:
                                                   #0  0x00007f26e6b0359f __poll (libc.so.6 + 0x10359f)
                                                   #1  0x00007f26d61e0a58 n/a (libQt6WaylandClient.so.6 + 0x68a58)
                                                   #2  0x00007f26e7473352 n/a (libQt6Core.so.6 + 0x273352)
                                                   #3  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #4  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5558:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f26bcec791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f26bcf1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5557:
                                                   #0  0x00007f26e6ad5835 clock_nanosleep (libc.so.6 + 0xd5835)
                                                   #1  0x00007f26e6ae7ef7 __nanosleep (libc.so.6 + 0xe7ef7)
                                                   #2  0x00007f26e6b10979 usleep (libc.so.6 + 0x110979)
                                                   #3  0x00007f26e93b5209 os_sleepto_ns_fast (libobs.so.0 + 0xb7209)
                                                   #4  0x00007f26e93a641a n/a (libobs.so.0 + 0xa841a)
                                                   #5  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #6  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5561:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f26bcec791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f26bcf1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5560:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f26bcec791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f26bcf1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)

                                                   Stack trace of thread 5562:
                                                   #0  0x00007f26e6a894ae n/a (libc.so.6 + 0x894ae)
                                                   #1  0x00007f26e6a8bd40 pthread_cond_wait (libc.so.6 + 0x8bd40)
                                                   #2  0x00007f26bcec791c n/a (radeonsi_dri.so + 0xc791c)
                                                   #3  0x00007f26bcf1482c n/a (radeonsi_dri.so + 0x11482c)
                                                   #4  0x00007f26e6a8c9eb n/a (libc.so.6 + 0x8c9eb)
                                                   #5  0x00007f26e6b10dfc n/a (libc.so.6 + 0x110dfc)
                                                   ELF object binary architecture: AMD x86-64`
NotRealSean commented 1 year ago

I solved this issue by edit desktop entry at /usr/share/wayland-sessions/hyprland.desktop and change exec=Hyprland to exec=dbus-run-session Hyprland and everything is now work fine