LizardByte / Sunshine

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

Immediately disconnects only if a controller is connected #2743

Closed MrTwombly closed 1 week ago

MrTwombly commented 1 week 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

Suddenly started having this issue since a few days ago, never had any trouble beforehand. My stream will immediately disconnect if I have a controller connected.

I'm using the latest versions of both Sunshine and Moonlight with my Steam Link connected to my living room TV. It let's me navigate and connect as normal, it will act like it's connected, but then suddenly stop and take me back to the Steam Link menu, before I can even see my stream.

If I try without a controller, it works fine with just my wireless keyboard connected.

I've tried:

Sunshine log is me connecting firstly with no controller but with my wireless keyboard, which works. Then disconnecting and trying again with a PS4 connected where it automatically disconnects me.

I'm dumbfounded on what else I can try or what even caused this to happen in the first place. Being able to use a controller is 95% of the reason I have this set up so I can play games in my living room and it's driving me crazy! Any advice is appreciated.

Expected Behavior

To be able to use a controller.

Additional Context

No response

Host Operating System

Windows

Operating System Version

11

Architecture

32 bit

Sunshine commit or version

v0.23.1

Package

Windows - installer

GPU Type

Nvidia

GPU Model

Geforce RTX 3060 Ti

GPU Driver/Mesa Version

NVIDIA Studio 555.99

Capture Method

None

Config

.

Apps

No response

Relevant log output

[2024:06:22:18:07:54]: Info: Sunshine version: v0.23.1
[2024:06:22:18:07:54]: Info: nvprefs: No need to modify application profile settings
[2024:06:22:18:07:54]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:06:22:18:07:54]: Info: Compiling shaders...
[2024:06:22:18:07:54]: Info: System tray created
[2024:06:22:18:07:55]: Info: Compiled shaders
[2024:06:22:18:07:55]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:06:22:18:07:55]: Info: Trying encoder [nvenc]
[2024:06:22:18:07:55]: Info: ddprobe.exe [1] [] returned: 0x887A0004
[2024:06:22:18:07:55]: Info: ddprobe.exe [2] [] returned: 0x00000000
[2024:06:22:18:07:55]: Info: Set GPU preference: 2
[2024:06:22:18:07:55]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x000024C9
Device Video Mem   : 8024 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32673 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 1920x0
Virtual Desktop    : 3840x1080
[2024:06:22:18:07:55]: Info: Active GPU has HAGS enabled
[2024:06:22:18:07:55]: Info: Using realtime GPU priority
[2024:06:22:18:07:55]: Info: Desktop resolution [1920x1080]
[2024:06:22:18:07:55]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:07:55]: Info: Display refresh rate [60Hz]
[2024:06:22:18:07:55]: Info: Requested frame rate [60fps]
[2024:06:22:18:07:55]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.651367,0.337891]
Green Primary      : [0.321289,0.614258]
Blue Primary       : [0.154297,0.0634766]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:06:22:18:07:55]: Info: SDR color coding [Rec. 601]
[2024:06:22:18:07:55]: Info: Color depth: 8-bit
[2024:06:22:18:07:55]: Info: Color range: [JPEG]
[2024:06:22:18:07:56]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:06:22:18:07:56]: Info: SDR color coding [Rec. 601]
[2024:06:22:18:07:56]: Info: Color depth: 8-bit
[2024:06:22:18:07:56]: Info: Color range: [JPEG]
[2024:06:22:18:07:56]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:06:22:18:07:56]: Info: SDR color coding [Rec. 601]
[2024:06:22:18:07:56]: Info: Color depth: 8-bit
[2024:06:22:18:07:56]: Info: Color range: [JPEG]
[2024:06:22:18:07:56]: Error: NvEnc: encoding format is not supported by the gpu
[2024:06:22:18:07:56]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x000024C9
Device Video Mem   : 8024 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32673 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 1920x0
Virtual Desktop    : 3840x1080
[2024:06:22:18:07:56]: Info: Active GPU has HAGS enabled
[2024:06:22:18:07:56]: Info: Using realtime GPU priority
[2024:06:22:18:07:56]: Info: Desktop resolution [1920x1080]
[2024:06:22:18:07:56]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:07:56]: Info: Display refresh rate [60Hz]
[2024:06:22:18:07:56]: Info: Requested frame rate [60fps]
[2024:06:22:18:07:56]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.651367,0.337891]
Green Primary      : [0.321289,0.614258]
Blue Primary       : [0.154297,0.0634766]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:06:22:18:07:56]: Info: SDR color coding [Rec. 709]
[2024:06:22:18:07:56]: Info: Color depth: 10-bit
[2024:06:22:18:07:56]: Info: Color range: [JPEG]
[2024:06:22:18:07:56]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2024:06:22:18:07:56]: Info: 
[2024:06:22:18:07:56]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:06:22:18:07:56]: Info: 
[2024:06:22:18:07:56]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:06:22:18:07:56]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:06:22:18:07:56]: Info: Open the Web UI to set your new username and password and getting started
[2024:06:22:18:07:56]: Info: File E:\Program Files\Sunshine\config\sunshine_state.json doesn't exist
[2024:06:22:18:07:56]: Info: Configuration UI available at [https://localhost:47990]
[2024:06:22:18:07:57]: Info: Registered Sunshine mDNS service
[2024:06:22:18:08:05]: Info: Web UI: [127.0.0.1] -- not authorized
[2024:06:22:18:08:12]: Info: New credentials have been created
[2024:06:22:18:08:17]: Info: Web UI: [127.0.0.1] -- not authorized
[2024:06:22:18:08:17]: Info: Web UI: [127.0.0.1] -- not authorized
[2024:06:22:18:08:36]: Warning: SSL Verification error :: ok
[2024:06:22:18:08:39]: Warning: SSL Verification error :: ok
[2024:06:22:18:08:42]: Warning: SSL Verification error :: ok
[2024:06:22:18:08:46]: Warning: SSL Verification error :: ok
[2024:06:22:18:08:49]: Warning: SSL Verification error :: ok
[2024:06:22:18:09:08]: Info: Encoder reenumeration is required
[2024:06:22:18:09:08]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:06:22:18:09:08]: Info: Trying encoder [nvenc]
[2024:06:22:18:09:08]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x000024C9
Device Video Mem   : 8024 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32673 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 1920x0
Virtual Desktop    : 3840x1080
[2024:06:22:18:09:08]: Info: Active GPU has HAGS enabled
[2024:06:22:18:09:08]: Info: Using realtime GPU priority
[2024:06:22:18:09:08]: Info: Desktop resolution [1920x1080]
[2024:06:22:18:09:08]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:09:08]: Info: Display refresh rate [60Hz]
[2024:06:22:18:09:08]: Info: Requested frame rate [60fps]
[2024:06:22:18:09:08]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.651367,0.337891]
Green Primary      : [0.321289,0.614258]
Blue Primary       : [0.154297,0.0634766]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:06:22:18:09:08]: Info: SDR color coding [Rec. 601]
[2024:06:22:18:09:08]: Info: Color depth: 8-bit
[2024:06:22:18:09:08]: Info: Color range: [JPEG]
[2024:06:22:18:09:08]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:06:22:18:09:08]: Info: SDR color coding [Rec. 601]
[2024:06:22:18:09:08]: Info: Color depth: 8-bit
[2024:06:22:18:09:08]: Info: Color range: [JPEG]
[2024:06:22:18:09:08]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:06:22:18:09:08]: Info: SDR color coding [Rec. 601]
[2024:06:22:18:09:08]: Info: Color depth: 8-bit
[2024:06:22:18:09:08]: Info: Color range: [JPEG]
[2024:06:22:18:09:08]: Error: NvEnc: encoding format is not supported by the gpu
[2024:06:22:18:09:08]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x000024C9
Device Video Mem   : 8024 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32673 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 1920x0
Virtual Desktop    : 3840x1080
[2024:06:22:18:09:08]: Info: Active GPU has HAGS enabled
[2024:06:22:18:09:08]: Info: Using realtime GPU priority
[2024:06:22:18:09:08]: Info: Desktop resolution [1920x1080]
[2024:06:22:18:09:08]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:09:08]: Info: Display refresh rate [60Hz]
[2024:06:22:18:09:08]: Info: Requested frame rate [60fps]
[2024:06:22:18:09:08]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.651367,0.337891]
Green Primary      : [0.321289,0.614258]
Blue Primary       : [0.154297,0.0634766]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:06:22:18:09:08]: Info: SDR color coding [Rec. 709]
[2024:06:22:18:09:08]: Info: Color depth: 10-bit
[2024:06:22:18:09:08]: Info: Color range: [JPEG]
[2024:06:22:18:09:08]: Info: NvEnc: created encoder P1 10-bit two-pass rfi
[2024:06:22:18:09:08]: Info: 
[2024:06:22:18:09:08]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2024:06:22:18:09:08]: Info: 
[2024:06:22:18:09:08]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2024:06:22:18:09:08]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2024:06:22:18:09:08]: Info: Executing [Desktop]
[2024:06:22:18:09:08]: Info: nvprefs: No need to modify application profile settings
[2024:06:22:18:09:08]: Info: nvprefs: No need to modify global profile settings
[2024:06:22:18:09:08]: Info: CLIENT CONNECTED
[2024:06:22:18:09:09]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x000024C9
Device Video Mem   : 8024 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32673 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 3840x1080
[2024:06:22:18:09:09]: Info: Active GPU has HAGS enabled
[2024:06:22:18:09:09]: Info: Using realtime GPU priority
[2024:06:22:18:09:09]: Info: Desktop resolution [1920x1080]
[2024:06:22:18:09:09]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:09:09]: Info: Display refresh rate [144Hz]
[2024:06:22:18:09:09]: Info: Requested frame rate [60fps]
[2024:06:22:18:09:09]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.664062,0.308594]
Green Primary      : [0.275391,0.669922]
Blue Primary       : [0.154297,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:06:22:18:09:09]: Info: SDR color coding [Rec. 709]
[2024:06:22:18:09:09]: Info: Color depth: 8-bit
[2024:06:22:18:09:09]: Info: Color range: [MPEG]
[2024:06:22:18:09:09]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:09:09]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:06:22:18:09:17]: Info: CLIENT DISCONNECTED
[2024:06:22:18:09:39]: Info: nvprefs: No need to modify application profile settings
[2024:06:22:18:09:39]: Info: nvprefs: No need to modify global profile settings
[2024:06:22:18:09:39]: Info: CLIENT CONNECTED
[2024:06:22:18:09:40]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x000024C9
Device Video Mem   : 8024 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32673 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 3840x1080
[2024:06:22:18:09:40]: Info: Active GPU has HAGS enabled
[2024:06:22:18:09:40]: Info: Using realtime GPU priority
[2024:06:22:18:09:40]: Info: Desktop resolution [1920x1080]
[2024:06:22:18:09:40]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:09:40]: Info: Display refresh rate [144Hz]
[2024:06:22:18:09:40]: Info: Requested frame rate [60fps]
[2024:06:22:18:09:40]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.664062,0.308594]
Green Primary      : [0.275391,0.669922]
Blue Primary       : [0.154297,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:06:22:18:09:40]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:09:40]: Info: SDR color coding [Rec. 709]
[2024:06:22:18:09:40]: Info: Color depth: 8-bit
[2024:06:22:18:09:40]: Info: Color range: [MPEG]
[2024:06:22:18:09:40]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:06:22:18:09:45]: Info: CLIENT DISCONNECTED
[2024:06:22:18:35:35]: Info: Executing: [steam://open/bigpicture] in [""]
[2024:06:22:18:35:35]: Info: Resolved user-provided command 'steam://open/bigpicture' to '"E:\Program Files (x86)\Steam\steam.exe" -- "steam://open/bigpicture"'
[2024:06:22:18:35:35]: Info: steam://open/bigpicture running with PID 9800
[2024:06:22:18:35:35]: Info: App exited gracefully within 5 seconds of launch. Treating the app as a detached command.
[2024:06:22:18:35:35]: Info: Adjust this behavior in the Applications tab or apps.json if this is not what you want.
[2024:06:22:18:35:35]: Info: nvprefs: No need to modify application profile settings
[2024:06:22:18:35:35]: Info: nvprefs: No need to modify global profile settings
[2024:06:22:18:35:35]: Info: CLIENT CONNECTED
[2024:06:22:18:35:36]: Info: 
Device Description : NVIDIA GeForce RTX 3060 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x000024C9
Device Video Mem   : 8024 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 32673 MiB
Feature Level      : 0x0000B100
Capture size       : 1920x1080
Offset             : 0x0
Virtual Desktop    : 3840x1080
[2024:06:22:18:35:36]: Info: Active GPU has HAGS enabled
[2024:06:22:18:35:36]: Info: Using realtime GPU priority
[2024:06:22:18:35:36]: Info: Desktop resolution [1920x1080]
[2024:06:22:18:35:36]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:35:36]: Info: Display refresh rate [144Hz]
[2024:06:22:18:35:36]: Info: Requested frame rate [60fps]
[2024:06:22:18:35:36]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.664062,0.308594]
Green Primary      : [0.275391,0.669922]
Blue Primary       : [0.154297,0.0507812]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.5 nits
Max Luminance      : 270 nits
Max Full Luminance : 270 nits
[2024:06:22:18:35:36]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2024:06:22:18:35:36]: Info: SDR color coding [Rec. 709]
[2024:06:22:18:35:36]: Info: Color depth: 8-bit
[2024:06:22:18:35:36]: Info: Color range: [MPEG]
[2024:06:22:18:35:36]: Info: NvEnc: created encoder P1 two-pass rfi
[2024:06:22:18:35:41]: Info: CLIENT DISCONNECTED
ReenigneArcher commented 1 week ago

Sounds like a Moonlight issue?

MrTwombly commented 1 week ago

Sounds like a Moonlight issue?

Oh damn, my bad. I'll raise this over at Moonlight. Is there a way of identifying that this is specifically a Moonlight issue?

MrTwombly commented 1 week ago

Well I'm an idiot. Turns out my Steam Link was not up to date as I thought and the issue was fixed as soon as I updated it. D'oh, knew it'd be something simple.