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
Base line
Install Sunshine as a Windows service and make it auto start. After booting, use Start menu to sleep. Wake it up with mouse, behave normal.
Minimum reproducible steps
- Start Sunshine as Windows service.
- Create an application in Sunshine.
- Give it a command. The executable could be anything that terminates by itself, but the smallest could be a program that just sleeps a few seconds then exit. Something like
int main(int argc, char **argv) {
std::this_thread::sleep_for(5s);
return 0;
}
- Uncheck "Continue streaming if the application exits quickly" to make sure Sunshine ends the stream when the command finishes.
- Start a stream. After the command finishes, make sure the Sunshine tray icon no longer shows the "Play" icon.
- Use Start menu to sleep.
- Wake it up with mouse. It's now in a weird state that 1) the screen is off; 2) doesn't respond to any input from keyboard and mouse; 3) doesn't respond to any network request like a ping. The only thing left is to force reboot.
Other tests
It seems the trigger must include a command being in the Sunshine application, and the command terminates itself.
- Stream the "Desktop" application, which can last infinite. Make the client quit the stream. The sleep can be waken up.
- Stream the "Test" application. After it terminates by itself, restart Sunshine. Sleep can wake.
- Stream the "Test" application, but instead of waiting for it to terminate by itself, make the client quit the stream. Sleep can wake.
- Start sunshine.exe directly instead of a Windows service and repeat the steps above. Sleep can wake.
Expected Behavior
Regardless if there is a command in the application, or if client quits or not, the host should be able to sleep then wake afterwards.
Additional Context
There is a similar (and probably related) issue at #1809. But the trigger seems different. Also, I use WIFI.
Host Operating System
Windows
Operating System Version
Windows 11 23H2
Architecture
64 bit
Sunshine commit or version
0.21.0 and tested in nightly. I verified that earlier versions (such as 0.20.0) does not have the problem.
Package
Windows - Scoop (Third Party)
Nightly (29a1b15, Portable)
GPU Type
Nvidia
GPU Model
RTX 2070 Super
GPU Driver/Mesa Version
546.17
Capture Method (Linux Only)
No response
Config
Apps
{
"env": {
"PATH": "$(PATH)"
},
"apps": [
{
"name": "Desktop",
"image-path": "desktop.png"
},
{
"name": "Test",
"output": "",
"cmd": "<path>\test.exe",
"exclude-global-prep-cmd": "false",
"elevated": "false",
"auto-detach": "false",
"image-path": ""
}
]
}
Relevant log output
There is no outstanding log. The last line is just the standard "Process Terminated" line.
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
Base line
Install Sunshine as a Windows service and make it auto start. After booting, use Start menu to sleep. Wake it up with mouse, behave normal.
Minimum reproducible steps
Other tests
It seems the trigger must include a command being in the Sunshine application, and the command terminates itself.
Expected Behavior
Regardless if there is a command in the application, or if client quits or not, the host should be able to sleep then wake afterwards.
Additional Context
There is a similar (and probably related) issue at #1809. But the trigger seems different. Also, I use WIFI.
Host Operating System
Windows
Operating System Version
Windows 11 23H2
Architecture
64 bit
Sunshine commit or version
0.21.0 and tested in nightly. I verified that earlier versions (such as 0.20.0) does not have the problem.
Package
Windows - Scoop (Third Party)
Nightly (29a1b15, Portable)
GPU Type
Nvidia
GPU Model
RTX 2070 Super
GPU Driver/Mesa Version
546.17
Capture Method (Linux Only)
No response
Config
Apps
{ "env": { "PATH": "$(PATH)" }, "apps": [ { "name": "Desktop", "image-path": "desktop.png" }, { "name": "Test", "output": "", "cmd": "<path>\test.exe", "exclude-global-prep-cmd": "false", "elevated": "false", "auto-detach": "false", "image-path": "" } ] }Relevant log output
There is no outstanding log. The last line is just the standard "Process Terminated" line.