hyprwm / xdg-desktop-portal-hyprland

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

Error 'Failed to create FBO' after upgrading to 1.0 #89

Closed obivan closed 1 year ago

obivan commented 1 year ago

After upgrading to v1.0.0, screensharing on nvidia is not working. I get the following errors when trying to start it:

xdg-desktop-portal-hyprland[2450]: [LOG] Initializing xdph...
xdg-desktop-portal-hyprland[2450]: [LOG] XDG_CURRENT_DESKTOP set to Hyprland
xdg-desktop-portal-hyprland[2450]: [LOG] Gathering exported interfaces
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wl_shm (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wl_drm (ver 2)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_linux_dmabuf_v1 (ver 4)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wl_compositor (ver 6)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wl_subcompositor (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wl_data_device_manager (ver 3)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_export_dmabuf_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_data_control_manager_v1 (ver 2)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_primary_selection_device_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wp_viewporter (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_gamma_control_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_output_power_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: xdg_wm_base (ver 5)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wl_seat (ver 8)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wp_presentation (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: org_kde_kwin_idle (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: ext_idle_notifier_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_layer_shell_v1 (ver 4)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: org_kde_kwin_server_decoration_manager (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zxdg_decoration_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_output_manager_v1 (ver 4)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_input_inhibit_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_keyboard_shortcuts_inhibit_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_pointer_constraints_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_relative_pointer_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_virtual_keyboard_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_virtual_pointer_manager_v1 (ver 2)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_foreign_toplevel_manager_v1 (ver 3)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wp_drm_lease_device_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_tablet_manager_v2 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_idle_inhibit_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zxdg_exporter_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zxdg_importer_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zxdg_exporter_v2 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zxdg_importer_v2 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_pointer_gestures_v1 (ver 3)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_text_input_manager_v3 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_input_method_manager_v2 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: xdg_activation_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: ext_session_lock_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wp_cursor_shape_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wp_single_pixel_buffer_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: xwayland_shell_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: hyprland_toplevel_export_manager_v1 (ver 2)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wp_fractional_scale_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwp_text_input_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: hyprland_global_shortcuts_manager_v1 (ver 1)
xdg-desktop-portal-hyprland[2450]: [LOG] [globalshortcuts] registered
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zwlr_screencopy_manager_v1 (ver 3)
xdg-desktop-portal-hyprland[2450]: [LOG] [pipewire] connected
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] init successful
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: zxdg_output_manager_v1 (ver 3)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wl_output (ver 4)
xdg-desktop-portal-hyprland[2450]: [LOG]  | Got interface: wl_output (ver 4)
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] Registered for toplevel export
xdg-desktop-portal-hyprland[2450]: [LOG] [core] dmabufFeedbackMainDevice
xdg-desktop-portal-hyprland[2450]: [LOG] Found output name DP-1
xdg-desktop-portal-hyprland[2450]: [LOG] Found output name DP-2
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] New session:
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_23/webrtc_26006962
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_23/webrtc_session1924177229
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy]  | appid:
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] SelectSources:
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_23/webrtc275490042
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/session/1_23/webrtc_session1924177229
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy]  | appid:
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] option persist_mode to 1
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] unused option multiple
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] unused option types
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] restore data invalid / missing, prompting
xdg-desktop-portal-hyprland[2450]: [LOG] [sc] Selection: /screen:DP-2
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] SHAREDATA returned selection 0
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy] Start:
xdg-desktop-portal-hyprland[2450]: [LOG] [screencopy]  | /org/freedesktop/portal/desktop/request/1_23/webrtc1338564059
wireplumber[2454]: <WpPortalPermissionStorePlugin:0x63b030> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
/nix/store/kzig6vk9d55y8p0lpf4jsqs85jgxnm53-gdm-44.1/libexec/gdm-wayland-session[2276]: 00:01:14.543 [ERROR] [GLES2] GL_INVALID_OPERATION error generated. EGLImage not supported
/nix/store/kzig6vk9d55y8p0lpf4jsqs85jgxnm53-gdm-44.1/libexec/gdm-wayland-session[2276]: 00:01:14.543 [ERROR] [render/gles2/renderer.c:150] Failed to create FBO

Version before 1.0.0 works like a breeze.

obivan commented 1 year ago

On the latest versions of Hyprland and xdg-desktop-portal-hyprland everything works again, so I guess the issue can be closed now

obivan commented 1 year ago

Actually only seems to work with bitdepth,10, from there - https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/99#issuecomment-1731488490