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

Forcing adapter name + forced advertising of HDR/10-bit profiles causes the stream to crash at startup. #193

Open
Scotchy49 opened this issue Jan 2, 2025 · 4 comments

Comments

@Scotchy49
Copy link

Scotchy49 commented Jan 2, 2025

Version: 7d0456e

Forcing the advertisement of HEVC/HDR or AV1/HDR in the Advanced tab in combination with forcing the Adapter name in the Audio/Video tab causes the streams to crash at startup.

image
image
image
image

[2025-01-02 14:43:55.268]: Info: Package Publisher: SudoMaker
[2025-01-02 14:43:55.268]: Info: Publisher Website: https://www.sudomaker.com
[2025-01-02 14:43:55.268]: Info: Get support: https://github.com/ClassicOldSong/Apollo/issues
[2025-01-02 14:43:55.268]: Info: Provided workaround settings for SettingsManager:
{
  "hdr_blank_delay": null
}
[2025-01-02 14:43:55.274]: Info: Currently available display devices:
[
  {
    "device_id": "{0cf49116-76e3-5dbf-a117-4371082a5d1b}",
    "display_name": "\\\\.\\DISPLAY5",
    "friendly_name": "VG272U",
    "info": {
      "hdr_state": "Enabled",
      "origin_point": {
        "x": 2560,
        "y": 0
      },
      "primary": false,
      "refresh_rate": {
        "type": "rational",
        "value": {
          "denominator": 1,
          "numerator": 144
        }
      },
      "resolution": {
        "height": 1440,
        "width": 2560
      },
      "resolution_scale": {
        "type": "rational",
        "value": {
          "denominator": 100,
          "numerator": 100
        }
      }
    }
  },
  {
    "device_id": "{b309886a-9443-56e6-8a6c-309f99a61178}",
    "display_name": "\\\\.\\DISPLAY1",
    "friendly_name": "ASUS MG279",
    "info": {
      "hdr_state": null,
      "origin_point": {
        "x": 0,
        "y": 0
      },
      "primary": true,
      "refresh_rate": {
        "type": "rational",
        "value": {
          "denominator": 1,
          "numerator": 144
        }
      },
      "resolution": {
        "height": 1440,
        "width": 2560
      },
      "resolution_scale": {
        "type": "rational",
        "value": {
          "denominator": 100,
          "numerator": 100
        }
      }
    }
  }
]
[2025-01-02 14:43:55.408]: Info: nvprefs: No need to modify application profile settings
[2025-01-02 14:43:55.408]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2025-01-02 14:43:55.448]: Info: Compiling shaders...
[2025-01-02 14:43:55.463]: Info: System tray created
[2025-01-02 14:43:55.509]: Info: Compiled shaders
[2025-01-02 14:43:55.520]: Info: Configuration UI available at [https://localhost:47990]
[2025-01-02 14:43:56.026]: Info: Web UI: [127.0.0.1] -- not authorized
[2025-01-02 14:43:56.290]: Info: Registered Apollo mDNS service
[2025-01-02 14:47:41.187]: Info: Virtual Display created at \\.\DISPLAY10
[2025-01-02 14:47:41.330]: Info: Trying encoder [nvenc]
[2025-01-02 14:47:41.606]: Info: ddprobe.exe 1  --verify-frame-capture returned 0x887A0026
[2025-01-02 14:47:42.568]: Info: ddprobe.exe 2  --verify-frame-capture returned 0x887A0027
[2025-01-02 14:47:43.233]: Info: ddprobe.exe 3  --verify-frame-capture returned 0x887A0027
[2025-01-02 14:47:43.713]: Info: ddprobe.exe 4  --verify-frame-capture returned 0x00000000
[2025-01-02 14:47:43.713]: Info: Set GPU preference: 4
[2025-01-02 14:47:44.223]: Error: Failed to locate an output device
[2025-01-02 14:47:44.740]: Error: Failed to locate an output device
[2025-01-02 14:47:45.456]: Error: Failed to locate an output device
[2025-01-02 14:47:45.968]: Error: Failed to locate an output device
[2025-01-02 14:47:46.171]: Info: Encoder [nvenc] failed
[2025-01-02 14:47:46.171]: Error: Couldn't find any working encoder matching [nvenc]
[2025-01-02 14:47:46.171]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-01-02 14:47:46.172]: Info: Trying encoder [quicksync]
[2025-01-02 14:47:46.684]: Error: Failed to locate an output device
[2025-01-02 14:47:47.196]: Error: Failed to locate an output device
[2025-01-02 14:47:47.912]: Error: Failed to locate an output device
[2025-01-02 14:47:48.423]: Error: Failed to locate an output device
[2025-01-02 14:47:48.638]: Info: Encoder [quicksync] failed
[2025-01-02 14:47:48.639]: Info: Trying encoder [amdvce]
[2025-01-02 14:47:49.149]: Error: Failed to locate an output device
[2025-01-02 14:47:49.662]: Error: Failed to locate an output device
[2025-01-02 14:47:50.386]: Error: Failed to locate an output device
[2025-01-02 14:47:50.895]: Error: Failed to locate an output device
[2025-01-02 14:47:51.095]: Info: Encoder [amdvce] failed
[2025-01-02 14:47:51.096]: Info: Trying encoder [software]
[2025-01-02 14:47:51.605]: Error: Failed to locate an output device
[2025-01-02 14:47:52.118]: Error: Failed to locate an output device
[2025-01-02 14:47:52.828]: Error: Failed to locate an output device
[2025-01-02 14:47:53.340]: Error: Failed to locate an output device
[2025-01-02 14:47:53.542]: Info: Encoder [software] failed
[2025-01-02 14:47:53.543]: Fatal: Unable to find display or encoder during startup.
[2025-01-02 14:47:53.543]: Fatal: Please ensure your manually chosen GPU and monitor are connected and powered on.
[2025-01-02 14:47:53.559]: Info: Virtual Display removed successfully
@Scotchy49
Copy link
Author

Update:

In my case, I have 2 monitors attached to 2 different GPUs (one is on the iGPU and the other is on the dGPU)
The dGPU is the one I want to encode with.

The stream started working fine when disabling/disconnecting the monitor attached to the iGPU.
Since then, I have re-enabled the iGPU attached monitor and the stream still works fine, even after restarting Apollo.

The issue is definitely linked to some interaction between codec advertisement and adapter forcing, though, as, without the previous manipulation, it was consistently working/crashing by either unenforcing the advertisement, or removing the adapter name.

@ClassicOldSong
Copy link
Owner

ClassicOldSong commented Jan 2, 2025

Maybe reboot your computer after setting AdapterName also fixes the problem

GPU preferences sometimes get janky when switched live.

Also if you're not using headless mode, you should also set the monitor ID. It's a Sunshine leftover problem.

@ClassicOldSong
Copy link
Owner

Any updates?

@ProTechnomancy
Copy link

Also if you're not using headless mode, you should also set the monitor ID. It's a Sunshine leftover problem.

I do both, depending on whether I'm at my desk, hadn't heard/seen a toggle for headless mode or monitor ID, seems like I need to revisit the wiki. Thx

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

3 participants