Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Error: Frame capture failed

Open ClovertaTheTrilobita opened this issue 6 months ago • 8 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Is your issue described in the documentation?

  • [x] I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

Hi, after reading this issue #2955 I'm trying out the latest sunshine pre-release v2025.621.211911 on my Arch Linux with a Hyprland WM, but sunshine became unable to do frame capture on my machine.

here's my sunshine debug info on start up:

[2025-06-22 16:45:07.130589] [0x00007f8d751d3000] [info]    config: 'capture' = wlr
[2025-06-22 16:45:07.130611] [0x00007f8d751d3000] [info]    config: 'min_log_level' = debug
[2025-06-22 16:45:07.130]: Info: Sunshine version: v2025.621.211911
[2025-06-22 16:45:07.130]: Info: Package Publisher: LizardByte
[2025-06-22 16:45:07.130]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-06-22 16:45:07.130]: Info: Get support: https://app.lizardbyte.dev/support
[2025-06-22 16:45:07.130]: Info: config: 'min_log_level' = debug
[2025-06-22 16:45:07.130]: Info: config: 'capture' = wlr
[2025-06-22 16:45:07.131]: Info: Found display [wayland-1]
[2025-06-22 16:45:07.131]: Debug: Available interface: wl_seat(1) version 9
[2025-06-22 16:45:07.131]: Debug: Available interface: wl_data_device_manager(2) version 3
[2025-06-22 16:45:07.131]: Debug: Available interface: wl_compositor(3) version 6
[2025-06-22 16:45:07.131]: Debug: Available interface: wl_subcompositor(4) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wl_shm(5) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_viewporter(6) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_tearing_control_manager_v1(7) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_fractional_scale_manager_v1(8) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:45:07.131]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_cursor_shape_manager_v1(10) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_idle_inhibit_manager_v1(11) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_relative_pointer_manager_v1(12) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zxdg_decoration_manager_v1(13) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_alpha_modifier_v1(14) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwlr_gamma_control_manager_v1(15) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: ext_foreign_toplevel_list_v1(16) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_pointer_gestures_v1(17) version 3
[2025-06-22 16:45:07.131]: Debug: Available interface: zwlr_foreign_toplevel_manager_v1(18) version 3
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_keyboard_shortcuts_inhibit_manager_v1(19) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_text_input_manager_v1(20) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_text_input_manager_v3(21) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_pointer_constraints_v1(22) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwlr_output_power_manager_v1(23) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: xdg_activation_v1(24) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: ext_idle_notifier_v1(25) version 2
[2025-06-22 16:45:07.131]: Debug: Available interface: hyprland_lock_notifier_v1(26) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: ext_session_lock_manager_v1(27) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_input_method_manager_v2(28) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_virtual_keyboard_manager_v1(29) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwlr_virtual_pointer_manager_v1(30) version 2
[2025-06-22 16:45:07.131]: Debug: Available interface: zwlr_output_manager_v1(31) version 4
[2025-06-22 16:45:07.131]: Debug: Available interface: org_kde_kwin_server_decoration_manager(32) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: hyprland_focus_grab_manager_v1(33) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_tablet_manager_v2(34) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwlr_layer_shell_v1(35) version 5
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_presentation(36) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: xdg_wm_base(37) version 6
[2025-06-22 16:45:07.131]: Debug: Available interface: zwlr_data_control_manager_v1(38) version 2
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_primary_selection_device_manager_v1(39) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: xwayland_shell_v1(40) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:45:07.131]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:45:07.131]: Debug: Available interface: hyprland_toplevel_export_manager_v1(42) version 2
[2025-06-22 16:45:07.131]: Debug: Available interface: hyprland_global_shortcuts_manager_v1(43) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: xdg_wm_dialog_v1(44) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_single_pixel_buffer_manager_v1(45) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_security_context_manager_v1(46) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: hyprland_ctm_control_manager_v1(47) version 2
[2025-06-22 16:45:07.131]: Debug: Available interface: hyprland_surface_manager_v1(48) version 2
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_content_type_manager_v1(49) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_color_manager_v1(50) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_drm_lease_device_v1(51) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wp_linux_drm_syncobj_manager_v1(52) version 1
[2025-06-22 16:45:07.131]: Debug: Available interface: wl_drm(53) version 2
[2025-06-22 16:45:07.131]: Debug: Available interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:45:07.131]: Info: Found interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:45:07.131]: Debug: Available interface: wl_output(55) version 4
[2025-06-22 16:45:07.131]: Info: Found interface: wl_output(55) version 4
[2025-06-22 16:45:07.131]: Debug: Available interface: wl_output(56) version 4
[2025-06-22 16:45:07.132]: Info: Found interface: wl_output(56) version 4
[2025-06-22 16:45:07.132]: Info: Resolution: 2560x1440
[2025-06-22 16:45:07.132]: Info: Resolution: 2560x1440
[2025-06-22 16:45:07.132]: Info: Name: DP-1
[2025-06-22 16:45:07.132]: Info: Found monitor: JXC monitor 0000000000000 (DP-1)
[2025-06-22 16:45:07.132]: Info: Offset: 2048x0
[2025-06-22 16:45:07.132]: Info: Logical size: 2560x1440
[2025-06-22 16:45:07.132]: Info: Name: eDP-1
[2025-06-22 16:45:07.132]: Info: Found monitor: Sharp Corporation LQ156T1JW05  (eDP-1)
[2025-06-22 16:45:07.132]: Info: Offset: 0x0
[2025-06-22 16:45:07.132]: Info: Logical size: 2048x1152
[2025-06-22 16:45:07.132]: Info: -------- Start of Wayland monitor list --------
[2025-06-22 16:45:07.132]: Info: Monitor 0 is DP-1: JXC monitor 0000000000000 (DP-1)
[2025-06-22 16:45:07.132]: Info: Monitor 1 is eDP-1: Sharp Corporation LQ156T1JW05  (eDP-1)
[2025-06-22 16:45:07.132]: Info: --------- End of Wayland monitor list ---------
[2025-06-22 16:45:07.156]: Warning: Gamepad ds5 is disabled due to Permission denied
[2025-06-22 16:45:07.156]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-06-22 16:45:07.156]: Info: Trying encoder [nvenc]
[2025-06-22 16:45:07.156]: Info: Screencasting with Wayland's protocol
[2025-06-22 16:45:07.156]: Info: Found display [wayland-1]
[2025-06-22 16:45:07.156]: Debug: Available interface: wl_seat(1) version 9
[2025-06-22 16:45:07.156]: Debug: Available interface: wl_data_device_manager(2) version 3
[2025-06-22 16:45:07.156]: Debug: Available interface: wl_compositor(3) version 6
[2025-06-22 16:45:07.157]: Debug: Available interface: wl_subcompositor(4) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wl_shm(5) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_viewporter(6) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_tearing_control_manager_v1(7) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_fractional_scale_manager_v1(8) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:45:07.157]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_cursor_shape_manager_v1(10) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_idle_inhibit_manager_v1(11) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_relative_pointer_manager_v1(12) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zxdg_decoration_manager_v1(13) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_alpha_modifier_v1(14) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwlr_gamma_control_manager_v1(15) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: ext_foreign_toplevel_list_v1(16) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_pointer_gestures_v1(17) version 3
[2025-06-22 16:45:07.157]: Debug: Available interface: zwlr_foreign_toplevel_manager_v1(18) version 3
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_keyboard_shortcuts_inhibit_manager_v1(19) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_text_input_manager_v1(20) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_text_input_manager_v3(21) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_pointer_constraints_v1(22) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwlr_output_power_manager_v1(23) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: xdg_activation_v1(24) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: ext_idle_notifier_v1(25) version 2
[2025-06-22 16:45:07.157]: Debug: Available interface: hyprland_lock_notifier_v1(26) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: ext_session_lock_manager_v1(27) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_input_method_manager_v2(28) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_virtual_keyboard_manager_v1(29) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwlr_virtual_pointer_manager_v1(30) version 2
[2025-06-22 16:45:07.157]: Debug: Available interface: zwlr_output_manager_v1(31) version 4
[2025-06-22 16:45:07.157]: Debug: Available interface: org_kde_kwin_server_decoration_manager(32) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: hyprland_focus_grab_manager_v1(33) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_tablet_manager_v2(34) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwlr_layer_shell_v1(35) version 5
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_presentation(36) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: xdg_wm_base(37) version 6
[2025-06-22 16:45:07.157]: Debug: Available interface: zwlr_data_control_manager_v1(38) version 2
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_primary_selection_device_manager_v1(39) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: xwayland_shell_v1(40) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:45:07.157]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:45:07.157]: Debug: Available interface: hyprland_toplevel_export_manager_v1(42) version 2
[2025-06-22 16:45:07.157]: Debug: Available interface: hyprland_global_shortcuts_manager_v1(43) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: xdg_wm_dialog_v1(44) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_single_pixel_buffer_manager_v1(45) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_security_context_manager_v1(46) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: hyprland_ctm_control_manager_v1(47) version 2
[2025-06-22 16:45:07.157]: Debug: Available interface: hyprland_surface_manager_v1(48) version 2
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_content_type_manager_v1(49) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_color_manager_v1(50) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_drm_lease_device_v1(51) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wp_linux_drm_syncobj_manager_v1(52) version 1
[2025-06-22 16:45:07.157]: Debug: Available interface: wl_drm(53) version 2
[2025-06-22 16:45:07.157]: Debug: Available interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:45:07.157]: Info: Found interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:45:07.157]: Debug: Available interface: wl_output(55) version 4
[2025-06-22 16:45:07.157]: Info: Found interface: wl_output(55) version 4
[2025-06-22 16:45:07.157]: Debug: Available interface: wl_output(56) version 4
[2025-06-22 16:45:07.157]: Info: Found interface: wl_output(56) version 4
[2025-06-22 16:45:07.157]: Info: Resolution: 2560x1440
[2025-06-22 16:45:07.157]: Info: Name: DP-1
[2025-06-22 16:45:07.157]: Info: Found monitor: JXC monitor 0000000000000 (DP-1)
[2025-06-22 16:45:07.157]: Info: Offset: 2048x0
[2025-06-22 16:45:07.157]: Info: Logical size: 2560x1440
[2025-06-22 16:45:07.157]: Info: Selected monitor [JXC monitor 0000000000000 (DP-1)] for streaming
[2025-06-22 16:45:07.157]: Debug: Offset: 2048x0
[2025-06-22 16:45:07.157]: Debug: Resolution: 2560x1440
[2025-06-22 16:45:07.157]: Debug: Desktop Resolution: 4608x1440
[2025-06-22 16:45:07.157]: Info: Creating encoder [h264_nvenc]
[2025-06-22 16:45:07.157]: Info: Color coding: SDR (Rec. 601)
[2025-06-22 16:45:07.157]: Info: Color depth: 8-bit
[2025-06-22 16:45:07.157]: Info: Color range: JPEG

(sunshine:25393): libayatana-appindicator-WARNING **: 16:45:07.172: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.
[2025-06-22 16:45:07.173]: Info: System tray created
[2025-06-22 16:45:07.173]: Debug: System tray loop
[2025-06-22 16:45:07.173]: Debug: System tray loop
[2025-06-22 16:45:07.174]: Debug: System tray loop
[2025-06-22 16:45:07.174]: Debug: System tray loop
[2025-06-22 16:45:07.174]: Debug: System tray loop
[2025-06-22 16:45:07.174]: Debug: System tray loop
[2025-06-22 16:45:07.174]: Debug: System tray loop
[2025-06-22 16:45:07.174]: Debug: System tray loop
[2025-06-22 16:45:07.174]: Debug: System tray loop
[2025-06-22 16:45:07.175]: Debug: System tray loop
[2025-06-22 16:45:07.175]: Debug: System tray loop
[2025-06-22 16:45:07.175]: Debug: System tray loop
[2025-06-22 16:45:07.175]: Debug: System tray loop
[2025-06-22 16:45:07.175]: Debug: System tray loop
[2025-06-22 16:45:07.176]: Debug: System tray loop
[2025-06-22 16:45:07.176]: Debug: System tray loop
[2025-06-22 16:45:07.177]: Debug: System tray loop
[2025-06-22 16:45:07.177]: Debug: System tray loop
[2025-06-22 16:45:07.177]: Debug: System tray loop
[2025-06-22 16:45:07.177]: Debug: System tray loop
[2025-06-22 16:45:07.177]: Debug: System tray loop
[2025-06-22 16:45:07.177]: Debug: System tray loop
[2025-06-22 16:45:07.265]: Debug: Found CUDA device with PCI bus ID: 0000:01:00.0
[2025-06-22 16:45:07.265]: Debug: Found DRM primary node: card0
[2025-06-22 16:45:07.280]: Debug: EGL: [NVIDIA]: version [1.5]
[2025-06-22 16:45:07.280]: Debug: API's supported: [OpenGL_ES OpenGL]
[2025-06-22 16:45:07.341]: Debug: GL: vendor: NVIDIA Corporation
[2025-06-22 16:45:07.341]: Debug: GL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
[2025-06-22 16:45:07.341]: Debug: GL: version: 4.6.0 NVIDIA 575.64
[2025-06-22 16:45:07.341]: Debug: GL: shader: 4.60 NVIDIA
[2025-06-22 16:45:07.430]: Info: Streaming bitrate is 1000000
[2025-06-22 16:45:07.430]: Debug: [h264_nvenc @ 0x556ba24fc180] Loaded Nvenc version 13.0
[2025-06-22 16:45:07.430]: Debug: [h264_nvenc @ 0x556ba24fc180] Nvenc initialized successfully
[2025-06-22 16:45:07.474]: Debug: Frame 1: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2025-06-22 16:45:07.691]: Debug: [h264_nvenc @ 0x556ba24fc180] Nvenc unloaded
[2025-06-22 16:45:07.693]: Info: Creating encoder [hevc_nvenc]
[2025-06-22 16:45:07.693]: Info: Color coding: SDR (Rec. 601)
[2025-06-22 16:45:07.693]: Info: Color depth: 8-bit
[2025-06-22 16:45:07.693]: Info: Color range: JPEG
[2025-06-22 16:45:07.693]: Debug: Found CUDA device with PCI bus ID: 0000:01:00.0
[2025-06-22 16:45:07.693]: Debug: Found DRM primary node: card0
[2025-06-22 16:45:07.694]: Debug: EGL: [NVIDIA]: version [1.5]
[2025-06-22 16:45:07.694]: Debug: API's supported: [OpenGL_ES OpenGL]
[2025-06-22 16:45:07.695]: Debug: GL: vendor: NVIDIA Corporation
[2025-06-22 16:45:07.695]: Debug: GL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
[2025-06-22 16:45:07.695]: Debug: GL: version: 4.6.0 NVIDIA 575.64
[2025-06-22 16:45:07.695]: Debug: GL: shader: 4.60 NVIDIA
[2025-06-22 16:45:07.695]: Info: Streaming bitrate is 1000000
[2025-06-22 16:45:07.696]: Debug: [hevc_nvenc @ 0x556ba24fc180] Loaded Nvenc version 13.0
[2025-06-22 16:45:07.696]: Debug: [hevc_nvenc @ 0x556ba24fc180] Nvenc initialized successfully
[2025-06-22 16:45:07.718]: Debug: Frame 1: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2025-06-22 16:45:07.956]: Debug: [hevc_nvenc @ 0x556ba24fc180] Nvenc unloaded
[2025-06-22 16:45:07.958]: Info: Creating encoder [av1_nvenc]
[2025-06-22 16:45:07.958]: Info: Color coding: SDR (Rec. 601)
[2025-06-22 16:45:07.958]: Info: Color depth: 8-bit
[2025-06-22 16:45:07.958]: Info: Color range: JPEG
[2025-06-22 16:45:07.958]: Debug: Found CUDA device with PCI bus ID: 0000:01:00.0
[2025-06-22 16:45:07.958]: Debug: Found DRM primary node: card0
[2025-06-22 16:45:07.959]: Debug: EGL: [NVIDIA]: version [1.5]
[2025-06-22 16:45:07.959]: Debug: API's supported: [OpenGL_ES OpenGL]
[2025-06-22 16:45:07.960]: Debug: GL: vendor: NVIDIA Corporation
[2025-06-22 16:45:07.960]: Debug: GL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
[2025-06-22 16:45:07.960]: Debug: GL: version: 4.6.0 NVIDIA 575.64
[2025-06-22 16:45:07.960]: Debug: GL: shader: 4.60 NVIDIA
[2025-06-22 16:45:07.960]: Info: Streaming bitrate is 1000000
[2025-06-22 16:45:07.960]: Debug: [av1_nvenc @ 0x556ba24fc180] Loaded Nvenc version 13.0
[2025-06-22 16:45:07.960]: Debug: [av1_nvenc @ 0x556ba24fc180] Nvenc initialized successfully
[2025-06-22 16:45:07.985]: Debug: Frame 1: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2025-06-22 16:45:08.221]: Debug: [av1_nvenc @ 0x556ba24fc180] Nvenc unloaded
[2025-06-22 16:45:08.223]: Info: Screencasting with Wayland's protocol
[2025-06-22 16:45:08.223]: Info: Found display [wayland-1]
[2025-06-22 16:45:08.223]: Debug: Available interface: wl_seat(1) version 9
[2025-06-22 16:45:08.223]: Debug: Available interface: wl_data_device_manager(2) version 3
[2025-06-22 16:45:08.223]: Debug: Available interface: wl_compositor(3) version 6
[2025-06-22 16:45:08.223]: Debug: Available interface: wl_subcompositor(4) version 1
[2025-06-22 16:45:08.223]: Debug: Available interface: wl_shm(5) version 1
[2025-06-22 16:45:08.223]: Debug: Available interface: wp_viewporter(6) version 1
[2025-06-22 16:45:08.223]: Debug: Available interface: wp_tearing_control_manager_v1(7) version 1
[2025-06-22 16:45:08.223]: Debug: Available interface: wp_fractional_scale_manager_v1(8) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:45:08.224]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_cursor_shape_manager_v1(10) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_idle_inhibit_manager_v1(11) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_relative_pointer_manager_v1(12) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zxdg_decoration_manager_v1(13) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_alpha_modifier_v1(14) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwlr_gamma_control_manager_v1(15) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: ext_foreign_toplevel_list_v1(16) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_pointer_gestures_v1(17) version 3
[2025-06-22 16:45:08.224]: Debug: Available interface: zwlr_foreign_toplevel_manager_v1(18) version 3
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_keyboard_shortcuts_inhibit_manager_v1(19) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_text_input_manager_v1(20) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_text_input_manager_v3(21) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_pointer_constraints_v1(22) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwlr_output_power_manager_v1(23) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: xdg_activation_v1(24) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: ext_idle_notifier_v1(25) version 2
[2025-06-22 16:45:08.224]: Debug: Available interface: hyprland_lock_notifier_v1(26) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: ext_session_lock_manager_v1(27) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_input_method_manager_v2(28) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_virtual_keyboard_manager_v1(29) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwlr_virtual_pointer_manager_v1(30) version 2
[2025-06-22 16:45:08.224]: Debug: Available interface: zwlr_output_manager_v1(31) version 4
[2025-06-22 16:45:08.224]: Debug: Available interface: org_kde_kwin_server_decoration_manager(32) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: hyprland_focus_grab_manager_v1(33) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_tablet_manager_v2(34) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwlr_layer_shell_v1(35) version 5
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_presentation(36) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: xdg_wm_base(37) version 6
[2025-06-22 16:45:08.224]: Debug: Available interface: zwlr_data_control_manager_v1(38) version 2
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_primary_selection_device_manager_v1(39) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: xwayland_shell_v1(40) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:45:08.224]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:45:08.224]: Debug: Available interface: hyprland_toplevel_export_manager_v1(42) version 2
[2025-06-22 16:45:08.224]: Debug: Available interface: hyprland_global_shortcuts_manager_v1(43) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: xdg_wm_dialog_v1(44) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_single_pixel_buffer_manager_v1(45) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_security_context_manager_v1(46) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: hyprland_ctm_control_manager_v1(47) version 2
[2025-06-22 16:45:08.224]: Debug: Available interface: hyprland_surface_manager_v1(48) version 2
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_content_type_manager_v1(49) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_color_manager_v1(50) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_drm_lease_device_v1(51) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: wp_linux_drm_syncobj_manager_v1(52) version 1
[2025-06-22 16:45:08.224]: Debug: Available interface: wl_drm(53) version 2
[2025-06-22 16:45:08.224]: Debug: Available interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:45:08.224]: Info: Found interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:45:08.224]: Debug: Available interface: wl_output(55) version 4
[2025-06-22 16:45:08.224]: Info: Found interface: wl_output(55) version 4
[2025-06-22 16:45:08.224]: Debug: Available interface: wl_output(56) version 4
[2025-06-22 16:45:08.224]: Info: Found interface: wl_output(56) version 4
[2025-06-22 16:45:08.224]: Info: Resolution: 2560x1440
[2025-06-22 16:45:08.224]: Info: Name: DP-1
[2025-06-22 16:45:08.224]: Info: Found monitor: JXC monitor 0000000000000 (DP-1)
[2025-06-22 16:45:08.224]: Info: Offset: 2048x0
[2025-06-22 16:45:08.224]: Info: Logical size: 2560x1440
[2025-06-22 16:45:08.224]: Info: Selected monitor [JXC monitor 0000000000000 (DP-1)] for streaming
[2025-06-22 16:45:08.224]: Debug: Offset: 2048x0
[2025-06-22 16:45:08.224]: Debug: Resolution: 2560x1440
[2025-06-22 16:45:08.224]: Debug: Desktop Resolution: 4608x1440
[2025-06-22 16:45:08.224]: Info: Creating encoder [hevc_nvenc]
[2025-06-22 16:45:08.224]: Info: Color coding: SDR (Rec. 709)
[2025-06-22 16:45:08.224]: Info: Color depth: 10-bit
[2025-06-22 16:45:08.224]: Info: Color range: JPEG
[2025-06-22 16:45:08.224]: Debug: Found CUDA device with PCI bus ID: 0000:01:00.0
[2025-06-22 16:45:08.224]: Debug: Found DRM primary node: card0
[2025-06-22 16:45:08.224]: Debug: EGL: [NVIDIA]: version [1.5]
[2025-06-22 16:45:08.224]: Debug: API's supported: [OpenGL_ES OpenGL]
[2025-06-22 16:45:08.225]: Debug: GL: vendor: NVIDIA Corporation
[2025-06-22 16:45:08.225]: Debug: GL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
[2025-06-22 16:45:08.225]: Debug: GL: version: 4.6.0 NVIDIA 575.64
[2025-06-22 16:45:08.225]: Debug: GL: shader: 4.60 NVIDIA
[2025-06-22 16:45:08.225]: Info: Streaming bitrate is 1000000
[2025-06-22 16:45:08.226]: Debug: [hevc_nvenc @ 0x556ba24fc180] Loaded Nvenc version 13.0
[2025-06-22 16:45:08.226]: Debug: [hevc_nvenc @ 0x556ba24fc180] Nvenc initialized successfully
[2025-06-22 16:45:08.251]: Debug: Frame 1: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2025-06-22 16:45:08.486]: Debug: [hevc_nvenc @ 0x556ba24fc180] Nvenc unloaded
[2025-06-22 16:45:08.489]: Info: Creating encoder [av1_nvenc]
[2025-06-22 16:45:08.489]: Info: Color coding: SDR (Rec. 709)
[2025-06-22 16:45:08.489]: Info: Color depth: 10-bit
[2025-06-22 16:45:08.489]: Info: Color range: JPEG
[2025-06-22 16:45:08.489]: Debug: Found CUDA device with PCI bus ID: 0000:01:00.0
[2025-06-22 16:45:08.489]: Debug: Found DRM primary node: card0
[2025-06-22 16:45:08.489]: Debug: EGL: [NVIDIA]: version [1.5]
[2025-06-22 16:45:08.489]: Debug: API's supported: [OpenGL_ES OpenGL]
[2025-06-22 16:45:08.491]: Debug: GL: vendor: NVIDIA Corporation
[2025-06-22 16:45:08.491]: Debug: GL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
[2025-06-22 16:45:08.491]: Debug: GL: version: 4.6.0 NVIDIA 575.64
[2025-06-22 16:45:08.491]: Debug: GL: shader: 4.60 NVIDIA
[2025-06-22 16:45:08.491]: Info: Streaming bitrate is 1000000
[2025-06-22 16:45:08.491]: Debug: [av1_nvenc @ 0x556ba24fc180] Loaded Nvenc version 13.0
[2025-06-22 16:45:08.491]: Debug: [av1_nvenc @ 0x556ba24fc180] Nvenc initialized successfully
[2025-06-22 16:45:08.517]: Debug: Frame 1: IDR Keyframe (AV_FRAME_FLAG_KEY)
[2025-06-22 16:45:08.752]: Debug: [av1_nvenc @ 0x556ba24fc180] Nvenc unloaded
[2025-06-22 16:45:08.754]: Info: 
[2025-06-22 16:45:08.754]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-06-22 16:45:08.755]: Info: 
[2025-06-22 16:45:08.755]: Debug: ------  h264 ------
[2025-06-22 16:45:08.755]: Debug: PASSED: supported
[2025-06-22 16:45:08.755]: Debug: REF_FRAMES_RESTRICT: supported
[2025-06-22 16:45:08.755]: Debug: DYNAMIC_RANGE: unsupported
[2025-06-22 16:45:08.755]: Debug: YUV444: unsupported
[2025-06-22 16:45:08.755]: Debug: VUI_PARAMETERS: supported
[2025-06-22 16:45:08.755]: Debug: -------------------
[2025-06-22 16:45:08.755]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2025-06-22 16:45:08.755]: Debug: ------  hevc ------
[2025-06-22 16:45:08.755]: Debug: PASSED: supported
[2025-06-22 16:45:08.755]: Debug: REF_FRAMES_RESTRICT: supported
[2025-06-22 16:45:08.755]: Debug: DYNAMIC_RANGE: supported
[2025-06-22 16:45:08.755]: Debug: YUV444: unsupported
[2025-06-22 16:45:08.755]: Debug: VUI_PARAMETERS: supported
[2025-06-22 16:45:08.755]: Debug: -------------------
[2025-06-22 16:45:08.755]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2025-06-22 16:45:08.755]: Debug: ------  av1 ------
[2025-06-22 16:45:08.755]: Debug: PASSED: supported
[2025-06-22 16:45:08.755]: Debug: REF_FRAMES_RESTRICT: supported
[2025-06-22 16:45:08.755]: Debug: DYNAMIC_RANGE: supported
[2025-06-22 16:45:08.755]: Debug: YUV444: unsupported
[2025-06-22 16:45:08.755]: Debug: VUI_PARAMETERS: unsupported
[2025-06-22 16:45:08.755]: Debug: -------------------
[2025-06-22 16:45:08.755]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2025-06-22 16:45:08.756]: Info: Adding avahi service Arch
[2025-06-22 16:45:08.757]: Info: Configuration UI available at [https://localhost:47990]
[2025-06-22 16:45:09.720]: Info: Avahi service Arch successfully established.

After trying to connect to sunshine via moonlight, I only get a black screen and error output of sunshine is:

[2025-06-22 16:58:38.714]: Error: Frame capture failed

Expected Behavior

The latest release 2025.122.141614-8 works fine.

Additional Context

No response

Host Operating System

Linux

Operating System Version

OS: Arch Linux x86_64; Kernel: 6.15.2-arch1-1

Architecture

amd64/x86_64

Sunshine commit or version

v2025.621.211911

Package

Linux - AUR (Third Party)

GPU Type

NVIDIA

GPU Model

NVIDIA GeForce RTX 4060 Max-Q / Mobile

GPU Driver/Mesa Version

NVIDIA-SMI 575.64

Capture Method

wlroots (Linux)

Config

min_log_level = debug
capture = wlr

# I've tried removing "wlr" capture method but got the same issue

Apps


Relevant log output

[2025-06-22 16:58:38.703]: Info: Creating encoder [hevc_nvenc]
[2025-06-22 16:58:38.703]: Info: Color coding: SDR (Rec. 709)
[2025-06-22 16:58:38.703]: Info: Color depth: 8-bit
[2025-06-22 16:58:38.703]: Info: Color range: MPEG
[2025-06-22 16:58:38.703]: Debug: Found CUDA device with PCI bus ID: 0000:01:00.0
[2025-06-22 16:58:38.703]: Debug: Found DRM primary node: card0
[2025-06-22 16:58:38.704]: Debug: EGL: [NVIDIA]: version [1.5]
[2025-06-22 16:58:38.704]: Debug: API's supported: [OpenGL_ES OpenGL]
[2025-06-22 16:58:38.706]: Debug: GL: vendor: NVIDIA Corporation
[2025-06-22 16:58:38.706]: Debug: GL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
[2025-06-22 16:58:38.706]: Debug: GL: version: 4.6.0 NVIDIA 575.64
[2025-06-22 16:58:38.706]: Debug: GL: shader: 4.60 NVIDIA
[2025-06-22 16:58:38.707]: Info: Streaming bitrate is 43052000
[2025-06-22 16:58:38.707]: Debug: [hevc_nvenc @ 0x7f9be43c0080] Loaded Nvenc version 13.0
[2025-06-22 16:58:38.707]: Debug: [hevc_nvenc @ 0x7f9be43c0080] Nvenc initialized successfully
[2025-06-22 16:58:38.714]: Error: Frame capture failed
[2025-06-22 16:58:38.729]: Debug: Sent HDR mode: false
[2025-06-22 16:58:38.733]: Debug: Minimum frame time set to 100ms, based on min fps factor of 1.
[2025-06-22 16:58:38.969]: Debug: [hevc_nvenc @ 0x7f9be43c0080] Nvenc unloaded
[2025-06-22 16:58:38.978]: Info: Found display [wayland-1]
[2025-06-22 16:58:38.979]: Debug: Available interface: wl_seat(1) version 9
[2025-06-22 16:58:38.979]: Debug: Available interface: wl_data_device_manager(2) version 3
[2025-06-22 16:58:38.979]: Debug: Available interface: wl_compositor(3) version 6
[2025-06-22 16:58:38.979]: Debug: Available interface: wl_subcompositor(4) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_shm(5) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_viewporter(6) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_tearing_control_manager_v1(7) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_fractional_scale_manager_v1(8) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:58:38.980]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_cursor_shape_manager_v1(10) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_idle_inhibit_manager_v1(11) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_relative_pointer_manager_v1(12) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zxdg_decoration_manager_v1(13) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_alpha_modifier_v1(14) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_gamma_control_manager_v1(15) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: ext_foreign_toplevel_list_v1(16) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_pointer_gestures_v1(17) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_foreign_toplevel_manager_v1(18) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_keyboard_shortcuts_inhibit_manager_v1(19) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_text_input_manager_v1(20) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_text_input_manager_v3(21) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_pointer_constraints_v1(22) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_output_power_manager_v1(23) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: xdg_activation_v1(24) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: ext_idle_notifier_v1(25) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_lock_notifier_v1(26) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: ext_session_lock_manager_v1(27) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_input_method_manager_v2(28) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_virtual_keyboard_manager_v1(29) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_virtual_pointer_manager_v1(30) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_output_manager_v1(31) version 4
[2025-06-22 16:58:38.980]: Debug: Available interface: org_kde_kwin_server_decoration_manager(32) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_focus_grab_manager_v1(33) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_tablet_manager_v2(34) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_layer_shell_v1(35) version 5
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_presentation(36) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: xdg_wm_base(37) version 6
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_data_control_manager_v1(38) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_primary_selection_device_manager_v1(39) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: xwayland_shell_v1(40) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:58:38.980]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_toplevel_export_manager_v1(42) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_global_shortcuts_manager_v1(43) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: xdg_wm_dialog_v1(44) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_single_pixel_buffer_manager_v1(45) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_security_context_manager_v1(46) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_ctm_control_manager_v1(47) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_surface_manager_v1(48) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_content_type_manager_v1(49) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_color_manager_v1(50) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_drm_lease_device_v1(51) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_linux_drm_syncobj_manager_v1(52) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_drm(53) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:58:38.980]: Info: Found interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_output(55) version 4
[2025-06-22 16:58:38.980]: Info: Found interface: wl_output(55) version 4
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_output(56) version 4
[2025-06-22 16:58:38.980]: Info: Found interface: wl_output(56) version 4
[2025-06-22 16:58:38.980]: Info: Resolution: 2560x1440
[2025-06-22 16:58:38.980]: Info: Resolution: 2560x1440
[2025-06-22 16:58:38.980]: Info: Name: DP-1
[2025-06-22 16:58:38.980]: Info: Found monitor: JXC monitor 0000000000000 (DP-1)
[2025-06-22 16:58:38.980]: Info: Offset: 2048x0
[2025-06-22 16:58:38.980]: Info: Logical size: 2560x1440
[2025-06-22 16:58:38.980]: Info: Name: eDP-1
[2025-06-22 16:58:38.980]: Info: Found monitor: Sharp Corporation LQ156T1JW05  (eDP-1)
[2025-06-22 16:58:38.980]: Info: Offset: 0x0
[2025-06-22 16:58:38.980]: Info: Logical size: 2048x1152
[2025-06-22 16:58:38.980]: Info: -------- Start of Wayland monitor list --------
[2025-06-22 16:58:38.980]: Info: Monitor 0 is DP-1: JXC monitor 0000000000000 (DP-1)
[2025-06-22 16:58:38.980]: Info: Monitor 1 is eDP-1: Sharp Corporation LQ156T1JW05  (eDP-1)
[2025-06-22 16:58:38.980]: Info: --------- End of Wayland monitor list ---------
[2025-06-22 16:58:38.980]: Info: Screencasting with Wayland's protocol
[2025-06-22 16:58:38.980]: Info: Found display [wayland-1]
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_seat(1) version 9
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_data_device_manager(2) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_compositor(3) version 6
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_subcompositor(4) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_shm(5) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_viewporter(6) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_tearing_control_manager_v1(7) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_fractional_scale_manager_v1(8) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:58:38.980]: Info: Found interface: zxdg_output_manager_v1(9) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_cursor_shape_manager_v1(10) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_idle_inhibit_manager_v1(11) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_relative_pointer_manager_v1(12) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zxdg_decoration_manager_v1(13) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_alpha_modifier_v1(14) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_gamma_control_manager_v1(15) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: ext_foreign_toplevel_list_v1(16) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_pointer_gestures_v1(17) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_foreign_toplevel_manager_v1(18) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_keyboard_shortcuts_inhibit_manager_v1(19) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_text_input_manager_v1(20) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_text_input_manager_v3(21) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_pointer_constraints_v1(22) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_output_power_manager_v1(23) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: xdg_activation_v1(24) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: ext_idle_notifier_v1(25) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_lock_notifier_v1(26) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: ext_session_lock_manager_v1(27) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_input_method_manager_v2(28) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_virtual_keyboard_manager_v1(29) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_virtual_pointer_manager_v1(30) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_output_manager_v1(31) version 4
[2025-06-22 16:58:38.980]: Debug: Available interface: org_kde_kwin_server_decoration_manager(32) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_focus_grab_manager_v1(33) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_tablet_manager_v2(34) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_layer_shell_v1(35) version 5
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_presentation(36) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: xdg_wm_base(37) version 6
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_data_control_manager_v1(38) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_primary_selection_device_manager_v1(39) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: xwayland_shell_v1(40) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:58:38.980]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_toplevel_export_manager_v1(42) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_global_shortcuts_manager_v1(43) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: xdg_wm_dialog_v1(44) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_single_pixel_buffer_manager_v1(45) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_security_context_manager_v1(46) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_ctm_control_manager_v1(47) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: hyprland_surface_manager_v1(48) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_content_type_manager_v1(49) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_color_manager_v1(50) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_drm_lease_device_v1(51) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wp_linux_drm_syncobj_manager_v1(52) version 1
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_drm(53) version 2
[2025-06-22 16:58:38.980]: Debug: Available interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:58:38.980]: Info: Found interface: zwp_linux_dmabuf_v1(54) version 5
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_output(55) version 4
[2025-06-22 16:58:38.980]: Info: Found interface: wl_output(55) version 4
[2025-06-22 16:58:38.980]: Debug: Available interface: wl_output(56) version 4
[2025-06-22 16:58:38.980]: Info: Found interface: wl_output(56) version 4
[2025-06-22 16:58:38.980]: Info: Resolution: 2560x1440
[2025-06-22 16:58:38.980]: Info: Name: DP-1
[2025-06-22 16:58:38.980]: Info: Found monitor: JXC monitor 0000000000000 (DP-1)
[2025-06-22 16:58:38.980]: Info: Offset: 2048x0
[2025-06-22 16:58:38.980]: Info: Logical size: 2560x1440
[2025-06-22 16:58:38.980]: Info: Selected monitor [JXC monitor 0000000000000 (DP-1)] for streaming
[2025-06-22 16:58:38.980]: Debug: Offset: 2048x0
[2025-06-22 16:58:38.980]: Debug: Resolution: 2560x1440
[2025-06-22 16:58:38.980]: Debug: Desktop Resolution: 4608x1440
[2025-06-22 16:58:38.980]: Debug: Screencopy supports SHM format: 1
[2025-06-22 16:58:38.980]: Debug: Screencopy supports DMA-BUF format: 875713112
[2025-06-22 16:58:38.991]: Info: Creating encoder [hevc_nvenc]
[2025-06-22 16:58:38.991]: Info: Color coding: SDR (Rec. 709)
[2025-06-22 16:58:38.991]: Info: Color depth: 8-bit
[2025-06-22 16:58:38.991]: Info: Color range: MPEG
[2025-06-22 16:58:38.991]: Debug: Found CUDA device with PCI bus ID: 0000:01:00.0
[2025-06-22 16:58:38.992]: Debug: Found DRM primary node: card0
[2025-06-22 16:58:38.992]: Debug: EGL: [NVIDIA]: version [1.5]
[2025-06-22 16:58:38.992]: Debug: API's supported: [OpenGL_ES OpenGL]
[2025-06-22 16:58:38.992]: Error: Frame capture failed
[2025-06-22 16:58:38.994]: Debug: GL: vendor: NVIDIA Corporation
[2025-06-22 16:58:38.994]: Debug: GL: renderer: NVIDIA GeForce RTX 4060 Laptop GPU/PCIe/SSE2
[2025-06-22 16:58:38.994]: Debug: GL: version: 4.6.0 NVIDIA 575.64
[2025-06-22 16:58:38.994]: Debug: GL: shader: 4.60 NVIDIA
[2025-06-22 16:58:38.994]: Info: Streaming bitrate is 43052000
[2025-06-22 16:58:38.995]: Debug: [hevc_nvenc @ 0x7f9be43c0080] Loaded Nvenc version 13.0
[2025-06-22 16:58:38.995]: Debug: [hevc_nvenc @ 0x7f9be43c0080] Nvenc initialized successfully
[2025-06-22 16:58:39.020]: Debug: Minimum frame time set to 100ms, based on min fps factor of 1.
[2025-06-22 16:58:39.027]: Debug: Sent HDR mode: false
[2025-06-22 16:58:39.257]: Debug: [hevc_nvenc @ 0x7f9be43c0080] Nvenc unloaded
[2025-06-22 16:58:39.276]: Info: Found display [wayland-1]

ClovertaTheTrilobita avatar Jun 22 '25 09:06 ClovertaTheTrilobita

I have this same issue. Arch linux with the sunshine AUR package on nvidia. I've found that running with the command sunshine instead of using the service with systemctl --user fixes the issue for me.

clepdn avatar Jul 13 '25 04:07 clepdn

I can reproduce a similar issue to the one described by the original poster. While the final error message in my log is Couldn't scale frame: Invalid argument rather than Frame capture failed, the preceding symptoms (successful NVENC initialization followed by an immediate failure upon stream start) appear identical. This further suggests the issue lies in the frame handling pipeline between wlroots capture and the FFmpeg CUDA context, not in the NVENC driver itself. Key System Parameters:

  • GPU: NVIDIA GeForce RTX 3060 Laptop GPU
  • Driver Version: 575.64.05
  • OS: Arch Linux (Kernel 6.16.0-arch2-1)
  • Compositor: Hyprland 0.50.1
  • Sunshine Version: 2025.628.4510

Full Logs:

Relevant Log Snippet (Sunshine):

[2025-08-17 20:47:30.086]: Info: Trying encoder [nvenc] [2025-08-17 20:47:30.086]: Info: Screencasting with Wayland's protocol [2025-08-17 20:47:30.086]: Info: Found display [wayland-1] [2025-08-17 20:47:30.103]: Info: System tray created [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.103]: Debug: System tray loop [2025-08-17 20:47:30.104]: Debug: System tray loop [2025-08-17 20:47:30.104]: Debug: System tray loop [2025-08-17 20:47:30.104]: Debug: System tray loop [2025-08-17 20:47:30.105]: Debug: System tray loop [2025-08-17 20:47:30.105]: Debug: System tray loop [2025-08-17 20:47:30.107]: Debug: System tray loop [2025-08-17 20:47:30.107]: Debug: System tray loop [2025-08-17 20:47:30.107]: Debug: System tray loop [2025-08-17 20:47:30.107]: Debug: System tray loop [2025-08-17 20:47:30.107]: Debug: System tray loop [2025-08-17 20:47:30.112]: Debug: Available interface: wl_seat(1) version 9 [2025-08-17 20:47:30.112]: Debug: Available interface: wl_data_device_manager(2) version 3 [2025-08-17 20:47:30.112]: Debug: Available interface: wl_compositor(3) version 6 [2025-08-17 20:47:30.112]: Debug: Available interface: wl_subcompositor(4) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: wl_shm(5) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: wp_viewporter(6) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: wp_tearing_control_manager_v1(7) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: wp_fractional_scale_manager_v1(8) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zxdg_output_manager_v1(9) version 3 [2025-08-17 20:47:30.112]: Info: Found interface: zxdg_output_manager_v1(9) version 3 [2025-08-17 20:47:30.112]: Debug: Available interface: wp_cursor_shape_manager_v1(10) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_idle_inhibit_manager_v1(11) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_relative_pointer_manager_v1(12) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zxdg_decoration_manager_v1(13) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: wp_alpha_modifier_v1(14) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwlr_gamma_control_manager_v1(15) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: ext_foreign_toplevel_list_v1(16) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_pointer_gestures_v1(17) version 3 [2025-08-17 20:47:30.112]: Debug: Available interface: zwlr_foreign_toplevel_manager_v1(18) version 3 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_keyboard_shortcuts_inhibit_manager_v1(19) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_text_input_manager_v1(20) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_text_input_manager_v3(21) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_pointer_constraints_v1(22) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwlr_output_power_manager_v1(23) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: xdg_activation_v1(24) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: ext_idle_notifier_v1(25) version 2 [2025-08-17 20:47:30.112]: Debug: Available interface: hyprland_lock_notifier_v1(26) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: ext_session_lock_manager_v1(27) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_input_method_manager_v2(28) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwp_virtual_keyboard_manager_v1(29) version 1 [2025-08-17 20:47:30.112]: Debug: Available interface: zwlr_virtual_pointer_manager_v1(30) version 2 [2025-08-17 20:47:30.113]: Debug: Available interface: zwlr_output_manager_v1(31) version 4 [2025-08-17 20:47:30.113]: Debug: Available interface: org_kde_kwin_server_decoration_manager(32) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: hyprland_focus_grab_manager_v1(33) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: zwp_tablet_manager_v2(34) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: zwlr_layer_shell_v1(35) version 5 [2025-08-17 20:47:30.113]: Debug: Available interface: wp_presentation(36) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: xdg_wm_base(37) version 7 [2025-08-17 20:47:30.113]: Debug: Available interface: zwlr_data_control_manager_v1(38) version 2 [2025-08-17 20:47:30.113]: Debug: Available interface: zwp_primary_selection_device_manager_v1(39) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: xwayland_shell_v1(40) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: zwlr_screencopy_manager_v1(41) version 3 [2025-08-17 20:47:30.113]: Info: Found interface: zwlr_screencopy_manager_v1(41) version 3 [2025-08-17 20:47:30.113]: Debug: Available interface: hyprland_toplevel_export_manager_v1(42) version 2 [2025-08-17 20:47:30.113]: Debug: Available interface: hyprland_toplevel_mapping_manager_v1(43) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: hyprland_global_shortcuts_manager_v1(44) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: xdg_wm_dialog_v1(45) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: wp_single_pixel_buffer_manager_v1(46) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: wp_security_context_manager_v1(47) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: hyprland_ctm_control_manager_v1(48) version 2 [2025-08-17 20:47:30.113]: Debug: Available interface: hyprland_surface_manager_v1(49) version 2 [2025-08-17 20:47:30.113]: Debug: Available interface: wp_content_type_manager_v1(50) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: xdg_toplevel_tag_manager_v1(51) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: xdg_system_bell_v1(52) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: ext_workspace_manager_v1(53) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: wp_color_manager_v1(54) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: wp_drm_lease_device_v1(55) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: wp_linux_drm_syncobj_manager_v1(56) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: wp_drm_lease_device_v1(57) version 1 [2025-08-17 20:47:30.113]: Debug: Available interface: wl_drm(58) version 2 [2025-08-17 20:47:30.113]: Debug: Available interface: zwp_linux_dmabuf_v1(59) version 5 [2025-08-17 20:47:30.113]: Info: Found interface: zwp_linux_dmabuf_v1(59) version 5 [2025-08-17 20:47:30.113]: Debug: Available interface: wl_output(60) version 4 [2025-08-17 20:47:30.113]: Info: Found interface: wl_output(60) version 4 [2025-08-17 20:47:30.113]: Debug: Available interface: wl_output(61) version 4 [2025-08-17 20:47:30.113]: Info: Found interface: wl_output(61) version 4 [2025-08-17 20:47:30.113]: Debug: System tray loop [2025-08-17 20:47:30.114]: Info: Resolution: 2800x1840 [2025-08-17 20:47:30.115]: Info: Name: HDMI-A-1 [2025-08-17 20:47:30.115]: Info: Found monitor: BBC HDP-V104 demoset-1 (HDMI-A-1) [2025-08-17 20:47:30.115]: Info: Offset: 2048x0 [2025-08-17 20:47:30.115]: Info: Logical size: 2240x1472 [2025-08-17 20:47:30.115]: Info: Selected monitor [BBC HDP-V104 demoset-1 (HDMI-A-1)] for streaming [2025-08-17 20:47:30.115]: Debug: Offset: 2048x0 [2025-08-17 20:47:30.115]: Debug: Resolution: 2800x1840 [2025-08-17 20:47:30.115]: Debug: Desktop Resolution: 4848x1840 [2025-08-17 20:47:30.115]: Info: Creating encoder [h264_nvenc] [2025-08-17 20:47:30.115]: Info: Color coding: SDR (Rec. 601) [2025-08-17 20:47:30.115]: Info: Color depth: 8-bit [2025-08-17 20:47:30.115]: Info: Color range: JPEG [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded lib: libcuda.so.1 [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuInit [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDriverGetVersion [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGetCount [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGet [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGetAttribute [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGetName [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceComputeCapability [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuCtxCreate_v2 [2025-08-17 20:47:30.116]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuCtxGetCurrent [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuCtxSetLimit [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuCtxPushCurrent_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuCtxPopCurrent_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuCtxDestroy_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemAlloc_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemAllocPitch_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemAllocManaged [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemsetD8Async [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemFree_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpy [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpyAsync [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpy2D_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpy2DAsync_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpyHtoD_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpyHtoDAsync_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpyDtoH_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpyDtoHAsync_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpyDtoD_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMemcpyDtoDAsync_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGetErrorName [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGetErrorString [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuCtxGetDevice [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDevicePrimaryCtxRetain [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDevicePrimaryCtxRelease [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDevicePrimaryCtxSetFlags [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDevicePrimaryCtxGetState [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDevicePrimaryCtxReset [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuStreamCreate [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuStreamQuery [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuStreamSynchronize [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuStreamDestroy_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuStreamAddCallback [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuStreamWaitEvent [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEventCreate [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEventDestroy_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEventSynchronize [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEventQuery [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEventRecord [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuLaunchKernel [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuLinkCreate [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuLinkAddData [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuLinkComplete [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuLinkDestroy [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuModuleLoadData [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuModuleUnload [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuModuleGetFunction [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuModuleGetGlobal [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuTexObjectCreate [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuTexObjectDestroy [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGLGetDevices_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGraphicsGLRegisterImage [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGraphicsUnregisterResource [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGraphicsMapResources [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGraphicsUnmapResources [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGraphicsSubResourceGetMappedArray [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuGraphicsResourceGetMappedPointer_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGetUuid [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGetUuid_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGetLuid [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGetByPCIBusId [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDeviceGetPCIBusId [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuImportExternalMemory [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDestroyExternalMemory [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuExternalMemoryGetMappedBuffer [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuExternalMemoryGetMappedMipmappedArray [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMipmappedArrayGetLevel [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuMipmappedArrayDestroy [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuImportExternalSemaphore [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuDestroyExternalSemaphore [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuSignalExternalSemaphoresAsync [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuWaitExternalSemaphoresAsync [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuArrayCreate_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuArray3DCreate_v2 [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuArrayDestroy [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEGLStreamProducerConnect [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEGLStreamProducerDisconnect [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEGLStreamConsumerDisconnect [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEGLStreamProducerPresentFrame [2025-08-17 20:47:30.117]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Loaded sym: cuEGLStreamProducerReturnFrame [2025-08-17 20:47:30.120]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuInit(0) [2025-08-17 20:47:30.120]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuDeviceGet(&hwctx->internal->cuda_device, device_idx) [2025-08-17 20:47:30.121]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuDevicePrimaryCtxGetState(hwctx->internal->cuda_device, &dev_flags, &dev_active) [2025-08-17 20:47:30.121]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuDevicePrimaryCtxSetFlags(hwctx->internal->cuda_device, desired_flags) [2025-08-17 20:47:30.226]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuDevicePrimaryCtxRetain(&hwctx->cuda_ctx, hwctx->internal->cuda_device) [2025-08-17 20:47:30.226]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuDeviceGetAttribute(&priv->tex_alignment, 14 , hwctx->internal->cuda_device) [2025-08-17 20:47:30.226]: Verbose: [AVHWFramesContext @ 0x560d132e0780] CUDA texture alignment: 512 [2025-08-17 20:47:30.226]: Info: Streaming bitrate is 1000000 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded lib: libcuda.so.1 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuInit [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDriverGetVersion [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGetCount [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGet [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGetAttribute [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGetName [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceComputeCapability [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuCtxCreate_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuCtxGetCurrent [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuCtxSetLimit [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuCtxPushCurrent_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuCtxPopCurrent_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuCtxDestroy_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemAlloc_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemAllocPitch_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemAllocManaged [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemsetD8Async [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemFree_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpy [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpyAsync [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpy2D_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpy2DAsync_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpyHtoD_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpyHtoDAsync_v2 [2025-08-17 20:47:30.226]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpyDtoH_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpyDtoHAsync_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpyDtoD_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMemcpyDtoDAsync_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGetErrorName [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGetErrorString [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuCtxGetDevice [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDevicePrimaryCtxRetain [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDevicePrimaryCtxRelease [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDevicePrimaryCtxSetFlags [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDevicePrimaryCtxGetState [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDevicePrimaryCtxReset [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuStreamCreate [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuStreamQuery [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuStreamSynchronize [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuStreamDestroy_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuStreamAddCallback [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuStreamWaitEvent [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEventCreate [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEventDestroy_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEventSynchronize [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEventQuery [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEventRecord [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuLaunchKernel [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuLinkCreate [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuLinkAddData [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuLinkComplete [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuLinkDestroy [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuModuleLoadData [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuModuleUnload [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuModuleGetFunction [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuModuleGetGlobal [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuTexObjectCreate [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuTexObjectDestroy [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGLGetDevices_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGraphicsGLRegisterImage [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGraphicsUnregisterResource [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGraphicsMapResources [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGraphicsUnmapResources [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGraphicsSubResourceGetMappedArray [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuGraphicsResourceGetMappedPointer_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGetUuid [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGetUuid_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGetLuid [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGetByPCIBusId [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDeviceGetPCIBusId [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuImportExternalMemory [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDestroyExternalMemory [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuExternalMemoryGetMappedBuffer [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuExternalMemoryGetMappedMipmappedArray [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMipmappedArrayGetLevel [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuMipmappedArrayDestroy [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuImportExternalSemaphore [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuDestroyExternalSemaphore [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuSignalExternalSemaphoresAsync [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuWaitExternalSemaphoresAsync [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuArrayCreate_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuArray3DCreate_v2 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuArrayDestroy [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEGLStreamProducerConnect [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEGLStreamProducerDisconnect [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEGLStreamConsumerDisconnect [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEGLStreamProducerPresentFrame [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: cuEGLStreamProducerReturnFrame [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded lib: libnvidia-encode.so.1 [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: NvEncodeAPICreateInstance [2025-08-17 20:47:30.227]: Verbose: [h264_nvenc @ 0x560d124df440] Loaded sym: NvEncodeAPIGetMaxSupportedVersion [2025-08-17 20:47:30.227]: Debug: [h264_nvenc @ 0x560d124df440] Loaded Nvenc version 13.0 [2025-08-17 20:47:30.227]: Debug: [h264_nvenc @ 0x560d124df440] Nvenc initialized successfully [2025-08-17 20:47:30.229]: Verbose: [h264_nvenc @ 0x560d124df440] Calling dl_fn->cuda_dl->cuCtxPushCurrent(ctx->cu_context) [2025-08-17 20:47:30.236]: Verbose: [h264_nvenc @ 0x560d124df440] Calling dl_fn->cuda_dl->cuCtxPopCurrent(&dummy) [2025-08-17 20:47:30.236]: Verbose: [h264_nvenc @ 0x560d124df440] Calling dl_fn->cuda_dl->cuCtxPushCurrent(ctx->cu_context) [2025-08-17 20:47:30.236]: Verbose: [h264_nvenc @ 0x560d124df440] Calling dl_fn->cuda_dl->cuCtxPopCurrent(&dummy) [2025-08-17 20:47:30.240]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuCtxPushCurrent(hwctx->cuda_ctx) [2025-08-17 20:47:30.241]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuMemAlloc(&data, size) [2025-08-17 20:47:30.241]: Verbose: [AVHWDeviceContext @ 0x560d124de700] Calling cu->cuCtxPopCurrent(&dummy) [2025-08-17 20:47:30.241]: Error: Couldn't scale frame: Invalid argument [2025-08-17 20:47:30.241]: Verbose: [h264_nvenc @ 0x560d124df440] Calling dl_fn->cuda_dl->cuCtxPushCurrent(ctx->cu_context) [2025-08-17 20:47:30.480]: Verbose: [h264_nvenc @ 0x560d124df440] Calling dl_fn->cuda_dl->cuCtxPopCurrent(&dummy) [2025-08-17 20:47:30.481]: Debug: [h264_nvenc @ 0x560d124df440] Nvenc unloaded

NVENC Functionality Test (FFmpeg standalone): I confirmed that NVENC is fully functional on my system outside of the Sunshine capture pipeline. Encoding a synthetic source successfully completes without errors. Command:

ffmpeg -f lavfi -i testsrc=duration=10:size=1920x1080:rate=30 -c:v h264_nvenc -y /tmp/test.mp4

Output Snippet:

...
Output #0, mp4, to '/tmp/test.mp4':
...
Stream #0:0: Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), gbrp(pc, gbr/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2000 kb/s, 30 fps, 15360 tbn
...
frame=  300 fps=297 q=23.0 Lsize=    2314KiB time=00:00:09.90 bitrate=1914.9kbits/s speed=9.81x

This data confirms the issue is specific to the interaction between the Hyprland screen capture process (likely via DMABUF) and the FFmpeg/CUDA scaling pipeline.

Horcag avatar Aug 17 '25 17:08 Horcag

I too have the same issue, it used to work on my system a couple of months ago 🤷

gmartsenkov avatar Sep 19 '25 08:09 gmartsenkov

I too have the same issue, it used to work on my system a couple of months ago 🤷

@gmartsenkov I think I've found a temporarily fix: set capture method back to kms instead of wlr by default.

open ~/.config/sunshine/sunshine.conf and add:

capture = kms

to sunshine configuration file. Though this may disable sunshine's ability to stream on headless wayland monitors.

ClovertaTheTrilobita avatar Sep 20 '25 23:09 ClovertaTheTrilobita

I too have the same issue, it used to work on my system a couple of months ago 🤷

@gmartsenkov I think I've found a temporarily fix: set capture method back to kms instead of wlr by default.

open ~/.config/sunshine/sunshine.conf and add:

capture = kms

to sunshine configuration file. Though this may disable sunshine's ability to stream on headless wayland monitors.

This worked on niri!

zauceee avatar Oct 18 '25 16:10 zauceee

I too have the same issue, it used to work on my system a couple of months ago 🤷

@gmartsenkov I think I've found a temporarily fix: set capture method back to kms instead of wlr by default.

open ~/.config/sunshine/sunshine.conf and add:

capture = kms

to sunshine configuration file. Though this may disable sunshine's ability to stream on headless wayland monitors.

Thanks so much dude works on Mango (dwl) too 🙌🏻

fyiimysf avatar Oct 26 '25 20:10 fyiimysf

I too have the same issue, it used to work on my system a couple of months ago 🤷

@gmartsenkov I think I've found a temporarily fix: set capture method back to kms instead of wlr by default.

open ~/.config/sunshine/sunshine.conf and add:

capture = kms

to sunshine configuration file. Though this may disable sunshine's ability to stream on headless wayland monitors.

When you say "instead of wlr"... hyprland no longer is using wlroots. Is that potentially the issue?

crthpl avatar Oct 28 '25 06:10 crthpl

When you say "instead of wlr"... hyprland no longer is using wlroots. Is that potentially the issue?

I guess it could be, #3783 changed the default capture method.

In #4050 they also found a fix.

ClovertaTheTrilobita avatar Oct 28 '25 09:10 ClovertaTheTrilobita