Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Fatal: Unable to find display or encoder during startup. Fatal: Please check that a display is connected and powered on.

Open Contopaxi opened this issue 1 year ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your issue described in the documentation?

  • [X] I have read the documentation

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

I didn't read the issue template

Describe the Bug

On first start sunshine does not work and I am forced to force close and restart from within sunshine's browser UI

Expected Behavior

I am hopeful that when I power on my pc and then open moonlight on my laptop / phone I can stream games without having to force restart sunshine on the host PC

Additional Context

No response

Host Operating System

Windows

Operating System Version

22631.4391

Architecture

amd64/x86_64

Sunshine commit or version

Version v0.23.1

Package

Windows - installer (recommended)

GPU Type

Nvidia

GPU Model

EVGA 3090

GPU Driver/Mesa Version

Game Ready Driver 566.14

Capture Method

None

Config

upnp = enabled

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"
        },
        {
            "name": "Epic",
            "output": "",
            "cmd": "",
            "exclude-global-prep-cmd": "false",
            "elevated": "false",
            "auto-detach": "true",
            "wait-all": "true",
            "exit-timeout": "5",
            "detached": [
                "\"D:\\Program Files (x86)\\Epic Games\\Launcher\\Portal\\Binaries\\Win32\\EpicGamesLauncher.exe\"",
                ""
            ],
            "image-path": ""
        }
    ]
}

Relevant log output

[2024:11:12:15:53:48]: Info: Sunshine version: v0.23.1
[2024:11:12:15:53:49]: Info: nvprefs: Opened undo file from previous improper termination
[2024:11:12:15:53:49]: Info: nvprefs: Restored OGL_CPL_PREFER_DXPRESENT for base profile
[2024:11:12:15:53:49]: Info: nvprefs: Restored global profile settings from undo file - deleting the file
[2024:11:12:15:53:49]: Info: nvprefs: No need to modify application profile settings
[2024:11:12:15:53:49]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2024:11:12:15:53:49]: Info: Compiling shaders...
[2024:11:12:15:53:49]: Info: Compiled shaders
[2024:11:12:15:53:49]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2024:11:12:15:53:49]: Info: Trying encoder [nvenc]
[2024:11:12:15:53:49]: Info: ddprobe.exe [1] [] returned: 0x00000000
[2024:11:12:15:53:49]: Info: Set GPU preference: 1
[2024:11:12:15:53:49]: Error: Failed to locate an output device
[2024:11:12:15:53:50]: Error: Failed to locate an output device
[2024:11:12:15:53:50]: Info: Encoder [nvenc] failed
[2024:11:12:15:53:50]: Info: Trying encoder [quicksync]
[2024:11:12:15:53:51]: Error: Failed to locate an output device
[2024:11:12:15:53:52]: Error: Failed to locate an output device
[2024:11:12:15:53:52]: Info: Encoder [quicksync] failed
[2024:11:12:15:53:52]: Info: Trying encoder [amdvce]
[2024:11:12:15:53:52]: Error: Failed to locate an output device
[2024:11:12:15:53:53]: Error: Failed to locate an output device
[2024:11:12:15:53:53]: Info: Encoder [amdvce] failed
[2024:11:12:15:53:53]: Info: Trying encoder [software]
[2024:11:12:15:53:54]: Error: Failed to locate an output device
[2024:11:12:15:53:54]: Error: Failed to locate an output device
[2024:11:12:15:53:55]: Info: Encoder [software] failed
[2024:11:12:15:53:55]: Fatal: Unable to find display or encoder during startup.
[2024:11:12:15:53:55]: Fatal: Please check that a display is connected and powered on.
[2024:11:12:15:53:55]: Error: Video failed to find working encoder
[2024:11:12:15:53:55]: Info: Configuration UI available at [https://localhost:47990]
[2024:11:12:15:53:56]: Info: Registered Sunshine mDNS service
[2024:11:13:13:02:03]: Warning: Couldn't discover any IPv4 UPNP devices
[2024:11:13:13:02:10]: Info: System tray created
[2024:11:13:13:06:04]: Info: Completed UPnP port mappings to 192.168.68.116 via http://192.168.68.1:1900/rootDesc.xml
[2024:11:13:13:12:29]: Info: Web UI: [127.0.0.1] -- not authorized
[2024:11:13:13:41:53]: Info: Opening UI from system tray
[2024:11:13:13:41:53]: Info: Resolved user-provided command 'https://localhost:47990' to '"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --single-argument https://localhost:47990'
[2024:11:13:13:41:53]: Info: https://localhost:47990 running with PID 13624
[2024:11:13:13:41:53]: Info: Opened url [https://localhost:47990]
[2024:11:13:13:41:54]: Info: Web UI: [127.0.0.1] -- not authorized

Contopaxi avatar Nov 13 '24 02:11 Contopaxi

Sorry this is my first time trying to report an issue via Github so I hope I did it correctly

Contopaxi avatar Nov 13 '24 02:11 Contopaxi

I hit the same thing when upgrading nvidia drivers to 566.14 - it turned out that the driver didn't install properly after rebooting. I fixed it by reinstalling 566.14.

Device manager for my GPU had the following status message: A driver (service) for this device has been disabled. An alternate driver may be providing this functionality. (Code 32)

maillota avatar Nov 13 '24 07:11 maillota

Did you actually try to stream, or just instinctively restarted sunshine due to the warnings in the UI?

ReenigneArcher avatar Nov 13 '24 13:11 ReenigneArcher

Same issue here trough it usually works after a reboot again for a while trough in my case i am on fedora 41 KDE with a Nvidia rtx 2070 Super also using the prerelease version

MNarath1 avatar Nov 13 '24 17:11 MNarath1

Did you actually try to stream, or just instinctively restarted sunshine due to the warnings in the UI?

tried to stream and receive a 503 error on my laptop / phone

Contopaxi avatar Nov 13 '24 19:11 Contopaxi

I hit the same thing when upgrading nvidia drivers to 566.14 - it turned out that the driver didn't install properly after rebooting. I fixed it by reinstalling 566.14.

Device manager for my GPU had the following status message: A driver (service) for this device has been disabled. An alternate driver may be providing this functionality. (Code 32)

there was just another nvidia driver update and when I checked sunshine post reboot it did not show an error this time. Nvidia driver version is now 566.14 so I will keep an eye on it

Edit- I was on 566.14 but nvidia had another 566.14 so perhaps a dodgy install has caused this

Contopaxi avatar Nov 13 '24 19:11 Contopaxi

Same issue here trough it usually works after a reboot again for a while trough in my case i am on fedora 41 KDE with a Nvidia rtx 2070 Super also using the prerelease version

Yeah the reboot fixes it but If I am not planning on gaming with moonlight and forget to sign in and check moonlight on my host it is a sad time when I go to game and dont have access to my host for a force reboot of sunshine

Contopaxi avatar Nov 13 '24 19:11 Contopaxi

I have this issue on NixOS running plasma 6 wayland with an nvidia GeForce GTX 980. Rebooting does not help

TakodaS avatar Nov 14 '24 17:11 TakodaS

Still get this error on the last pre-release, work well after restart. Drivers installed normally. Gtx 1080.

makcimbx avatar Dec 02 '24 15:12 makcimbx

Still get this error on the last pre-release, work well after restart. Drivers installed normally. Gtx 1080.

Restart of what, the target machine? The host machine? The Sunshine service?

e-t-l avatar Jan 03 '25 08:01 e-t-l

Still get this error on the last pre-release, work well after restart. Drivers installed normally. Gtx 1080.

Restart of what, the target machine? The host machine? The Sunshine service?

Restart Sunshine service

makcimbx avatar Jan 03 '25 10:01 makcimbx

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

LizardByte-bot avatar Apr 04 '25 10:04 LizardByte-bot

This issue was closed because it has been stalled for 10 days with no activity.

LizardByte-bot avatar Apr 14 '25 10:04 LizardByte-bot