Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

No warning or retry button during installation when the ViGEmBus driver fails to install

Open Swarkin opened this issue 9 months ago • 2 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?

This issue is present in the latest pre-release

Describe the Bug

When a Windows Group Policy to block driver installations is set, sunshine does not warn the user during the installation process that the ViGEmBus driver failed to install, but rather reports a successful installation.

A scenario where this can happen is when the group policies under Computer Configuration/Administrative Templates/System/Device Installation/Device Installation Restrictions are configured in a way that blocks driver installations.

Expected Behavior

A message box should pop up prompting the user to either manually whitelist the driver, or temporarily disable the restriction on the system and offer a button to retry the installation.

Additional Context

https://learn.microsoft.com/en-us/windows/client-management/client-tools/manage-device-installation-with-group-policy

Host Operating System

Windows

Operating System Version

Starting from Windows 10 version 1809 up to the latest Windows 11 versions

Architecture

other, n/a

Sunshine commit or version

v2025.212.40608

Package

Windows - installer (recommended)

GPU Type

n/a

GPU Model

n/a

GPU Driver/Mesa Version

n/a

Capture Method

None

Config


Apps


Relevant log output

// I am not aware whether the installer itself produces a log file anywhere, but this is the sunshine log after starting up. May not be relevant at all.

[2025-02-12 11:48:00.606]: Info: Sunshine version: v2025.212.40608
[2025-02-12 11:48:00.606]: Info: Package Publisher: LizardByte
[2025-02-12 11:48:00.606]: Info: Publisher Website: https://app.lizardbyte.dev
[2025-02-12 11:48:00.606]: Info: Get support: https://app.lizardbyte.dev/support
[2025-02-12 11:48:00.606]: Info: Provided workaround settings for SettingsManager:
{
  "hdr_blank_delay": null
}
[2025-02-12 11:48:00.606]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:00.606]: Info: Currently available display devices:
[]
[2025-02-12 11:48:00.606]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:00.606]: Info: nvprefs: NvAPI_Initialize() failed, ignore if you don't have NVIDIA video card
[2025-02-12 11:48:00.608]: Info: Compiling shaders...
[2025-02-12 11:48:00.618]: Info: System tray created
[2025-02-12 11:48:00.664]: Info: Compiled shaders
[2025-02-12 11:48:00.668]: Fatal: ViGEmBus is not installed or running. You must install ViGEmBus for gamepad support!
[2025-02-12 11:48:00.668]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:00.668]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2025-02-12 11:48:00.668]: Info: Trying encoder [nvenc]
[2025-02-12 11:48:00.740]: Info: 
Device Description : AMD Radeon RX 6700 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073DF
Device Video Mem   : 12216 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16186 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 3840x326
Virtual Desktop    : 6400x2160
[2025-02-12 11:48:00.740]: Info: Active GPU has HAGS disabled
[2025-02-12 11:48:00.740]: Info: Using realtime GPU priority
[2025-02-12 11:48:00.740]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.2497 nits
Max Luminance      : 351 nits
Max Full Luminance : 351 nits
[2025-02-12 11:48:00.740]: Info: Desktop resolution [2560x1440]
[2025-02-12 11:48:00.740]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-02-12 11:48:00.740]: Info: Display refresh rate [144Hz]
[2025-02-12 11:48:00.740]: Info: Requested frame rate [60fps]
[2025-02-12 11:48:00.742]: Info: Encoder [nvenc] is not supported on this GPU
[2025-02-12 11:48:00.749]: Info: Trying encoder [quicksync]
[2025-02-12 11:48:00.807]: Info: 
Device Description : AMD Radeon RX 6700 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073DF
Device Video Mem   : 12216 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16186 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 3840x326
Virtual Desktop    : 6400x2160
[2025-02-12 11:48:00.807]: Info: Active GPU has HAGS disabled
[2025-02-12 11:48:00.807]: Info: Using realtime GPU priority
[2025-02-12 11:48:00.807]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.2497 nits
Max Luminance      : 351 nits
Max Full Luminance : 351 nits
[2025-02-12 11:48:00.807]: Info: Desktop resolution [2560x1440]
[2025-02-12 11:48:00.807]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-02-12 11:48:00.807]: Info: Display refresh rate [144Hz]
[2025-02-12 11:48:00.807]: Info: Requested frame rate [60fps]
[2025-02-12 11:48:00.808]: Info: Encoder [quicksync] is not supported on this GPU
[2025-02-12 11:48:00.816]: Info: Trying encoder [amdvce]
[2025-02-12 11:48:00.874]: Info: 
Device Description : AMD Radeon RX 6700 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073DF
Device Video Mem   : 12216 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16186 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 3840x326
Virtual Desktop    : 6400x2160
[2025-02-12 11:48:00.875]: Info: Active GPU has HAGS disabled
[2025-02-12 11:48:00.875]: Info: Using realtime GPU priority
[2025-02-12 11:48:00.875]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.2497 nits
Max Luminance      : 351 nits
Max Full Luminance : 351 nits
[2025-02-12 11:48:00.875]: Info: Desktop resolution [2560x1440]
[2025-02-12 11:48:00.875]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-02-12 11:48:00.875]: Info: Display refresh rate [144Hz]
[2025-02-12 11:48:00.875]: Info: Requested frame rate [60fps]
[2025-02-12 11:48:00.879]: Info: Creating encoder [h264_amf]
[2025-02-12 11:48:00.879]: Info: Color coding: SDR (Rec. 601)
[2025-02-12 11:48:00.879]: Info: Color depth: 8-bit
[2025-02-12 11:48:00.879]: Info: Color range: JPEG
[2025-02-12 11:48:00.904]: Info: Streaming bitrate is 1000000
[2025-02-12 11:48:00.937]: Info: Creating encoder [hevc_amf]
[2025-02-12 11:48:00.938]: Info: Color coding: SDR (Rec. 601)
[2025-02-12 11:48:00.938]: Info: Color depth: 8-bit
[2025-02-12 11:48:00.938]: Info: Color range: JPEG
[2025-02-12 11:48:00.962]: Info: Streaming bitrate is 1000000
[2025-02-12 11:48:00.997]: Info: Creating encoder [av1_amf]
[2025-02-12 11:48:00.997]: Info: Color coding: SDR (Rec. 601)
[2025-02-12 11:48:00.997]: Info: Color depth: 8-bit
[2025-02-12 11:48:00.997]: Info: Color range: JPEG
[2025-02-12 11:48:01.026]: Info: Streaming bitrate is 1000000
[2025-02-12 11:48:01.032]: Error: [av1_amf @ 0000028a498787c0] CreateComponent(AMFVideoEncoderHW_AV1) failed with error 30
[2025-02-12 11:48:01.033]: Error: Could not open codec [av1_amf]: Encoder not found
[2025-02-12 11:48:01.106]: Info: 
Device Description : AMD Radeon RX 6700 XT
Device Vendor ID   : 0x00001002
Device Device ID   : 0x000073DF
Device Video Mem   : 12216 MiB
Device Sys Mem     : 0 MiB
Share Sys Mem      : 16186 MiB
Feature Level      : 0x0000B100
Capture size       : 2560x1440
Offset             : 3840x326
Virtual Desktop    : 6400x2160
[2025-02-12 11:48:01.106]: Info: Active GPU has HAGS disabled
[2025-02-12 11:48:01.106]: Info: Using realtime GPU priority
[2025-02-12 11:48:01.106]: Info: 
Colorspace         : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
Bits Per Color     : 10
Red Primary        : [0.685547,0.308594]
Green Primary      : [0.264648,0.667969]
Blue Primary       : [0.150391,0.0576172]
White Point        : [0.313477,0.329102]
Min Luminance      : 0.2497 nits
Max Luminance      : 351 nits
Max Full Luminance : 351 nits
[2025-02-12 11:48:01.106]: Info: Desktop resolution [2560x1440]
[2025-02-12 11:48:01.106]: Info: Desktop format [DXGI_FORMAT_B8G8R8A8_UNORM]
[2025-02-12 11:48:01.106]: Info: Display refresh rate [144Hz]
[2025-02-12 11:48:01.106]: Info: Requested frame rate [60fps]
[2025-02-12 11:48:01.110]: Info: Creating encoder [hevc_amf]
[2025-02-12 11:48:01.110]: Info: Color coding: SDR (Rec. 709)
[2025-02-12 11:48:01.110]: Info: Color depth: 10-bit
[2025-02-12 11:48:01.110]: Info: Color range: JPEG
[2025-02-12 11:48:01.136]: Info: Streaming bitrate is 1000000
[2025-02-12 11:48:01.178]: Info: 
[2025-02-12 11:48:01.178]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2025-02-12 11:48:01.178]: Info: 
[2025-02-12 11:48:01.178]: Info: Found H.264 encoder: h264_amf [amdvce]
[2025-02-12 11:48:01.178]: Info: Found HEVC encoder: hevc_amf [amdvce]
[2025-02-12 11:48:01.180]: Info: Configuration UI available at [https://localhost:47990]
[2025-02-12 11:48:01.940]: Info: Registered Sunshine mDNS service
[2025-02-12 11:48:05.622]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:10.632]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:15.654]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:20.671]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:25.687]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:30.705]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:35.726]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:40.742]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:45.754]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:50.769]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:48:55.795]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:00.808]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:05.824]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:10.830]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:15.860]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:20.864]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:25.893]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:30.901]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:35.913]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:40.928]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:45.949]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:50.964]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:49:55.973]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:00.991]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:06.014]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:11.033]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:16.041]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:21.052]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:26.073]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:31.086]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:36.105]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:41.114]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:46.128]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:51.157]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:50:56.172]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:01.181]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:06.193]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:11.211]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:16.221]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:21.243]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:26.255]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:31.268]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:36.287]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:41.306]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:46.320]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:51.338]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:51:56.355]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:01.373]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:06.391]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:11.393]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:16.415]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:21.427]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:26.453]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:31.462]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:36.486]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:41.502]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:46.511]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:51.522]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:52:56.546]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:01.554]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:06.565]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:11.581]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:16.598]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:21.623]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:26.634]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:31.645]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:36.666]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:41.676]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:46.702]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:51.719]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:53:56.727]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:01.742]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:06.758]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:11.768]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:16.789]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:21.809]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:26.826]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:31.837]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:36.855]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:41.869]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:46.881]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:51.904]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:54:56.922]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:01.927]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:06.941]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:11.967]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:16.982]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:21.988]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:27.016]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:32.030]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:37.038]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:42.050]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:47.078]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:52.089]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:55:57.106]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:02.124]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:07.134]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:12.147]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:17.172]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:22.181]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:27.198]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:32.216]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:37.231]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:42.251]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:47.253]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:52.270]: Error: Failed to collect path source data or none was available!
[2025-02-12 11:56:57.288]: Error: Failed to collect path source data or none was available!

Swarkin avatar Feb 12 '25 11:02 Swarkin

I'm not planning to work on this, but feel free to submit a PR.

Code that installs vigembus is here -> https://github.com/LizardByte/Sunshine/blob/master/src_assets/windows/misc/gamepad/install-gamepad.bat

Called from here -> https://github.com/LizardByte/Sunshine/blob/a344e6cc69f500572d535c3e82f2d663a7ab7544/cmake/packaging/windows.cmake#L69

ReenigneArcher avatar Mar 13 '25 18:03 ReenigneArcher

Same here. Windows 11. Tried last release version and the last pre-release version. Error "Failed to collect path source data or none was available" without any chance to continue using it. Also installed gamepad package manually and by .bat file. Doesn't help anything. P.S. for me it is relevant when portable version of software is used.

Ike4roo avatar Apr 07 '25 16:04 Ike4roo

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 Jul 07 '25 10:07 LizardByte-bot

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

LizardByte-bot avatar Jul 17 '25 10:07 LizardByte-bot