LizardByte / Sunshine

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

Warning: WSASendMsg() failed: 10022 #3043

Open yanis8787 opened 3 weeks ago

yanis8787 commented 3 weeks ago

Is there an existing issue for this?

Is your issue described in the documentation?

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

This issue is present in the latest pre-release

Describe the Bug

iOS can connect normally within the local area network (LAN), but when attempting to connect over the internet (using iOS or macOS), the following error occurs. Port forwarding has been correctly configured.

局域网中的 iOS 可以正常连接,但在远程串流中(使用 iOS 或 macOS)尝试连接时会出现以下错误。端口转发已正确配置。

Expected Behavior

No response

Additional Context

NUC11PHi7

Intel® Iris Xe Graphics NVidia RTX 2060

Host Operating System

Windows

Operating System Version

Windows 11 23H2,22631.4037

Architecture

64 bit

Sunshine commit or version

Version v2024.818.234424

Package

Windows - installer

GPU Type

Nvidia

GPU Model

2060

GPU Driver/Mesa Version

32.0.15.6081

Capture Method

None

Config

locale = zh
upnp = enabled
wan_encryption_mode = 0

Apps

{
  "env": {},
  "apps": [
    {
      "name": "Desktop",
      "image-path": "desktop.png"
    },
    {
      "name": "Steam Big Picture",
      "cmd": "steam://open/bigpicture",
      "auto-detach": "true",
      "wait-all": "true",
      "image-path": "steam.png"
    }
  ]
}

Relevant log output

[2024-08-19 12:03:02.513]: Info: nvprefs: No need to modify application profile settings
[2024-08-19 12:03:02.513]: Info: nvprefs: No need to modify global profile settings
[2024-08-19 12:03:02.821]: Info: Changed virtual audio sink format to [S32 48000 2.0]
[2024-08-19 12:03:02.848]: Info: 
Device Description : NVIDIA GeForce RTX 2060
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001F15
Device Video Mem   : 5955 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32615 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 1920x1080
[2024-08-19 12:03:02.848]: Info: Active GPU has HAGS enabled
[2024-08-19 12:03:02.848]: Info: Using realtime GPU priority
[2024-08-19 12:03:02.848]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.625,0.339844]
Green Primary      : [0.280273,0.594727]
Blue Primary       : [0.155273,0.0703125]
White Point        : [0.283203,0.297852]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024-08-19 12:03:02.849]: Info: Desktop resolution [1920x1080]
[2024-08-19 12:03:02.849]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-08-19 12:03:02.849]: Info: Display refresh rate [60Hz]
[2024-08-19 12:03:02.849]: Info: Requested frame rate [60fps]
[2024-08-19 12:03:02.850]: Info: Creating encoder [hevc_nvenc]
[2024-08-19 12:03:02.850]: Info: Color coding: SDR (Rec. 601)
[2024-08-19 12:03:02.850]: Info: Color depth: 8-bit
[2024-08-19 12:03:02.850]: Info: Color range: MPEG
[2024-08-19 12:03:02.855]: Info: Audio capture format is [F32 48000 2.0]
[2024-08-19 12:03:02.856]: Info: Opus initialized: 48 kHz, 2 channels, 96 kbps (total), LOWDELAY
[2024-08-19 12:03:02.871]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024-08-19 12:03:02.901]: Info: NvEnc: created encoder HEVC P1 two-pass rfi
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
[2024-08-19 12:03:03.098]: Warning: WSASendMsg() failed: 10022
yanis8787 commented 3 weeks ago

[2024-08-19 12:10:23.324]: Info: Sunshine version: v2024.818.234424 [2024-08-19 12:10:23.486]: Info: nvprefs: No need to modify application profile settings [2024-08-19 12:10:23.486]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile [2024-08-19 12:10:23.532]: Info: Compiling shaders... [2024-08-19 12:10:23.709]: Info: Compiled shaders [2024-08-19 12:10:23.715]: Warning: Gamepad x360 is disabled due to gamepads.vigem-not-available [2024-08-19 12:10:23.715]: Warning: Gamepad ds4 is disabled due to gamepads.vigem-not-available [2024-08-19 12:10:23.715]: Warning: No gamepad input is available [2024-08-19 12:10:23.715]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2024-08-19 12:10:23.715]: Info: Trying encoder [nvenc] [2024-08-19 12:10:23.820]: Info: ddprobe.exe [1] [] returned: 0x887A0004 [2024-08-19 12:10:23.984]: Info: ddprobe.exe [2] [] returned: 0x00000000 [2024-08-19 12:10:23.985]: Info: Set GPU preference: 2

Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024-08-19 12:10:24.170: Info: Active GPU has HAGS enabled 2024-08-19 12:10:24.170: Info: Using realtime GPU priority

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:10:24.172]: Info: Desktop resolution [1920x1080] [2024-08-19 12:10:24.172]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:10:24.173]: Info: Display refresh rate [60Hz] [2024-08-19 12:10:24.173]: Info: Requested frame rate [60fps] [2024-08-19 12:10:24.173]: Info: Creating encoder [h264_nvenc] [2024-08-19 12:10:24.173]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:10:24.173]: Info: Color depth: 8-bit [2024-08-19 12:10:24.173]: Info: Color range: JPEG [2024-08-19 12:10:24.225]: Info: NvEnc: created encoder H.264 P1 two-pass rfi [2024-08-19 12:10:24.255]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:10:24.255]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:10:24.255]: Info: Color depth: 8-bit [2024-08-19 12:10:24.255]: Info: Color range: JPEG [2024-08-19 12:10:24.303]: Info: NvEnc: created encoder HEVC P1 two-pass rfi [2024-08-19 12:10:24.333]: Info: Creating encoder [av1_nvenc] [2024-08-19 12:10:24.333]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:10:24.333]: Info: Color depth: 8-bit [2024-08-19 12:10:24.333]: Info: Color range: JPEG [2024-08-19 12:10:24.354]: Error: NvEnc: encoding format is not supported by the gpu [2024-08-19 12:10:24.361]: Info: Creating encoder [h264_nvenc] [2024-08-19 12:10:24.362]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:10:24.362]: Info: Color depth: 8-bit [2024-08-19 12:10:24.362]: Info: Color range: JPEG [2024-08-19 12:10:24.420]: Info: NvEnc: created encoder H.264 P1 yuv444 two-pass rfi

Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024-08-19 12:10:24.614: Info: Active GPU has HAGS enabled 2024-08-19 12:10:24.614: Info: Using realtime GPU priority

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits 2024-08-19 12:10:24.614: Info: Desktop resolution 1920x1080: Info: Desktop format DXGI_FORMAT_B8G8R8A8_UNORM: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps] [2024-08-19 12:10:24.615]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:10:24.615]: Info: Color coding: SDR (Rec. 709) [2024-08-19 12:10:24.615]: Info: Color depth: 10-bit [2024-08-19 12:10:24.615]: Info: Color range: JPEG [2024-08-19 12:10:24.787]: Info: NvEnc: created encoder HEVC P1 yuv444 10-bit two-pass rfi

2024-08-19 12:10:24.845: Info: // Ignore any errors mentioned above, they are not relevant. //

2024-08-19 12:10:24.845: Info: Found H.264 encoder: h264_nvenc nvenc: Info: Found HEVC encoder: hevc_nvenc [nvenc] [2024-08-19 12:10:24.869]: Info: Configuration UI available at [https://localhost:47990] [2024-08-19 12:10:25.622]: Info: Registered Sunshine mDNS service [2024-08-19 12:10:33.060]: Error: Unknown status [2024-08-19 12:12:41.241]: Error: Unknown status [2024-08-19 12:14:49.470]: Error: Unknown status [2024-08-19 12:16:41.193]: Info: Encoder reenumeration is required [2024-08-19 12:16:41.193]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2024-08-19 12:16:41.193]: Info: Trying encoder [nvenc]

Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024-08-19 12:16:41.353: Info: Active GPU has HAGS enabled 2024-08-19 12:16:41.353: Info: Using realtime GPU priority

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:16:41.354]: Info: Desktop resolution [1920x1080] [2024-08-19 12:16:41.354]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:16:41.354]: Info: Display refresh rate [60Hz] [2024-08-19 12:16:41.354]: Info: Requested frame rate [60fps] [2024-08-19 12:16:41.354]: Info: Creating encoder [h264_nvenc] [2024-08-19 12:16:41.354]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:41.354]: Info: Color depth: 8-bit [2024-08-19 12:16:41.354]: Info: Color range: JPEG [2024-08-19 12:16:41.402]: Info: NvEnc: created encoder H.264 P1 two-pass rfi [2024-08-19 12:16:41.430]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:16:41.431]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:41.431]: Info: Color depth: 8-bit [2024-08-19 12:16:41.431]: Info: Color range: JPEG [2024-08-19 12:16:41.485]: Info: NvEnc: created encoder HEVC P1 two-pass rfi [2024-08-19 12:16:41.521]: Info: Creating encoder [av1_nvenc] [2024-08-19 12:16:41.521]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:41.521]: Info: Color depth: 8-bit [2024-08-19 12:16:41.521]: Info: Color range: JPEG [2024-08-19 12:16:41.543]: Error: NvEnc: encoding format is not supported by the gpu [2024-08-19 12:16:41.551]: Info: Creating encoder [h264_nvenc] [2024-08-19 12:16:41.551]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:41.551]: Info: Color depth: 8-bit [2024-08-19 12:16:41.551]: Info: Color range: JPEG [2024-08-19 12:16:41.597]: Info: NvEnc: created encoder H.264 P1 yuv444 two-pass rfi

Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024-08-19 12:16:41.793: Info: Active GPU has HAGS enabled 2024-08-19 12:16:41.793: Info: Using realtime GPU priority

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:16:41.794]: Info: Desktop resolution [1920x1080] [2024-08-19 12:16:41.794]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:16:41.794]: Info: Display refresh rate [60Hz] [2024-08-19 12:16:41.794]: Info: Requested frame rate [60fps] [2024-08-19 12:16:41.794]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:16:41.794]: Info: Color coding: SDR (Rec. 709) [2024-08-19 12:16:41.794]: Info: Color depth: 10-bit [2024-08-19 12:16:41.794]: Info: Color range: JPEG [2024-08-19 12:16:41.910]: Info: NvEnc: created encoder HEVC P1 yuv444 10-bit two-pass rfi

2024-08-19 12:16:41.966: Info: // Ignore any errors mentioned above, they are not relevant. //

2024-08-19 12:16:41.966: Info: Found H.264 encoder: h264_nvenc nvenc: Info: Found HEVC encoder: hevc_nvenc nvenc: Info: Executing [Desktop] [2024-08-19 12:16:42.584]: Info: nvprefs: No need to modify application profile settings [2024-08-19 12:16:42.584]: Info: nvprefs: No need to modify global profile settings [2024-08-19 12:16:42.639]: Info: Changed virtual audio sink format to [S32 48000 2.0] [2024-08-19 12:16:42.684]: Info: Audio capture format is [F32 48000 2.0] [2024-08-19 12:16:42.685]: Info: Opus initialized: 48 kHz, 2 channels, 96 kbps (total), LOWDELAY

Device Description : NVIDIA GeForce RTX 2060 Device Vendor ID : 0x000010DE Device Device ID : 0x00001F15 Device Video Mem : 5955 MiB Device Sys Mem : 0 MiB Share Sys Mem : 32615 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024-08-19 12:16:42.900: Info: Active GPU has HAGS enabled 2024-08-19 12:16:42.900: Info: Using realtime GPU priority

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0.625,0.339844] Green Primary : [0.280273,0.594727] Blue Primary : [0.155273,0.0703125] White Point : [0.283203,0.297852] Min Luminance : 0.5 nits Max Luminance : 270 nits Max Full Luminance : 270 nits [2024-08-19 12:16:42.901]: Info: Desktop resolution [1920x1080] [2024-08-19 12:16:42.901]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:16:42.901]: Info: Display refresh rate [60Hz] [2024-08-19 12:16:42.901]: Info: Requested frame rate [60fps] [2024-08-19 12:16:42.902]: Info: Creating encoder [hevc_nvenc] [2024-08-19 12:16:42.902]: Info: Color coding: SDR (Rec. 601) [2024-08-19 12:16:42.902]: Info: Color depth: 8-bit [2024-08-19 12:16:42.902]: Info: Color range: MPEG [2024-08-19 12:16:42.921]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM] [2024-08-19 12:16:42.952]: Info: NvEnc: created encoder HEVC P1 two-pass rfi [2024-08-19 12:16:43.148]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.149]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.260]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.260]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.260]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.261]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022 [2024-08-19 12:16:43.364]: Warning: WSASendMsg() failed: 10022

ReenigneArcher commented 3 weeks ago

Does the latest stable work?

Reference: https://github.com/LizardByte/Sunshine/pull/2890

yanis8787 commented 3 weeks ago

Sunshine's stable version doesn’t work online but does on LAN. I think it might be a graphics card issue. With integrated graphics, it briefly shows a black screen with the cursor before disconnecting. With NVIDIA, it times out and disconnects. RD Client from Microsoft works fine both online and on LAN.

AYJk commented 3 weeks ago

same issue.