Sunshine
Sunshine copied to clipboard
Proxmox GPU passthrough, black screen and "Couldn't import RGB Image: 00003003"
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 nightly release?
- [X] This issue is present in the nightly release
Describe the Bug
Upon connecting to the Linux host, after the RTSP handshake, the screen (on the client) turns black. After a while, the client shows the error message: "no video received from host". In the logs on the host, two errors keep repeating:
- Error: Couldn't import RGB Image: 00003003
- Error: Could not convert image
Expected Behavior
Moonlight shows the screen of the host
Additional Context
My setup is as follows:
Server:
- CPU: AMD EPYC 7763
- OS: Proxmox 8.1.10
- GPU: nVidia Tesla P40
On the server, I'm running my VM:
- OS: Kubuntu 24.04
- CPU: host (so, EPYC 7736)
- GPU: Tesla P40-Q6 (6GB vGPU)
The client (moonlight) runs on windows:
- OS: Windows 10
- CPU: AMD Ryzen 5950
- GPU: AMD Radeon 6900XT
I've configured a virtual display (see below). The VM is headless, save for the virtual display that Proxmox is attaching. I'm interacting with the VM via SSH.
I've configured Xorg with the following settings:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 535.154.05
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
EndSection
Section "Files"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
Option "DPMS"
Option "Enable" "True"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GRID P40-6Q"
BusID "PCI:0:16:0"
Option "PrimaryGPU" "False"
Option "MetaModes" "3840x2160"
Option "ConnectedMonitor" "DP-1"
Option "ModeValidation" "NoDFPNativeResolutionCheck,NoVirtualSizeCheck,NoMaxPClkCheck,NoHorizSyncCheck,NoVertRefreshCheck,NoWidthAlignmentCheck"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "3840x2160"
EndSubSection
EndSection
The virtual screen is working, nvidia-smi shows the following:
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.154.05 Driver Version: 535.154.05 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 GRID P40-6Q On | 00000000:00:10.0 On | N/A |
| N/A N/A P8 N/A / N/A | 1194MiB / 6144MiB | 0% Default |
| | | Disabled |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 2331 G /usr/lib/xorg/Xorg 125MiB |
| 0 N/A N/A 2447 G /usr/bin/sddm-greeter 210MiB |
| 0 N/A N/A 5685 G /usr/lib/xorg/Xorg 268MiB |
| 0 N/A N/A 5896 G ...-gnu/libexec/xdg-desktop-portal-kde 19MiB |
| 0 N/A N/A 5897 G ..._64-linux-gnu/libexec/kf5/klauncher 19MiB |
| 0 N/A N/A 5926 G /usr/bin/kded5 19MiB |
| 0 N/A N/A 5929 G /usr/bin/kwin_x11 52MiB |
| 0 N/A N/A 6072 G /usr/bin/ksmserver 19MiB |
| 0 N/A N/A 6084 G ...c/polkit-kde-authentication-agent-1 19MiB |
| 0 N/A N/A 6087 G ...nux-gnu/libexec/kscreenlocker_greet 188MiB |
| 0 N/A N/A 6088 G /usr/bin/plasmashell 108MiB |
| 0 N/A N/A 6089 G /usr/bin/kaccess 19MiB |
| 0 N/A N/A 6117 G ...-linux-gnu/libexec/DiscoverNotifier 123MiB |
+---------------------------------------------------------------------------------------+
xrandr shows that the display is available when executing DISPLAY=:1 xrandr:
root@username:/etc/X11/xorg.conf.d# DISPLAY=:1 xrandr
Screen 0: minimum 8 x 8, current 2560 x 1600, maximum 30720 x 17280
DVI-D-0 connected primary 2560x1600+0+0 (normal left inverted right x axis y axis) 641mm x 400mm
2560x1600 59.86*+ 59.99 59.97
7680x4320 59.99 15.83 59.99 59.99 59.94
5120x2880 59.99 59.99
4096x2304 59.99 59.98
4096x2160 60.03
3840x2400 60.00
3840x2160 60.01 60.00 60.00 59.98 59.97
3200x1800 59.96 59.94
2880x1620 59.97 59.96
[...]
640x360 59.86 59.83 59.84 59.32
640x350 85.08
576x432 75.00
512x384 85.00 87.06 75.03 70.07 60.00
512x288 60.00 59.92
480x270 59.82 59.63
432x243 59.92 59.57
416x312 74.66
400x300 85.27 75.12 72.19 60.32 56.34
360x202 59.51 59.13
360x200 85.04
320x240 85.18 75.00 72.81 60.05
320x200 85.27
320x180 59.84 59.32
320x175 85.27
DVI-D-1 disconnected (normal left inverted right x axis y axis)
DVI-D-2 disconnected (normal left inverted right x axis y axis)
DVI-D-3 disconnected (normal left inverted right x axis y axis)
I can even take a screenshot by executing the following command: DISPLAY=:1 xwd -root > screenshot.xwd and it shows the desktop:
In order to start the x session, I'm executing the following command:
DISPLAY=:1 startx
And in order to start sunshine, I'm executing this:
DISPLAY=:1 sunshine
(not sure if sunshine does anything with the DISPLAY env)
In sunshine, I configured the following:
- Adapter Name: /dev/dri/renderD128 (I also tried with /dev/dri/card0 and /dev/dri/card1 -- card1 is the P40)
- Display Number: 0 (I'm getting errors with all other numbers)
- Force Capture Method: KMS
- Force Encoder: NVENC
When I check what devices are there in /dev/dri, I see the following:
root@username:/dev/dri/by-path# ll
total 0
drwxr-xr-x 2 root root 100 apr 30 21:26 ./
drwxr-xr-x 3 root root 120 apr 30 21:26 ../
lrwxrwxrwx 1 root root 8 apr 30 21:26 pci-0000:00:02.0-card -> ../card0
lrwxrwxrwx 1 root root 8 apr 30 21:26 pci-0000:00:10.0-card -> ../card1
lrwxrwxrwx 1 root root 13 apr 30 21:26 pci-0000:00:10.0-render -> ../renderD128
Sunshine outputs the following before connecting with the client:
root@username:/etc/X11/xorg.conf.d# sunshine
[fps] -- [[30,60]]
[resolutions] -- [[
1280x720,
1920x1080,
2560x1080,
2560x1440,
3440x1440,
1920x1200,
3840x2160
]]
[encoder] -- [nvenc]
[nvenc_h264_cavlc] -- [enabled]
[av1_mode] -- [1]
[adapter_name] -- [/dev/dri/renderD128]
[capture] -- [kms]
[output_name] -- [0]
[2024:04:30:23:04:17]: Info: Sunshine version: 0.23.1.7fb8c76590f843f28b2061cd0a1543f0710795e3
[2024:04:30:23:04:18]: Warning: Failed to create system tray
[2024:04:30:23:04:18]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:04:18]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:04:18]: Info: /dev/dri/card1 -> nvidia-drm
[2024:04:30:23:04:18]: Error: GPU driver doesn't support universal planes: /dev/dri/card1
[2024:04:30:23:04:18]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2024:04:30:23:04:18]: Info: Trying encoder [nvenc]
[2024:04:30:23:04:18]: Info: Screencasting with KMS
[2024:04:30:23:04:18]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:04:18]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:04:18]: Info: Found monitor for DRM screencasting
[2024:04:30:23:04:18]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:04:18]: Info: Found connector ID [31]
[2024:04:30:23:04:18]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:04:18]: Info: Color depth: 8-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Warning: [h264_nvenc @ 0x5a0464d9d940] Multiple reference frames are not supported by the device
[2024:04:30:23:04:18]: Error: [h264_nvenc @ 0x5a0464d9d940] Provided device doesn't support required NVENC features
[2024:04:30:23:04:18]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:04:18]: Info: Color depth: 8-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:04:18]: Info: Color depth: 8-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Warning: [hevc_nvenc @ 0x5a0464d9d940] Multiple reference frames are not supported by the device
[2024:04:30:23:04:18]: Error: [hevc_nvenc @ 0x5a0464d9d940] Provided device doesn't support required NVENC features
[2024:04:30:23:04:18]: Error: Could not open codec [hevc_nvenc]: Function not implemented
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:04:18]: Info: Color depth: 8-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Info: Screencasting with KMS
[2024:04:30:23:04:18]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:04:18]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:04:18]: Info: Found monitor for DRM screencasting
[2024:04:30:23:04:18]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:04:18]: Info: Found connector ID [31]
[2024:04:30:23:04:18]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 709]
[2024:04:30:23:04:18]: Info: Color depth: 10-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:04:30:23:04:18]: Info:
[2024:04:30:23:04:18]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:04:30:23:04:18]: Info:
[2024:04:30:23:04:18]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:04:30:23:04:18]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:04:30:23:04:18]: Info: Adding avahi service Sunshine
[2024:04:30:23:04:18]: Info: Configuration UI available at [https://localhost:47990]
[2024:04:30:23:04:19]: Info: Avahi service name collision, renaming service to Sunshine #2
[2024:04:30:23:04:19]: Info: Adding avahi service Sunshine #2
[2024:04:30:23:04:20]: Info: Avahi service Sunshine #2 successfully established.
When connecting, the following logs are produced:
[2024:04:30:23:08:13]: Info: Trying encoder [nvenc]
[2024:04:30:23:08:13]: Info: Screencasting with KMS
[2024:04:30:23:08:13]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:08:13]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:08:13]: Info: Found monitor for DRM screencasting
[2024:04:30:23:08:13]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:08:13]: Info: Found connector ID [31]
[2024:04:30:23:08:13]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:08:13]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:13]: Info: Color depth: 8-bit
[2024:04:30:23:08:13]: Info: Color range: [JPEG]
[2024:04:30:23:08:13]: Warning: [h264_nvenc @ 0x7e05d03a6e40] Multiple reference frames are not supported by the device
[2024:04:30:23:08:13]: Error: [h264_nvenc @ 0x7e05d03a6e40] Provided device doesn't support required NVENC features
[2024:04:30:23:08:14]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [JPEG]
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [JPEG]
[2024:04:30:23:08:14]: Warning: [hevc_nvenc @ 0x7e05d03a6e40] Multiple reference frames are not supported by the device
[2024:04:30:23:08:14]: Error: [hevc_nvenc @ 0x7e05d03a6e40] Provided device doesn't support required NVENC features
[2024:04:30:23:08:14]: Error: Could not open codec [hevc_nvenc]: Function not implemented
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [JPEG]
[2024:04:30:23:08:14]: Info: Screencasting with KMS
[2024:04:30:23:08:14]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:08:14]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:08:14]: Info: Found monitor for DRM screencasting
[2024:04:30:23:08:14]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:08:14]: Info: Found connector ID [31]
[2024:04:30:23:08:14]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 709]
[2024:04:30:23:08:14]: Info: Color depth: 10-bit
[2024:04:30:23:08:14]: Info: Color range: [JPEG]
[2024:04:30:23:08:14]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:04:30:23:08:14]: Info:
[2024:04:30:23:08:14]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:04:30:23:08:14]: Info:
[2024:04:30:23:08:14]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:04:30:23:08:14]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:04:30:23:08:14]: Info: Executing [Desktop]
[2024:04:30:23:08:14]: Info: CLIENT CONNECTED
[2024:04:30:23:08:14]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:08:14]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:08:14]: Warning: Using NVENC with your display connected to a different GPU may not work properly!
[2024:04:30:23:08:14]: Info: /dev/dri/card1 -> nvidia-drm
[2024:04:30:23:08:14]: Error: GPU driver doesn't support universal planes: /dev/dri/card1
[2024:04:30:23:08:14]: Info: Screencasting with KMS
[2024:04:30:23:08:14]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:08:14]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:08:14]: Info: Found monitor for DRM screencasting
[2024:04:30:23:08:14]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:08:14]: Info: Found connector ID [31]
[2024:04:30:23:08:14]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [MPEG]
[2024:04:30:23:08:14]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:14]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:14]: Error: Could not convert image
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [MPEG]
[2024:04:30:23:08:14]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:14]: Error: Couldn't connect to pulseaudio: Access denied
[2024:04:30:23:08:14]: Warning: There will be no audio
[2024:04:30:23:08:14]: Error: Unable to initialize audio capture. The stream will not have audio.
[2024:04:30:23:08:15]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:15]: Error: Could not convert image
[2024:04:30:23:08:15]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:15]: Info: Color depth: 8-bit
[2024:04:30:23:08:15]: Info: Color range: [MPEG]
[2024:04:30:23:08:15]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:15]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:15]: Error: Could not convert image
[2024:04:30:23:08:15]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:15]: Info: Color depth: 8-bit
[2024:04:30:23:08:15]: Info: Color range: [MPEG]
[2024:04:30:23:08:15]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:15]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:15]: Error: Could not convert image
[2024:04:30:23:08:15]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:15]: Info: Color depth: 8-bit
[2024:04:30:23:08:15]: Info: Color range: [MPEG]
[2024:04:30:23:08:15]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:15]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:15]: Error: Could not convert image
[2024:04:30:23:08:15]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:15]: Info: Color depth: 8-bit
[2024:04:30:23:08:15]: Info: Color range: [MPEG]
[2024:04:30:23:08:15]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:16]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:16]: Error: Could not convert image
[2024:04:30:23:08:16]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:16]: Info: Color depth: 8-bit
[2024:04:30:23:08:16]: Info: Color range: [MPEG]
[2024:04:30:23:08:16]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:16]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:16]: Error: Could not convert image
[2024:04:30:23:08:16]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:16]: Info: Color depth: 8-bit
[2024:04:30:23:08:16]: Info: Color range: [MPEG]
[2024:04:30:23:08:16]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:16]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:16]: Error: Could not convert image
[2024:04:30:23:08:16]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:16]: Info: Color depth: 8-bit
[2024:04:30:23:08:16]: Info: Color range: [MPEG]
[2024:04:30:23:08:16]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:16]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:16]: Error: Could not convert image
[2024:04:30:23:08:16]: Info: CLIENT DISCONNECTED
(the disconnect at the end is triggered by myself closing the client)
Host Operating System
Linux
Operating System Version
Kubuntu 24.04
Architecture
64 bit
Sunshine commit or version
0.23.1
Package
Linux - deb
GPU Type
Nvidia
GPU Model
Tesla P40 (vGPU)
GPU Driver/Mesa Version
535.154.05
Capture Method (Linux Only)
KMS
Config
output_name = 0
capture = kms
adapter_name = /dev/dri/renderD128
av1_mode = 1
encoder = nvenc
resolutions = [
1280x720,
1920x1080,
2560x1080,
2560x1440,
3440x1440,
1920x1200,
3840x2160
]
fps = [30,60]
nvenc_h264_cavlc = enabled
Apps
No response
Relevant log output
[fps] -- [[30,60]]
[resolutions] -- [[
1280x720,
1920x1080,
2560x1080,
2560x1440,
3440x1440,
1920x1200,
3840x2160
]]
[encoder] -- [nvenc]
[nvenc_h264_cavlc] -- [enabled]
[av1_mode] -- [1]
[adapter_name] -- [/dev/dri/renderD128]
[capture] -- [kms]
[output_name] -- [0]
[2024:04:30:23:04:17]: Info: Sunshine version: 0.23.1.7fb8c76590f843f28b2061cd0a1543f0710795e3
[2024:04:30:23:04:18]: Warning: Failed to create system tray
[2024:04:30:23:04:18]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:04:18]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:04:18]: Info: /dev/dri/card1 -> nvidia-drm
[2024:04:30:23:04:18]: Error: GPU driver doesn't support universal planes: /dev/dri/card1
[2024:04:30:23:04:18]: Error: Environment variable WAYLAND_DISPLAY has not been defined
[2024:04:30:23:04:18]: Info: Trying encoder [nvenc]
[2024:04:30:23:04:18]: Info: Screencasting with KMS
[2024:04:30:23:04:18]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:04:18]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:04:18]: Info: Found monitor for DRM screencasting
[2024:04:30:23:04:18]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:04:18]: Info: Found connector ID [31]
[2024:04:30:23:04:18]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:04:18]: Info: Color depth: 8-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Warning: [h264_nvenc @ 0x5a0464d9d940] Multiple reference frames are not supported by the device
[2024:04:30:23:04:18]: Error: [h264_nvenc @ 0x5a0464d9d940] Provided device doesn't support required NVENC features
[2024:04:30:23:04:18]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:04:18]: Info: Color depth: 8-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:04:18]: Info: Color depth: 8-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Warning: [hevc_nvenc @ 0x5a0464d9d940] Multiple reference frames are not supported by the device
[2024:04:30:23:04:18]: Error: [hevc_nvenc @ 0x5a0464d9d940] Provided device doesn't support required NVENC features
[2024:04:30:23:04:18]: Error: Could not open codec [hevc_nvenc]: Function not implemented
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:04:18]: Info: Color depth: 8-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Info: Screencasting with KMS
[2024:04:30:23:04:18]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:04:18]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:04:18]: Info: Found monitor for DRM screencasting
[2024:04:30:23:04:18]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:04:18]: Info: Found connector ID [31]
[2024:04:30:23:04:18]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:04:18]: Info: SDR color coding [Rec. 709]
[2024:04:30:23:04:18]: Info: Color depth: 10-bit
[2024:04:30:23:04:18]: Info: Color range: [JPEG]
[2024:04:30:23:04:18]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:04:30:23:04:18]: Info:
[2024:04:30:23:04:18]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:04:30:23:04:18]: Info:
[2024:04:30:23:04:18]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:04:30:23:04:18]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:04:30:23:04:18]: Info: Adding avahi service Sunshine
[2024:04:30:23:04:18]: Info: Configuration UI available at [https://localhost:47990]
[2024:04:30:23:04:19]: Info: Avahi service name collision, renaming service to Sunshine #2
[2024:04:30:23:04:19]: Info: Adding avahi service Sunshine #2
[2024:04:30:23:04:20]: Info: Avahi service Sunshine #2 successfully established.
[2024:04:30:23:08:13]: Info: Trying encoder [nvenc]
[2024:04:30:23:08:13]: Info: Screencasting with KMS
[2024:04:30:23:08:13]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:08:13]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:08:13]: Info: Found monitor for DRM screencasting
[2024:04:30:23:08:13]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:08:13]: Info: Found connector ID [31]
[2024:04:30:23:08:13]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:08:13]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:13]: Info: Color depth: 8-bit
[2024:04:30:23:08:13]: Info: Color range: [JPEG]
[2024:04:30:23:08:13]: Warning: [h264_nvenc @ 0x7e05d03a6e40] Multiple reference frames are not supported by the device
[2024:04:30:23:08:13]: Error: [h264_nvenc @ 0x7e05d03a6e40] Provided device doesn't support required NVENC features
[2024:04:30:23:08:14]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [JPEG]
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [JPEG]
[2024:04:30:23:08:14]: Warning: [hevc_nvenc @ 0x7e05d03a6e40] Multiple reference frames are not supported by the device
[2024:04:30:23:08:14]: Error: [hevc_nvenc @ 0x7e05d03a6e40] Provided device doesn't support required NVENC features
[2024:04:30:23:08:14]: Error: Could not open codec [hevc_nvenc]: Function not implemented
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [JPEG]
[2024:04:30:23:08:14]: Info: Screencasting with KMS
[2024:04:30:23:08:14]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:08:14]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:08:14]: Info: Found monitor for DRM screencasting
[2024:04:30:23:08:14]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:08:14]: Info: Found connector ID [31]
[2024:04:30:23:08:14]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 709]
[2024:04:30:23:08:14]: Info: Color depth: 10-bit
[2024:04:30:23:08:14]: Info: Color range: [JPEG]
[2024:04:30:23:08:14]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:04:30:23:08:14]: Info:
[2024:04:30:23:08:14]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:04:30:23:08:14]: Info:
[2024:04:30:23:08:14]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:04:30:23:08:14]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:04:30:23:08:14]: Info: Executing [Desktop]
[2024:04:30:23:08:14]: Info: CLIENT CONNECTED
[2024:04:30:23:08:14]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:08:14]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:08:14]: Warning: Using NVENC with your display connected to a different GPU may not work properly!
[2024:04:30:23:08:14]: Info: /dev/dri/card1 -> nvidia-drm
[2024:04:30:23:08:14]: Error: GPU driver doesn't support universal planes: /dev/dri/card1
[2024:04:30:23:08:14]: Info: Screencasting with KMS
[2024:04:30:23:08:14]: Info: /dev/dri/card0 -> bochs-drm
[2024:04:30:23:08:14]: Warning: No render device name for: /dev/dri/card0
[2024:04:30:23:08:14]: Info: Found monitor for DRM screencasting
[2024:04:30:23:08:14]: Error: Failed to determine panel orientation, defaulting to landscape.
[2024:04:30:23:08:14]: Info: Found connector ID [31]
[2024:04:30:23:08:14]: Warning: No KMS cursor plane found. Cursor may not be displayed while streaming!
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [MPEG]
[2024:04:30:23:08:14]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:14]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:14]: Error: Could not convert image
[2024:04:30:23:08:14]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:14]: Info: Color depth: 8-bit
[2024:04:30:23:08:14]: Info: Color range: [MPEG]
[2024:04:30:23:08:14]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:14]: Error: Couldn't connect to pulseaudio: Access denied
[2024:04:30:23:08:14]: Warning: There will be no audio
[2024:04:30:23:08:14]: Error: Unable to initialize audio capture. The stream will not have audio.
[2024:04:30:23:08:15]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:15]: Error: Could not convert image
[2024:04:30:23:08:15]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:15]: Info: Color depth: 8-bit
[2024:04:30:23:08:15]: Info: Color range: [MPEG]
[2024:04:30:23:08:15]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:15]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:15]: Error: Could not convert image
[2024:04:30:23:08:15]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:15]: Info: Color depth: 8-bit
[2024:04:30:23:08:15]: Info: Color range: [MPEG]
[2024:04:30:23:08:15]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:15]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:15]: Error: Could not convert image
[2024:04:30:23:08:15]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:15]: Info: Color depth: 8-bit
[2024:04:30:23:08:15]: Info: Color range: [MPEG]
[2024:04:30:23:08:15]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:15]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:15]: Error: Could not convert image
[2024:04:30:23:08:15]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:15]: Info: Color depth: 8-bit
[2024:04:30:23:08:15]: Info: Color range: [MPEG]
[2024:04:30:23:08:15]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:16]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:16]: Error: Could not convert image
[2024:04:30:23:08:16]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:16]: Info: Color depth: 8-bit
[2024:04:30:23:08:16]: Info: Color range: [MPEG]
[2024:04:30:23:08:16]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:16]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:16]: Error: Could not convert image
[2024:04:30:23:08:16]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:16]: Info: Color depth: 8-bit
[2024:04:30:23:08:16]: Info: Color range: [MPEG]
[2024:04:30:23:08:16]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:16]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:16]: Error: Could not convert image
[2024:04:30:23:08:16]: Info: SDR color coding [Rec. 601]
[2024:04:30:23:08:16]: Info: Color depth: 8-bit
[2024:04:30:23:08:16]: Info: Color range: [MPEG]
[2024:04:30:23:08:16]: Warning: Client requested reference frame limit, but encoder doesn't support it!
[2024:04:30:23:08:16]: Error: Couldn't import RGB Image: 00003003
[2024:04:30:23:08:16]: Error: Could not convert image
[2024:04:30:23:08:16]: Info: CLIENT DISCONNECTED
I think Sunshine may be trying to encode the screen attached the virtual Proxmox GPU via your Nvidia GPU, which won't always work. You may need to enable the modeset=1 option for nvidia-drm for import/export of dmabufs to work between GPUs.
Same issue on my dual-gpu laptop, my log: sunshine.log
Same here, dual-gpu laptop was working just fine with my nvidia gpu but now it's not probably because I am in the beta build instead of stable? modeset=1 is already set.
The original issue here is related to gpu passthrough/partitioning in Proxmox... seems unlikely you're doing that on a laptop?
The original issue here is related to gpu passthrough/partitioning in Proxmox... seems unlikely you're doing that on a laptop?
The logs are very similar to what the OP is facing, I had modest=1 already enabled before and was working just fine with my nvidia gpu, adapter name was force set to use my discrete gpu as well but looks like it no longer works unless I set my "Force a Specific Encoder" back to Autodetect which probably is using my in-built gpu (amd) now instead of discrete (nvidia)