LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
19.7k stars 954 forks source link

Black Screen and Disconnection Issue with Moonlight and Sunshine #2329

Closed eliasstepanik closed 7 months ago

eliasstepanik commented 7 months ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the nightly release?

Describe the Bug

After setting up Sunshine on a Proxmox VM that runs Windows with GPU Passthrough, I attempted to connect via Moonlight from my main PC. Unfortunately, the connection results in a black screen, followed by disconnection. Shortly after, Moonlight displays the error message: "Received no video from host.".

Expected Behavior

I expected Moonlight to successfully connect to the Sunshine server on the VM, allowing me to stream my desktop or games without issues.

Additional Context

I have HDMI and DP Dongels connected to the GPU. I also tested connecting a normal screen to the gpu and it showed the VM Windows Desktop.

Host Operating System

Windows

Operating System Version

Win 11

Architecture

64 bit

Sunshine commit or version

v0.22.2

Package

Windows - installer

GPU Type

AMD

GPU Model

AMD Radeon RX 7900 XT

GPU Driver/Mesa Version

24.3.1

Capture Method (Linux Only)

No response

Config

empty

Apps

No response

Relevant log output

[2024:03:30:14:18:15]: Info: Encoder reenumeration is required
[2024:03:30:14:18:15]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:03:30:14:18:15]: Info: Trying encoder [nvenc]
[2024:03:30:14:18:16]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20417 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 15981 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 1920x0
Virtual Desktop    : 3840x1080
[2024:03:30:14:18:16]: Info: Active GPU has HAGS enabled
[2024:03:30:14:18:16]: Info: Using realtime GPU priority
[2024:03:30:14:18:16]: Info: Desktop resolution [1920x1080]
[2024:03:30:14:18:16]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:30:14:18:16]: Info: Display refresh rate [60Hz]
[2024:03:30:14:18:16]: Info: Requested frame rate [60fps]
[2024:03:30:14:18:16]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.648438,0.338867]
Green Primary      : [0.282227,0.602539]
Blue Primary       : [0.142578,0.0703125]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:03:30:14:18:16]: Info: Encoder [nvenc] is not supported on this GPU
[2024:03:30:14:18:16]: Info: Trying encoder [quicksync]
[2024:03:30:14:18:18]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20417 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 15981 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 1920x0
Virtual Desktop    : 3840x1080
[2024:03:30:14:18:18]: Info: Active GPU has HAGS enabled
[2024:03:30:14:18:18]: Info: Using realtime GPU priority
[2024:03:30:14:18:18]: Info: Desktop resolution [1920x1080]
[2024:03:30:14:18:18]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:30:14:18:18]: Info: Display refresh rate [60Hz]
[2024:03:30:14:18:18]: Info: Requested frame rate [60fps]
[2024:03:30:14:18:18]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.648438,0.338867]
Green Primary      : [0.282227,0.602539]
Blue Primary       : [0.142578,0.0703125]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:03:30:14:18:18]: Info: Encoder [quicksync] is not supported on this GPU
[2024:03:30:14:18:18]: Info: Trying encoder [amdvce]
[2024:03:30:14:18:20]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20417 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 15981 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 1920x0
Virtual Desktop    : 3840x1080
[2024:03:30:14:18:20]: Info: Active GPU has HAGS enabled
[2024:03:30:14:18:20]: Info: Using realtime GPU priority
[2024:03:30:14:18:20]: Info: Desktop resolution [1920x1080]
[2024:03:30:14:18:20]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:30:14:18:20]: Info: Display refresh rate [60Hz]
[2024:03:30:14:18:20]: Info: Requested frame rate [60fps]
[2024:03:30:14:18:20]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.648438,0.338867]
Green Primary      : [0.282227,0.602539]
Blue Primary       : [0.142578,0.0703125]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:03:30:14:18:20]: Info: SDR color coding [Rec. 601]
[2024:03:30:14:18:20]: Info: Color depth: 8-bit
[2024:03:30:14:18:20]: Info: Color range: [JPEG]
[2024:03:30:14:18:21]: Info: SDR color coding [Rec. 601]
[2024:03:30:14:18:21]: Info: Color depth: 8-bit
[2024:03:30:14:18:21]: Info: Color range: [JPEG]
[2024:03:30:14:18:22]: Info: SDR color coding [Rec. 601]
[2024:03:30:14:18:22]: Info: Color depth: 8-bit
[2024:03:30:14:18:22]: Info: Color range: [JPEG]
[2024:03:30:14:18:24]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20417 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 15981 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 1920x0
Virtual Desktop    : 3840x1080
[2024:03:30:14:18:24]: Info: Active GPU has HAGS enabled
[2024:03:30:14:18:24]: Info: Using realtime GPU priority
[2024:03:30:14:18:24]: Info: Desktop resolution [1920x1080]
[2024:03:30:14:18:24]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:30:14:18:24]: Info: Display refresh rate [60Hz]
[2024:03:30:14:18:24]: Info: Requested frame rate [60fps]
[2024:03:30:14:18:24]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.648438,0.338867]
Green Primary      : [0.282227,0.602539]
Blue Primary       : [0.142578,0.0703125]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:03:30:14:18:24]: Info: SDR color coding [Rec. 709]
[2024:03:30:14:18:24]: Info: Color depth: 10-bit
[2024:03:30:14:18:24]: Info: Color range: [JPEG]
[2024:03:30:14:18:24]: Info: SDR color coding [Rec. 709]
[2024:03:30:14:18:24]: Info: Color depth: 10-bit
[2024:03:30:14:18:24]: Info: Color range: [JPEG]
[2024:03:30:14:18:25]: Info: 
[2024:03:30:14:18:25]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:03:30:14:18:25]: Info: 
[2024:03:30:14:18:25]: Info: Found H.264 encoder: h264_amf [amdvce]
[2024:03:30:14:18:25]: Info: Found HEVC encoder: hevc_amf [amdvce]
[2024:03:30:14:18:25]: Info: Found AV1 encoder: av1_amf [amdvce]
[2024:03:30:14:18:25]: Info: Executing [Desktop]
[2024:03:30:14:18:25]: Info: nvprefs: NvAPI_Initialize() failed, ignore if you don't have NVIDIA video card
[2024:03:30:14:18:25]: Info: CLIENT CONNECTED
[2024:03:30:14:18:27]: Info: 
Device Description : AMD Radeon RX 7900 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x0000744C
Device Video Mem   : 20417 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 15981 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 3840x1080
[2024:03:30:14:18:27]: Info: Active GPU has HAGS enabled
[2024:03:30:14:18:27]: Info: Using realtime GPU priority
[2024:03:30:14:18:27]: Info: Desktop resolution [1920x1080]
[2024:03:30:14:18:27]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:30:14:18:27]: Info: Display refresh rate [60Hz]
[2024:03:30:14:18:27]: Info: Requested frame rate [60fps]
[2024:03:30:14:18:27]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.648438,0.338867]
Green Primary      : [0.282227,0.602539]
Blue Primary       : [0.142578,0.0703125]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:03:30:14:18:27]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:03:30:14:18:27]: Info: SDR color coding [Rec. 601]
[2024:03:30:14:18:27]: Info: Color depth: 8-bit
[2024:03:30:14:18:27]: Info: Color range: [MPEG]
[2024:03:30:14:18:36]: Info: CLIENT DISCONNECTED
gschintgen commented 7 months ago

So the project's maintainer closes your first report and you're just filing it again?

Anyway, you might want to give more details on the one thing that is non-standard: the virtualization aspect and in particular the networking. Is it bridged or routed? Did you check the sunshine docs for the relevant ports? Did you check if your client device running Moonlight can access those ports (notably video) on the sunshine VM? How did you check this?

ReenigneArcher commented 7 months ago

@gschintgen I closed it because they selected random items from the drop down lists.

image

Still, this is a pretty low quality bug report... and probably not really a bug.

gschintgen commented 7 months ago

Ah I see, the report has been edited later on.

Anyway I'm vaguely interested in a VM setup myself, that's why I tried suggesting a few diagnostic steps. (But it does read more like a support request that could be moved to a discussion.)

ReenigneArcher commented 7 months ago

I'll leave it as an issue for now... if anything interesting comes out of it, perhaps the docs can be updated.

eliasstepanik commented 7 months ago

It seems to be a problem with the gpu software because when I tried it on windows running on bare metal I had the same issue. Sadly I can´t test more because I returned the gpus because they are far to expensive for them not to work the way I want them to.