Virtual HID keeps reporting invalid license

未关闭
#249 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp
领域
embedded-iot

调研方向

Start by tracing the Windows UMDF backend initialization and license validation path referenced by the log line [libvirtualhid] initialized windows-umdf backend; compare its startup validation with the manual refresh that reports the license as valid. The issue includes no source file or test names, so first locate those entry points and check the startup logs around license validation. Done when the license remains valid after reboot on the affected computer.

由索引模型根据 Issue 内容生成。

描述

Describe the Bug

On a yearly subscription, and using 2 computers, on one of them I currently I'm always getting an invalid license message when
booting the PC. When going to Sunshine and clicking on Refresh validation it is listed as valid, but then on the next reboot it happens again. The other computer works just fine:

[2026-12-04 22:21:10.771]: Info: Sunshine version: 2026.1202.222431 commit: caed55daad2f628645477323813fa4a8e85c028e
[2026-12-04 22:21:10.773]: Info: Package Publisher: LizardByte
[2026-12-04 22:21:10.773]: Info: Publisher Website: https://app.lizardbyte.dev
[2026-12-04 22:21:10.773]: Info: Get support: https://app.lizardbyte.dev/support
[2026-12-04 22:21:10.773]: Info: config: 'gamepad_driver' = all
[2026-12-04 22:21:10.773]: Info: Provided workaround settings for SettingsManager:
{
"hdr_blank_delay": null
}
[2026-12-04 22:21:10.777]: Info: Currently available display devices:
[
{
"device_id": "{c220c50a-d714-5a13-8a51-612248c33269}",
"display_name": "\\.\DISPLAY1",
"edid": {
"manufacturer_id": "DEL",
"product_code": "D19F",
"serial_number": 827938906
},
"friendly_name": "AW2725DM",
"info": {
"hdr_state": "Disabled",
"origin_point": {
"x": 0,
"y": 0
},
"primary": true,
"refresh_rate": {
"type": "rational",
"value": {
"denominator": 1000,
"numerator": 179845
}
},
"resolution": {
"height": 1440,
"width": 2560
},
"resolution_scale": {
"type": "rational",
"value": {
"denominator": 100,
"numerator": 100
}
}
},
"is_internal": false
}
]
[2026-12-04 22:21:11.002]: Info: nvprefs: No need to modify application profile settings
[2026-12-04 22:21:11.003]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile
[2026-12-04 22:21:11.069]: Info: Compiling shaders...
[2026-12-04 22:21:11.279]: Info: Compiled shaders
[2026-12-04 22:21:11.365]: Info: [libvirtualhid] initialized windows-umdf backend
[2026-12-04 22:21:11.389]: Info: [libvirtualhid] created mouse 2
[2026-12-04 22:21:11.389]: Info: Virtual HID Driver license is not valid; using the ViGEmBus gamepad fallback
[2026-12-04 22:21:11.389]: Warning: ViGEmBus is not installed or running, so its limited Xbox 360 and DualShock 4 gamepad support is unavailable
[2026-12-04 22:21:11.390]: Warning: No gamepad input is available
[2026-12-04 22:21:11.391]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2026-12-04 22:21:11.391]: Info: Trying encoder [nvenc]
[2026-12-04 22:21:11.748]: Info:
Device Description : NVIDIA GeForce RTX 5070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002C05
Device Video Mem : 15995 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16225 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2026-12-04 22:21:11.749]: Info: Active GPU has HAGS enabled
[2026-12-04 22:21:11.749]: Info: Using realtime GPU priority
[2026-12-04 22:21:11.749]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.62997,0.328169]
Green Primary : [0.279304,0.597945]
Blue Primary : [0.145927,0.0556259]
White Point : [0.314294,0.330566]
Min Luminance : 0 nits
Max Luminance : 240 nits
Max Full Luminance : 240 nits
[2026-12-04 22:21:11.751]: Info: Desktop resolution [2560x1440]
[2026-12-04 22:21:11.751]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2026-12-04 22:21:11.751]: Info: Display refresh rate [179.845Hz]
[2026-12-04 22:21:11.751]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-12-04 22:21:11.751]: Info: Creating encoder [h264_nvenc]
[2026-12-04 22:21:11.751]: Info: Color coding: SDR (Rec. 601)
[2026-12-04 22:21:11.751]: Info: Color depth: 8-bit
[2026-12-04 22:21:11.751]: Info: Color range: JPEG
[2026-12-04 22:21:11.839]: Info: NvEnc: created encoder v1301 H.264 P1 async two-pass rfi
[2026-12-04 22:21:11.870]: Info: Creating encoder [hevc_nvenc]
[2026-12-04 22:21:11.870]: Info: Color coding: SDR (Rec. 601)
[2026-12-04 22:21:11.870]: Info: Color depth: 8-bit
[2026-12-04 22:21:11.870]: Info: Color range: JPEG
[2026-12-04 22:21:11.916]: Info: NvEnc: created encoder v1301 HEVC P1 async two-pass rfi sfe-auto
[2026-12-04 22:21:11.939]: Info: Creating encoder [av1_nvenc]
[2026-12-04 22:21:11.939]: Info: Color coding: SDR (Rec. 601)
[2026-12-04 22:21:11.939]: Info: Color depth: 8-bit
[2026-12-04 22:21:11.939]: Info: Color range: JPEG
[2026-12-04 22:21:11.984]: Info: NvEnc: created encoder v1301 AV1 P1 async two-pass rfi sfe-auto
[2026-12-04 22:21:12.185]: Info:
Device Description : NVIDIA GeForce RTX 5070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002C05
Device Video Mem : 15995 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16225 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2026-12-04 22:21:12.185]: Info: Active GPU has HAGS enabled
[2026-12-04 22:21:12.185]: Info: Using realtime GPU priority
[2026-12-04 22:21:12.185]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.62997,0.328169]
Green Primary : [0.279304,0.597945]
Blue Primary : [0.145927,0.0556259]
White Point : [0.314294,0.330566]
Min Luminance : 0 nits
Max Luminance : 240 nits
Max Full Luminance : 240 nits
[2026-12-04 22:21:12.186]: Info: Desktop resolution [2560x1440]
[2026-12-04 22:21:12.186]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2026-12-04 22:21:12.186]: Info: Display refresh rate [179.845Hz]
[2026-12-04 22:21:12.186]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-12-04 22:21:12.187]: Info: Creating encoder [h264_nvenc]
[2026-12-04 22:21:12.187]: Info: Color coding: SDR (Rec. 601)
[2026-12-04 22:21:12.187]: Info: Color depth: 8-bit
[2026-12-04 22:21:12.187]: Info: Color range: JPEG
[2026-12-04 22:21:12.223]: Info: NvEnc: created encoder v1301 H.264 P1 async yuv444 two-pass rfi
[2026-12-04 22:21:12.408]: Info:
Device Description : NVIDIA GeForce RTX 5070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002C05
Device Video Mem : 15995 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16225 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2026-12-04 22:21:12.408]: Info: Active GPU has HAGS enabled
[2026-12-04 22:21:12.408]: Info: Using realtime GPU priority
[2026-12-04 22:21:12.408]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.62997,0.328169]
Green Primary : [0.279304,0.597945]
Blue Primary : [0.145927,0.0556259]
White Point : [0.314294,0.330566]
Min Luminance : 0 nits
Max Luminance : 240 nits
Max Full Luminance : 240 nits
[2026-12-04 22:21:12.410]: Info: Desktop resolution [2560x1440]
[2026-12-04 22:21:12.410]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2026-12-04 22:21:12.410]: Info: Display refresh rate [179.845Hz]
[2026-12-04 22:21:12.410]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-12-04 22:21:12.410]: Info: Creating encoder [hevc_nvenc]
[2026-12-04 22:21:12.410]: Info: Color coding: SDR (Rec. 601)
[2026-12-04 22:21:12.410]: Info: Color depth: 8-bit
[2026-12-04 22:21:12.410]: Info: Color range: JPEG
[2026-12-04 22:21:12.447]: Info: NvEnc: created encoder v1301 HEVC P1 async yuv444 two-pass rfi sfe-auto
[2026-12-04 22:21:12.649]: Info:
Device Description : NVIDIA GeForce RTX 5070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002C05
Device Video Mem : 15995 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16225 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2026-12-04 22:21:12.649]: Info: Active GPU has HAGS enabled
[2026-12-04 22:21:12.649]: Info: Using realtime GPU priority
[2026-12-04 22:21:12.649]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.62997,0.328169]
Green Primary : [0.279304,0.597945]
Blue Primary : [0.145927,0.0556259]
White Point : [0.314294,0.330566]
Min Luminance : 0 nits
Max Luminance : 240 nits
Max Full Luminance : 240 nits
[2026-12-04 22:21:12.650]: Info: Desktop resolution [2560x1440]
[2026-12-04 22:21:12.650]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2026-12-04 22:21:12.650]: Info: Display refresh rate [179.845Hz]
[2026-12-04 22:21:12.650]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-12-04 22:21:12.651]: Info: Creating encoder [hevc_nvenc]
[2026-12-04 22:21:12.651]: Info: Color coding: SDR (Rec. 709)
[2026-12-04 22:21:12.651]: Info: Color depth: 10-bit
[2026-12-04 22:21:12.651]: Info: Color range: JPEG
[2026-12-04 22:21:12.691]: Info: NvEnc: created encoder v1301 HEVC P1 async 10-bit two-pass rfi sfe-auto
[2026-12-04 22:21:13.147]: Info:
Device Description : NVIDIA GeForce RTX 5070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002C05
Device Video Mem : 15995 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16225 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2026-12-04 22:21:13.147]: Info: Active GPU has HAGS enabled
[2026-12-04 22:21:13.147]: Info: Using realtime GPU priority
[2026-12-04 22:21:13.147]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.62997,0.328169]
Green Primary : [0.279304,0.597945]
Blue Primary : [0.145927,0.0556259]
White Point : [0.314294,0.330566]
Min Luminance : 0 nits
Max Luminance : 240 nits
Max Full Luminance : 240 nits
[2026-12-04 22:21:13.148]: Info: Desktop resolution [2560x1440]
[2026-12-04 22:21:13.148]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2026-12-04 22:21:13.149]: Info: Display refresh rate [179.845Hz]
[2026-12-04 22:21:13.149]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-12-04 22:21:13.149]: Info: Creating encoder [hevc_nvenc]
[2026-12-04 22:21:13.149]: Info: Color coding: SDR (Rec. 709)
[2026-12-04 22:21:13.149]: Info: Color depth: 10-bit
[2026-12-04 22:21:13.149]: Info: Color range: JPEG
[2026-12-04 22:21:13.270]: Info: NvEnc: created encoder v1301 HEVC P1 async yuv444 10-bit two-pass rfi sfe-auto
[2026-12-04 22:21:13.463]: Info:
Device Description : NVIDIA GeForce RTX 5070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002C05
Device Video Mem : 15995 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16225 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2026-12-04 22:21:13.464]: Info: Active GPU has HAGS enabled
[2026-12-04 22:21:13.464]: Info: Using realtime GPU priority
[2026-12-04 22:21:13.464]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.62997,0.328169]
Green Primary : [0.279304,0.597945]
Blue Primary : [0.145927,0.0556259]
White Point : [0.314294,0.330566]
Min Luminance : 0 nits
Max Luminance : 240 nits
Max Full Luminance : 240 nits
[2026-12-04 22:21:13.465]: Info: Desktop resolution [2560x1440]
[2026-12-04 22:21:13.465]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2026-12-04 22:21:13.465]: Info: Display refresh rate [179.845Hz]
[2026-12-04 22:21:13.465]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-12-04 22:21:13.465]: Info: Creating encoder [av1_nvenc]
[2026-12-04 22:21:13.465]: Info: Color coding: SDR (Rec. 601)
[2026-12-04 22:21:13.465]: Info: Color depth: 8-bit
[2026-12-04 22:21:13.465]: Info: Color range: JPEG
[2026-12-04 22:21:13.479]: Error: NvEnc: gpu doesn't support YUV444 encode
[2026-12-04 22:21:13.479]: Error: NvEnc: NvEncUnregisterAsyncEvent() failed: NV_ENC_ERR_DEVICE_NOT_EXIST
[2026-12-04 22:21:13.643]: Info:
Device Description : NVIDIA GeForce RTX 5070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002C05
Device Video Mem : 15995 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16225 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2026-12-04 22:21:13.644]: Info: Active GPU has HAGS enabled
[2026-12-04 22:21:13.644]: Info: Using realtime GPU priority
[2026-12-04 22:21:13.644]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.62997,0.328169]
Green Primary : [0.279304,0.597945]
Blue Primary : [0.145927,0.0556259]
White Point : [0.314294,0.330566]
Min Luminance : 0 nits
Max Luminance : 240 nits
Max Full Luminance : 240 nits
[2026-12-04 22:21:13.645]: Info: Desktop resolution [2560x1440]
[2026-12-04 22:21:13.645]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2026-12-04 22:21:13.645]: Info: Display refresh rate [179.845Hz]
[2026-12-04 22:21:13.645]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-12-04 22:21:13.645]: Info: Creating encoder [av1_nvenc]
[2026-12-04 22:21:13.645]: Info: Color coding: SDR (Rec. 709)
[2026-12-04 22:21:13.645]: Info: Color depth: 10-bit
[2026-12-04 22:21:13.645]: Info: Color range: JPEG
[2026-12-04 22:21:13.682]: Info: NvEnc: created encoder v1301 AV1 P1 async 10-bit two-pass rfi sfe-auto
[2026-12-04 22:21:13.847]: Info:
Device Description : NVIDIA GeForce RTX 5070 Ti
Device Vendor ID : 0x000010DE
Device Device ID : 0x00002C05
Device Video Mem : 15995 MiB
Device Sys Mem : 0 MiB
Share Sys Mem : 16225 MiB
Feature Level : 0x0000B100
Capture size : 2560x1440
Offset : 0x0
Virtual Desktop : 2560x1440
[2026-12-04 22:21:13.847]: Info: Active GPU has HAGS enabled
[2026-12-04 22:21:13.847]: Info: Using realtime GPU priority
[2026-12-04 22:21:13.847]: Info:
Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color : 8
Red Primary : [0.62997,0.328169]
Green Primary : [0.279304,0.597945]
Blue Primary : [0.145927,0.0556259]
White Point : [0.314294,0.330566]
Min Luminance : 0 nits
Max Luminance : 240 nits
Max Full Luminance : 240 nits
[2026-12-04 22:21:13.848]: Info: Desktop resolution [2560x1440]
[2026-12-04 22:21:13.849]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2026-12-04 22:21:13.849]: Info: Display refresh rate [179.845Hz]
[2026-12-04 22:21:13.849]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-12-04 22:21:13.849]: Info: Creating encoder [av1_nvenc]
[2026-12-04 22:21:13.849]: Info: Color coding: SDR (Rec. 709)
[2026-12-04 22:21:13.849]: Info: Color depth: 10-bit
[2026-12-04 22:21:13.849]: Info: Color range: JPEG
[2026-12-04 22:21:13.900]: Error: NvEnc: gpu doesn't support YUV444 encode
[2026-12-04 22:21:13.900]: Error: NvEnc: NvEncUnregisterAsyncEvent() failed: NV_ENC_ERR_DEVICE_NOT_EXIST
[2026-12-04 22:21:13.926]: Info:
[2026-12-04 22:21:13.927]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2026-12-04 22:21:13.927]: Info:
[2026-12-04 22:21:13.927]: Info: Found H.264 encoder: h264_nvenc [nvenc]
[2026-12-04 22:21:13.927]: Info: Found HEVC encoder: hevc_nvenc [nvenc]
[2026-12-04 22:21:13.927]: Info: Found AV1 encoder: av1_nvenc [nvenc]
[2026-12-04 22:21:13.930]: Info: Starting system tray
[2026-12-04 22:21:13.931]: Info: [libvirtualhid] initialized windows-umdf backend
[2026-12-04 22:21:13.932]: Info: System tray thread initialized successfully
[2026-12-04 22:21:13.932]: Info: No main thread features enabled, skipping event loop
[2026-12-04 22:21:13.932]: Info: System tray thread started
[2026-12-04 22:21:13.940]: Info: Configuration UI available at [https://localhost:47990]
[2026-12-04 22:21:13.966]: Warning: Qt: Invalid curv table
[2026-12-04 22:21:13.966]: Warning: Qt: fromIccProfile: Invalid rTRC
[2026-12-04 22:21:13.978]: Info: Qt: QtTrayMenu: using Qt style "windows11"
[2026-12-04 22:21:14.015]: Info: System tray created
[2026-12-04 22:21:16.228]: Info: Registered Sunshine mDNS service
[2026-12-04 22:21:22.890]: Info: C:\Windows\system32\cmd.exe /d /v:off /c start "" https://localhost:47990/troubleshooting#virtualhid-license running with PID 18920
[2026-12-04 22:21:22.890]: Info: Opening url [https://localhost:47990/troubleshooting#virtualhid-license]
[2026-12-04 22:21:23.351]: Info: Web UI: [127.0.0.1] -- not authorized
[2026-12-04 22:21:33.039]: Info: [libvirtualhid] initialized windows-umdf backend

Expected Behavior

No response

Additional Context

No response

主要语言
C++
星标
129
派生
40
平均合并
1 天 2 小时
30 天内合并 PR
21

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

LizardByte/libvirtualhid 的其他 Issue

查看 LizardByte/libvirtualhid 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。