hyprwm / xdg-desktop-portal-hyprland

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

SIGABRT when starting screen capture #142

Open brodeuralexis opened 9 months ago

brodeuralexis commented 9 months ago

Currently trying to setup Arch Linux (archinstall with minimal preset) with Hyprland+GDM on an: Intel i9-10850k 64GB DDR4 NVIDIA GTX 3070 Ti (driver version 545.29.06)

Attempting to start a screen capture results in the following journal logs:

Dec 03 02:26:21 chatonhub systemd[1072]: Starting Portal service (Hyprland implementation)...
Dec 03 02:26:21 chatonhub systemd[1072]: Started Portal service (Hyprland implementation).
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] Initializing xdph...
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] XDG_CURRENT_DESKTOP set to Hyprland
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] Gathering exported interfaces
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wl_shm (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wl_drm (ver 2)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_linux_dmabuf_v1 (ver 4)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wl_compositor (ver 6)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wl_subcompositor (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wl_data_device_manager (ver 3)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_export_dmabuf_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_data_control_manager_v1 (ver 2)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_primary_selection_device_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wp_viewporter (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_gamma_control_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_output_power_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: xdg_wm_base (ver 5)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wl_seat (ver 8)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wp_presentation (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: ext_idle_notifier_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_layer_shell_v1 (ver 4)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: org_kde_kwin_server_decoration_manager (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zxdg_decoration_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_output_manager_v1 (ver 4)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_input_inhibit_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_keyboard_shortcuts_inhibit_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_pointer_constraints_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_relative_pointer_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_virtual_keyboard_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_virtual_pointer_manager_v1 (ver 2)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_foreign_toplevel_manager_v1 (ver 3)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wp_drm_lease_device_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_tablet_manager_v2 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_idle_inhibit_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zxdg_exporter_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zxdg_importer_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zxdg_exporter_v2 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zxdg_importer_v2 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_pointer_gestures_v1 (ver 3)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_text_input_manager_v3 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_input_method_manager_v2 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: xdg_activation_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: ext_session_lock_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wp_cursor_shape_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wp_tearing_control_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wp_single_pixel_buffer_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: xwayland_shell_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: hyprland_toplevel_export_manager_v1 (ver 2)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wp_fractional_scale_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwp_text_input_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: hyprland_global_shortcuts_manager_v1 (ver 1)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [globalshortcuts] registered
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zwlr_screencopy_manager_v1 (ver 3)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [pipewire] connected
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] init successful
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: zxdg_output_manager_v1 (ver 3)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG]  | Got interface: wl_output (ver 4)
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] Registered for toplevel export
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screenshot] init successful
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [INFO] hyprpicker not found. We suggest to use hyprpicker for color picking to be less meh.
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [core] dmabufFeedbackMainDevice
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] Found output name DP-2
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] New session:
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_32/obs1
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_32/obs1
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy]  | appid:
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] SelectSources:
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_32/obs2
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_32/obs1
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy]  | appid:
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] option cursor_mode to 2
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] option persist_mode to 2
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] unused option multiple
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] unused option types
Dec 03 02:26:52 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] [screencopy] restore data invalid / missing, prompting
Dec 03 02:26:54 chatonhub systemd-coredump[2011]: [🡕] Process 1282 (xdg-desktop-por) of user 1000 dumped core.

                                                  Stack trace of thread 1282:
                                                  #0  0x00007f743cdbf83c n/a (libc.so.6 + 0x8e83c)
                                                  #1  0x00007f743cd6f668 raise (libc.so.6 + 0x3e668)
                                                  #2  0x00007f743cd574b8 abort (libc.so.6 + 0x264b8)
                                                  #3  0x000055adbc97d508 _Z16drmFourccFromSHM13wl_shm_format (xdg-desktop-portal-hyprland + 0x64508)
                                                  #4  0x000055adbc968c3f _ZL11wlrOnBufferPvP24zwlr_screencopy_frame_v1jjjj (xdg-desktop-portal-hyprland + 0x4fc3f)
                                                  #5  0x00007f743d2834f6 n/a (libffi.so.8 + 0x74f6)
                                                  #6  0x00007f743d27ff5e n/a (libffi.so.8 + 0x3f5e)
                                                  #7  0x00007f743d282b73 ffi_call (libffi.so.8 + 0x6b73)
                                                  #8  0x00007f743d30a645 n/a (libwayland-client.so.0 + 0x7645)
                                                  #9  0x00007f743d30ae73 n/a (libwayland-client.so.0 + 0x7e73)
                                                  #10 0x00007f743d30b13c wl_display_dispatch_queue_pending (libwayland-client.so.0 + 0x813c)
                                                  #11 0x000055adbc9667ac _ZN17CScreencopyPortal12startSharingEPNS_8SSessionE (xdg-desktop-portal-hyprland + 0x4d7ac)
                                                  #12 0x000055adbc966ccd _ZN17CScreencopyPortal7onStartERN5sdbus10MethodCallE (xdg-desktop-portal-hyprland + 0x4dccd)
                                                  #13 0x000055adbc96814e _ZNSt17_Function_handlerIFvN5sdbus10MethodCallEEZN17CScreencopyPortalC4EP26zwlr_screencopy_manager_v1EUlS1_E
1_E9_M_invokeERKSt9_Any_dataOS1_ (xdg-desktop-portal-hyprland + 0x4f14e)
                                                  #14 0x00007f743d33ca20 _ZN5sdbus8internal6Object21sdbus_method_callbackEP14sd_bus_messagePvP12sd_bus_error (libsdbus-c++.so.1 + 0x2
7a20)
                                                  #15 0x00007f743cc7346d n/a (libsystemd.so.0 + 0x3646d)
                                                  #16 0x00007f743cc8ce2c n/a (libsystemd.so.0 + 0x4fe2c)
                                                  #17 0x00007f743d331588 _ZN5sdbus8internal10Connection21processPendingRequestEv (libsdbus-c++.so.1 + 0x1c588)
                                                  #18 0x000055adbc981135 _ZN14CPortalManager14startEventLoopEv (xdg-desktop-portal-hyprland + 0x68135)
                                                  #19 0x000055adbc928306 main (xdg-desktop-portal-hyprland + 0xf306)
                                                  #20 0x00007f743cd58cd0 n/a (libc.so.6 + 0x27cd0)
                                                  #21 0x00007f743cd58d8a __libc_start_main (libc.so.6 + 0x27d8a)
                                                  #22 0x000055adbc929085 _start (xdg-desktop-portal-hyprland + 0x10085)

                                                  Stack trace of thread 1284:
                                                  #0  0x00007f743cdba700 n/a (libc.so.6 + 0x89700)
                                                  #1  0x00007f743cdc0ec2 pthread_mutex_lock (libc.so.6 + 0x8fec2)
                                                  #2  0x000055adbc9831db _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN14CPortalManager14startEventLoopEvEUlvE_EEEEE6_M_runEv (x
dg-desktop-portal-hyprland + 0x6a1db)
                                                  #3  0x00007f743d0e1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                  #4  0x00007f743cdbd9eb n/a (libc.so.6 + 0x8c9eb)
                                                  #5  0x00007f743ce417cc n/a (libc.so.6 + 0x1107cc)

                                                  Stack trace of thread 1283:
                                                  #0  0x00007f743ce41bf6 epoll_wait (libc.so.6 + 0x110bf6)
                                                  #1  0x00007f743c94c869 n/a (libspa-support.so + 0x16869)
                                                  #2  0x00007f743c93e58d n/a (libspa-support.so + 0x858d)
                                                  #3  0x00007f743d39bdb2 n/a (libpipewire-0.3.so.0 + 0x45db2)
                                                  #4  0x00007f743cdbd9eb n/a (libc.so.6 + 0x8c9eb)
                                                  #5  0x00007f743ce417cc n/a (libc.so.6 + 0x1107cc)

                                                  Stack trace of thread 1285:
                                                  #0  0x00007f743cdba4ae n/a (libc.so.6 + 0x894ae)
                                                  #1  0x00007f743cdbd325 pthread_cond_clockwait (libc.so.6 + 0x8c325)
                                                  #2  0x000055adbc9833b1 _ZNSt6thread11_State_implINS_8_InvokerISt5tupleIJZN14CPortalManager14startEventLoopEvEUlvE0_EEEEE6_M_runEv (
xdg-desktop-portal-hyprland + 0x6a3b1)
                                                  #3  0x00007f743d0e1943 execute_native_thread_routine (libstdc++.so.6 + 0xe1943)
                                                  #4  0x00007f743cdbd9eb n/a (libc.so.6 + 0x8c9eb)
                                                  #5  0x00007f743ce417cc n/a (libc.so.6 + 0x1107cc)
                                                  ELF object binary architecture: AMD x86-64
Dec 03 02:26:54 chatonhub xdg-desktop-portal-hyprland[1282]: [LOG] execAndGet: WAYLAND_DISPLAY=wayland-1 QT_QPA_PLATFORM="wayland" XCURSOR_SIZE=24 HYPRLAND_INSTANCE_SIGNATURE=9afdd61adeaf41
3afbe853dbc5fdf6853c8bde21_1701588381 XDPH_WINDOW_SHARING_LIS
Dec 03 02:26:54 chatonhub systemd[1072]: xdg-desktop-portal-hyprland.service: Main process exited, code=dumped, status=6/ABRT
Dec 03 02:26:54 chatonhub systemd[1072]: xdg-desktop-portal-hyprland.service: Failed with result 'core-dump'.
brodeuralexis commented 9 months ago

Doing some further, the error stems from the format WL_SHM_FORMAT_BGR888 not being supported in drmFourccFromSHM.

EDIT: Looking if there are ways to change the format my monitor is using, but don't really know what to look for.

bjornsnoen commented 8 months ago

Screen capture seems to work again now? I was using gnome for screen capturing, and I had to install gst-plugin-pipewire in order to make that work. I don't know if that was a hidden dependency here too or if it's unrelated, I just know that when I came back to hyprland I can now share my screen again.