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

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

Open
2 tasks done
Contopaxi opened this issue Nov 13, 2024 · 9 comments

Comments

@Contopaxi
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 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
Copy link
Author

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

@maillota
Copy link

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)

@ReenigneArcher
Copy link
Member

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

@MNarath1
Copy link

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

@Contopaxi
Copy link
Author

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
Copy link
Author

Contopaxi commented Nov 13, 2024

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
Copy link
Author

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

@TakodaS
Copy link

TakodaS commented Nov 14, 2024

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

@makcimbx
Copy link

makcimbx commented Dec 2, 2024

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

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

No branches or pull requests

6 participants