Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sunshine randomly crashes & restarts on specific hardware #1370

Closed
3 tasks done
ShePearl opened this issue Jun 14, 2023 · 8 comments · Fixed by #1962
Closed
3 tasks done

Sunshine randomly crashes & restarts on specific hardware #1370

ShePearl opened this issue Jun 14, 2023 · 8 comments · Fixed by #1962

Comments

@ShePearl
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

Hello.
Many thanks for great program.

Sunshine v0.20.0 randomly crashes (& restarts) on GTX 1080 Ti (Pascal) system straming in HEVC to Chromecast (Moonlight). When HDR is enabled, the freuquency of Sunshine crashing (& restarting) increases. I've tried number of different Nvidia GeForce drivers: the latest one being v536.09 They all exhibit the same crashing (& restarting) problem on Sunshine end.

However, the same Sunshine v0.20.0 and the same PC (i7-6700K + GTX 1080 Ti) shows no crashing problem when streaming to Intel (QuickSync) laptop and other PCs. Hence, I suspect that this issue is something to do with Sunshine on GTX 1080 Ti (Pascal) streaming to Moonlight on Chromecast.
Also, I've Sunshine v0.20.0 installed on RTX 3090 and RTX 4090 PCs. These show no stability (Sunshine crashing & restarting) problem streaming to the Chromecast. They work great in both SDR and HDR.

So, to sum it up,

  1. Sunshine v0.20.0 on RTX 3090 and/or RTX 4090 streaming to Moonlight on Intel CPU(and iGPU) laptop works fine.
  2. Sunshine v0.20.0 on RTX 3090 and/or RTX 4090 streaming to Moonlight on Chromecast works fine.
  3. Sunshine v0.20.0 on GTX 1080 Ti streaming to Moonlight on Intel CPU(and iGPU) laptop works fine.
  4. Sunshine v0.20.0 on GTX 1080 Ti streaming to Moonlight on Chromecast randomly crashes & restarts.
    OS installed is 64-Bit Windows 10 Pro 22H2 Build 19045.3031

The last but not least, I've just checked sunshine.log file for the first time and it only shows the log for today (June 14th).

Thank you.

Expected Behavior

No response

Additional Context

No response

Host Operating System

Windows

Operating System Version

Windows 10 Pro 22H2 Build 19045.3031

Architecture

64 bit

Sunshine commit or version

v0.20.0

Package

Windows - installer

GPU Type

Nvidia

GPU Model

GTX 1080 Ti (Pascal)

GPU Driver/Mesa Version

v536.09 (also tried different versions)

Capture Method (Linux Only)

No response

Config

upnp = enabled
resolutions = [
    352x240,
    480x360,
    858x480,
    1280x720,
    1920x1080,
    3840x2160,
    2560x1440
]
fps = [10,30,60,90,120,165]
encoder = nvenc
hevc_mode = 3
adapter_name = NVIDIA GeForce GTX 1080 Ti
nv_preset = p3

Apps

No response

Relevant log output

[2023:06:14:15:22:17]: Info: Sunshine version: 0.20.0
[2023:06:14:15:22:17]: Info: Compiling shaders...
[2023:06:14:15:22:17]: Info: Compiled shaders
[2023:06:14:15:22:17]: Info: Trying encoder [nvenc]
[2023:06:14:15:22:18]: Info: ddprobe.exe [1] [] returned: 0x80070005
[2023:06:14:15:22:18]: Info: Set GPU preference: 1
[2023:06:14:15:22:18]: Info: System tray created
[2023:06:14:15:22:19]: Info: 
Device Description : NVIDIA GeForce GTX 1080 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B06
Device Video Mem   : 11120 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8174 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:06:14:15:22:19]: Info: Desktop resolution [2560x1440]
[2023:06:14:15:22:19]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:06:14:15:22:19]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.3915 nits
Max Luminance      : 408.76 nits
Max Full Luminance : 408.76 nits
[2023:06:14:15:22:19]: Info: SDR color coding [Rec. 601]
[2023:06:14:15:22:19]: Info: Color range: [JPEG]
[2023:06:14:15:22:19]: Error: Could not open codec [h264_nvenc]: Function not implemented
[2023:06:14:15:22:20]: Info: 
Device Description : NVIDIA GeForce GTX 1080 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B06
Device Video Mem   : 11120 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8174 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:06:14:15:22:20]: Warning: DuplicateOutput1 Failed [0x80070005]
[2023:06:14:15:22:21]: Info: 
Device Description : NVIDIA GeForce GTX 1080 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B06
Device Video Mem   : 11120 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8174 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:06:14:15:22:21]: Info: Desktop resolution [2560x1440]
[2023:06:14:15:22:21]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:06:14:15:22:21]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.3915 nits
Max Luminance      : 408.76 nits
Max Full Luminance : 408.76 nits
[2023:06:14:15:22:21]: Info: SDR color coding [Rec. 601]
[2023:06:14:15:22:21]: Info: Color range: [JPEG]
[2023:06:14:15:22:22]: Info: 
Device Description : NVIDIA GeForce GTX 1080 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B06
Device Video Mem   : 11120 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8174 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:06:14:15:22:22]: Info: Desktop resolution [2560x1440]
[2023:06:14:15:22:22]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:06:14:15:22:22]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.3915 nits
Max Luminance      : 408.76 nits
Max Full Luminance : 408.76 nits
[2023:06:14:15:22:22]: Info: SDR color coding [Rec. 601]
[2023:06:14:15:22:22]: Info: Color range: [JPEG]
[2023:06:14:15:22:22]: Error: Could not open codec [hevc_nvenc]: Function not implemented
[2023:06:14:15:22:22]: Info: 
Device Description : NVIDIA GeForce GTX 1080 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B06
Device Video Mem   : 11120 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8174 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:06:14:15:22:22]: Info: Desktop resolution [2560x1440]
[2023:06:14:15:22:22]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:06:14:15:22:22]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.3915 nits
Max Luminance      : 408.76 nits
Max Full Luminance : 408.76 nits
[2023:06:14:15:22:22]: Info: SDR color coding [Rec. 601]
[2023:06:14:15:22:22]: Info: Color range: [JPEG]
[2023:06:14:15:22:23]: Info: 
Device Description : NVIDIA GeForce GTX 1080 Ti
Device Vendor ID   : 0x000010DE
Device Device ID   : 0x00001B06
Device Video Mem   : 11120 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 8174 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 0x0
Virtual Desktop    : 2560x1440
[2023:06:14:15:22:23]: Info: Desktop resolution [2560x1440]
[2023:06:14:15:22:23]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:06:14:15:22:23]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 8
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.3915 nits
Max Luminance      : 408.76 nits
Max Full Luminance : 408.76 nits
[2023:06:14:15:22:23]: Info: SDR color coding [Rec. 709]
[2023:06:14:15:22:23]: Info: Color range: [JPEG]
[2023:06:14:15:22:23]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:06:14:15:22:23]: Info: 
[2023:06:14:15:22:23]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:06:14:15:22:23]: Info: 
[2023:06:14:15:22:23]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:06:14:15:22:23]: Info: Configuration UI available at [https://localhost:47990]
[2023:06:14:15:22:24]: Info: Registered Sunshine mDNS service
[2023:06:14:15:22:25]: Info: Completed UPnP port mappings to 192.168.1.103 via http://192.168.1.1:52763/rootDesc.xml
[2023:06:14:15:24:55]: Info: Interrupt handler called
[2023:06:14:15:24:55]: Info: Unmapping UPNP ports...
[2023:06:14:15:24:56]: Info: Unregistered Sunshine mDNS service
@XJIOP
Copy link

XJIOP commented Aug 4, 2023

Same thing, after launch Moonlight on CCwGT my PC get a BSOD (system thread exception not handled).

Tried HEVC and Software encoder, same system crash.

Windows 10 22H2 (Build 19045.3271)
RTX 4070Ti (Drivers 536.67)

[2023:08:04:13:25:50]: Info: Sunshine version: 0.20.0
[2023:08:04:13:25:50]: Info: Compiling shaders...
[2023:08:04:13:25:50]: Info: Compiled shaders
[2023:08:04:13:25:50]: Info: System tray created
[2023:08:04:13:25:50]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:08:04:13:25:50]: Info: Trying encoder [nvenc]
[2023:08:04:13:25:50]: Error: Failed to sync desktop to thread [0x000000AA]
[2023:08:04:13:25:50]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2023:08:04:13:25:50]: Info: Set GPU preference: 1
[2023:08:04:13:25:51]: Info:
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002782
Device Video Mem : 12010 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16343 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:08:04:13:25:51]: Info: Desktop resolution [2560x1440]
[2023:08:04:13:25:51]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:04:13:25:51]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.150391,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:08:04:13:25:51]: Info: SDR color coding [Rec. 601]
[2023:08:04:13:25:51]: Info: Color range: [JPEG]
[2023:08:04:13:25:51]: Error: Failed to sync desktop to thread [0x000000AA]
[2023:08:04:13:25:52]: Info:
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002782
Device Video Mem : 12010 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16343 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:08:04:13:25:52]: Info: Desktop resolution [2560x1440]
[2023:08:04:13:25:52]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:04:13:25:52]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.150391,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:08:04:13:25:52]: Info: SDR color coding [Rec. 601]
[2023:08:04:13:25:52]: Info: Color range: [JPEG]
[2023:08:04:13:25:52]: Error: Failed to sync desktop to thread [0x000000AA]
[2023:08:04:13:25:53]: Info:
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002782
Device Video Mem : 12010 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16343 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:08:04:13:25:53]: Info: Desktop resolution [2560x1440]
[2023:08:04:13:25:53]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:04:13:25:53]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.150391,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:08:04:13:25:53]: Info: SDR color coding [Rec. 709]
[2023:08:04:13:25:53]: Info: Color range: [JPEG]
[2023:08:04:13:25:53]: Info:
[2023:08:04:13:25:53]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:08:04:13:25:53]: Info:
[2023:08:04:13:25:53]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:08:04:13:25:53]: Info: Configuration UI available at [https://localhost:47990]
[2023:08:04:13:25:53]: Info: Registered Sunshine mDNS service
[2023:08:04:13:25:54]: Info: Web UI: [127.0.0.1] -- not authorized
[2023:08:04:13:26:37]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:08:04:13:26:37]: Info: Trying encoder [nvenc]
[2023:08:04:13:26:37]: Info:
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002782
Device Video Mem : 12010 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16343 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:08:04:13:26:37]: Info: Desktop resolution [2560x1440]
[2023:08:04:13:26:37]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:04:13:26:37]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.150391,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:08:04:13:26:37]: Info: SDR color coding [Rec. 601]
[2023:08:04:13:26:37]: Info: Color range: [JPEG]
[2023:08:04:13:26:38]: Info:
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002782
Device Video Mem : 12010 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16343 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:08:04:13:26:38]: Info: Desktop resolution [2560x1440]
[2023:08:04:13:26:38]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:04:13:26:38]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.150391,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:08:04:13:26:38]: Info: SDR color coding [Rec. 601]
[2023:08:04:13:26:38]: Info: Color range: [JPEG]
[2023:08:04:13:26:39]: Info:
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002782
Device Video Mem : 12010 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16343 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2023:08:04:13:26:39]: Info: Desktop resolution [2560x1440]
[2023:08:04:13:26:39]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:04:13:26:39]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.150391,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:08:04:13:26:39]: Info: SDR color coding [Rec. 709]
[2023:08:04:13:26:39]: Info: Color range: [JPEG]
[2023:08:04:13:26:39]: Info:
[2023:08:04:13:26:39]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:08:04:13:26:39]: Info:
[2023:08:04:13:26:39]: Info: Found encoder nvenc: [h264_nvenc, hevc_nvenc]
[2023:08:04:13:26:39]: Info: Executing Do Cmd: ["F:\Portable\Gaming\Sunshine\scripts\1920x1080.bat"]
[2023:08:04:13:26:39]: Info: "F:\Portable\Gaming\Sunshine\scripts\1920x1080.bat" running with PID 14872
[2023:08:04:13:26:39]: Info: Executing Do Cmd: ["C:\Program Files\Playnite\Playnite.DesktopApp.exe" --startfullscreen]
[2023:08:04:13:26:39]: Info: "C:\Program Files\Playnite\Playnite.DesktopApp.exe" --startfullscreen running with PID 5892
[2023:08:04:13:26:40]: Info: Executing [Desktop]
[2023:08:04:13:26:40]: Info: WLAN interface 0 is now in low latency mode
[2023:08:04:13:26:40]: Info: CLIENT CONNECTED
[2023:08:04:13:26:41]: Info:
Device Description : NVIDIA GeForce RTX 4070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002782
Device Video Mem : 12010 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16343 MiB
Feature Level : 0x0000B100
Capture size : 1920x1080
Offset : 0x0
Virtual Desktop : 1920x1080
[2023:08:04:13:26:41]: Info: Desktop resolution [1920x1080]
[2023:08:04:13:26:41]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:04:13:26:41]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.639648,0.330078]
Green Primary : [0.299805,0.599609]
Blue Primary : [0.150391,0.0595703]
White Point : [0.3125,0.329102]
Min Luminance : 0.5 nits
Max Luminance : 270 nits
Max Full Luminance : 270 nits
[2023:08:04:13:26:41]: Info: Capture format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2023:08:04:13:26:41]: Info: SDR color coding [Rec. 709]
[2023:08:04:13:26:41]: Info: Color range: [MPEG]

@XJIOP
Copy link

XJIOP commented Aug 4, 2023

Found a system crash (BSOD) issue after MEMORY.DMP analysis, and it is caused by ViGEmBus.

@ReenigneArcher
Copy link
Member

@zerobulfa
Copy link

got the same BSOD with ViGEmBus after sleep - sadly this project is dicontinued.

workaround should be to restart sunshine server before sleep...
nefarius/ViGEmBus#160

win core dump debugger snipped:

SYMBOL_NAME:  ViGEmBus+b226
MODULE_NAME: ViGEmBus
IMAGE_NAME:  ViGEmBus.sys
STACK_COMMAND:  .cxr; .ecxr ; kb
BUCKET_ID_FUNC_OFFSET:  b226
FAILURE_BUCKET_ID:  0x10D_4_ViGEmBus!unknown_function
OSPLATFORM_TYPE:  x64
OSNAME:  Windows 10
FAILURE_ID_HASH:  {a70228d2-306a-88a1-c0ff-b4f29a6d4339}
Followup:     MachineOwner

@Dim0N22
Copy link

Dim0N22 commented Dec 31, 2023

I have the same issue with ViGEmBus. The project is discontinued, could anything be done from the Sunshine side?

In nefarius/ViGEmBus#160 (comment) someone mentioned restarting Sunshine service helps. Could this be automated in Sunshine instead?

@zerobulfa
Copy link

Hi @Dim0N22,

not so great, but I have added for me a workaround until this is "solved".

I have create a new Application in Sunshine and added the following (two) detached commands:
cmd /C "timeout 1 && net stop SunshineService && net start SunshineService"
cmd /C "timeout 15 && C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState"
(with "Run as administrator" option")

This will restart the SunshineService (stop/start) and set my host (Win11) to suspend.
So, after each session I quit the current one in Moonlight and start the application with the commands.

maybe it helps or give you some ideas

@cgutman
Copy link
Collaborator

cgutman commented Jan 1, 2024

Please try this build from #1962 and see if the BSOD still occurs: https://github.com/LizardByte/Sunshine/actions/runs/7374070696/artifacts/1141422965

@Dim0N22
Copy link

Dim0N22 commented Jan 1, 2024

I quickly tested a similar case: connected with a gamepad, checked that it works, disconnected, manually put computer to sleep and woke up. It didn't BSOD.

I didn't put it to sleep manually before, but I believe it shouldn't matter. Seemingly it works, I'll post if the same BSOD happens again.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants