DuoStream / Duo

An HDR-compatible multiseat streaming solution based around RdpWrap, Sunshine, Moonlight, and a variety of custom driver and library patches
423 stars 1 forks source link

Gamepad Isolation a mess since updates #35

Closed Gammler closed 9 months ago

Gammler commented 9 months ago

Hello

unfortunately the gamepad isolation is completely buggy or has a completely unknown behaviour for me now.

First off all, i need to plug in my Xbox Series X Controller to my physical machine to be able to control my remote sessions. There is not control possible with my remote gamepads, like Xbox Series X Controller connected to either USB or Bluetooth via a Laptop, nor via Steam Deck and Moonlight.

I also noticed that the attached gamepad list gets longer with every "once started session per profile":

image The Controller (Xbox One for Windows) is my physically attached Series X Controller. The issue started already before i plugged it in.

We noticed this yesterday, because the controls didn't work, somehow my brother was able to control the session ONCE for a short time, but after a accidentally session disconnect he had no control anymore.

I wonder if i am missing some local configuration that is doing that, maybe even with my seperate windows accounts i am using this with. But even then, before those updates i never had a controller not being recognized problem.

Gammler commented 9 months ago

I had to go back to v.1.2.3 to get everything working again.

Also i was not able to use keyboard and mouse with this bug. With 1.2.3 i can use the mouse again too. Unfortunately i am missing the later performance improvements with this version now.

EDIT: Also the controller list is now empty again as i would expect in my real windows session. image

I guess Duo is doing the wrong decision on what controller to use.

Black-Seraph commented 9 months ago

Please try version 1.2.7 and see if it solves your issue.

Gammler commented 9 months ago

It seems to be resolved. I notice this right away because my steam deck mouse pointer was working. There is still every controller per session visible in the gamepad settings in windows though.

I guess i don't have to check my windows laptop now and you don't need any logs anymore. Thank you for the fix. Would be cool if you could add the version information of duo into the manager, because every install looks the same to me.

Black-Seraph commented 9 months ago

I can only see the controllers that belong to the session in joy.cpl.

Do you have some more information you could give me there?

Gammler commented 9 months ago

I really don't know what to look for. With gamepad emulation disabled in sunshine i don't see additional devices but obviously i can't use my controller then.

In Device manager it adds this device:

image "hid compliant game controller"

Everytime someone connects / disconnects i hear the USB plugin windows sound. Also: I use different user accounts for every profile.

Black-Seraph commented 9 months ago

Right click the devices you deem suspicious / wrong and go into the details tab.

Then copy the device's instance ID & last known parent and paste them here.

It's also best to change the device manager's view setting to "by container" as it will group devices by bus.

XexuWilder commented 9 months ago

I have some problems too when I connect to one session with a controller. that controller register input too in the host PC.

Im testing:

1 - HOST PC with normal sunshine installation + duo stream 2 - Client PC with moonlight + xbox controller bluetooth

Both, the host and the client is receiving the inputs from Client PC when I connect to the host via moonlight.

Am I doing something wrong?

Black-Seraph commented 9 months ago

That's because regular Sunshine versions don't support gamepad isolation.

I can't control what other software does or influence it.

I don't recommend mixing different Sunshine versions on a single host.

XexuWilder commented 9 months ago

Thank you very much for your answer

Black-Seraph commented 9 months ago

Thank you very much for your answer

No problem.

If you absolutely need console session support via regular Sunshine, in addition to Duo's remote sessions, you can cherry-pick the input.cpp changes from our Sunshine fork.

All input jailing changes are isolated to that single file, and if merged into a regular Sunshine build, it will jail inputs into the console session.

It does require access to msys2 to compile the sunshine.exe though.

It goes without saying that I can't provide support for custom-built Sunshine builds.

XexuWilder commented 9 months ago

So is recomended to unistall "normal" sunshine and vigemBus and all kind of software, restart pc and and then install duoStream for the input isolation?

Is there any way to acces to your full version of duo stream with a single pay? instead of 10$ membership / month of patreon?

Thank you again

Black-Seraph commented 9 months ago

You still need ViGEmBus for gamepad support, but everything else can go.

As for the app, it isn't bound to an active subscription, which means you can just subscribe for a month, grab Duo, and keep on using it indefinitely.

You can even use the GitHub builds of Duo to update the Patreon build and still keep your supporter benefits.

Black-Seraph commented 9 months ago

@Gammler You still with us on this issue?

It would be great to have some more feedback from you as you seem to be the only person left to have issues with gamepad isolation on 1.2.7.

XexuWilder commented 9 months ago

Is not working for me either.

I have unistalled everything, installed vigem + duo stream.

When I connect the first client everything is ok but when I connect the second client and open Steam big picture, the input from the first PC appears on the second client in steam. The first Client is not using steam, only the second.

Black-Seraph commented 9 months ago

Steam input is permanently running in the background, which means it will receive hardware device notifications before they are jailed and thus be able to grab ALL input devices handles.

This is known & currently unfixable, at least until Microsoft provides us a better way to implement gamepad jailing or I can figure out a better way to jail the gamepad devices with the few APIs available to us.

If you need to use Steam, make sure it is fully stopped and only start it after all the devices have been jailed properly. Or rather, just make it a habit to restart Steam entirely before you start playing a game, that does the trick.

On the note of unexplored options... There might be a way to spawn an already jailed HID PDO from within termsrv.dll using nothing but Microsoft-signed drivers.

I've been reverse-engineering the way the virtual mouse & keyboard work inside remote sessions, and we might be able to leverage a similar setup for gamepads in the future, but it will take time to fully reverse-engineer those parts.

Another option would be to patch up ViGEmBus and get the drivers signed somehow, this would be the easiest way to implement proper gamepad jailing as all it takes is a single call to WdfDeviceAssignProperty to assign a session ID to the gamepad before it is even created.

This would ensure the gamepad "spawns" right where it needs to be, without any windows of opportunity for out-of-session processes to pick it up.

Gammler commented 9 months ago

@Gammler You still with us on this issue?

It would be great to have some more feedback from you as you seem to be the only person left to have issues with gamepad isolation on 1.2.7.

Hi, I am but i don't have the time right now to fiddle much with DUO everyday, sorry for that. I'm doing more debugging right now than using it to be honest, and i had to reduce that this week for private reasons, but here the information:

HID\VID_045E&PID_028E&IG_00\3&25B860AD&0&0000

USB\VID_045E&PID_028E&IG_00\2&dee0f28&2&00

image

I had VIGemBus already installed before DUO. (If i remember correctly)

Black-Seraph commented 9 months ago

@Gammler @XexuWilder Let's try this.

  1. Make sure you're running the latest Duo build (just in case you weren't already).
  2. Stop all Duo instances.
  3. Replace Duo's sunshine.exe with this patched version.
  4. Start your Duo instances back up and give it another go.

I've switched to asynchronous device initialization in ViGEmBus' client library, this is the best I can do to get in and patch the gamepad device's session ID property as early as possible.

I've also upped the device jailing maximum wait time from 1 to 2 seconds.

With those changes I can no longer make Steam pick up the jailed virtual gamepad devices regardless of whether Steam is already running or not, which is good, that's what we want, but I need a few external testers in here to peer review the change before we wrap it up into a 1.2.8 build.

XexuWilder commented 9 months ago

Hello.

Host PC: -Uninstall everything excepto vigem bus -Install duo 1.2.7 + overwrite shunshine.exe patched you linked -create 2 instances

Client 1 PC -Moonlight connecting to instance 1 to desktop. Connected

Client 2 PC -Moonlight connecting to instance 2 to steam. Connected

When I press the controller input attached to client 1 PC, it appears on client 2 steam big picture screen.

I don't know if I'm doing something wrong

XexuWilder commented 9 months ago

Another Test:

Client 1 -> using playnite (no steam open) Client 2 -> using retroarch (no steam open)

Same problem, client 1 inputs appears on retroarch of client 2

Black-Seraph commented 9 months ago

I can't seem to reproduce your issue.

This is how I usually test:

  1. Client 1 connects to Instance 1 (Steam Deck OLED)
  2. Client 1 opens Steam
  3. Client 2 connects to Instance 2 (ROG Ally)
  4. Client 2 opens a non-Steam game (in my case Alan Wake 2)
  5. Client 1 enters Big Picture Mode in Steam

Client 1 only sees its own virtual gamepad, the same goes for Client 2... both Alan Wake 2 & Steam Big Picture mode work as intended, executing joy.cpl on each instance also only shows their own gamepads, and device manager does the same.

@XexuWilder Do you, by any chance, use any other virtual gamepad software in combination with Duo? DS4Windows, X360CE, some cryptic odd AHK-based something maybe?

If possible attach your instance's log files after having caused an issue.

XexuWilder commented 9 months ago

I don't have anything installed.

In fact, If I uninstall vigem, the gamepad doesnt work when I connect any client.

I can test with other clients

XexuWilder commented 9 months ago

Same result with:

Client 1 - Windows handheld (one xplayer one X fly) (just like rog asus) Client 2 - PSVita moonlight

Without using steam, same problem. I can see 2 controllers on joy.cpl and inputs replicate in both clients.

Black-Seraph commented 9 months ago

You still haven't provided any instance log files.

XexuWilder commented 9 months ago

Where are the logs? wich files should I upload?

Black-Seraph commented 9 months ago

Where are the logs? wich files should I upload?

You will find log files named after your instance in C:\Program Files\Duo\config, make your issue appear, then upload the log files, together with a description of the issue and how you created it here.

Black-Seraph commented 9 months ago

The previously attached patched sunshine.exe is no longer needed as the changes have been merged into version 1.2.8.

I will leave this issue open though as several people apparently still have issues.

I'll be awaiting updated responses from the affected people involved.

ukdanmc commented 9 months ago

Hi, just to comment here that I installed the latest version of DuoStream last night. Running two sessions with a Xbox controller attached to a Mac via bluetooth. The controller affected both sessions, so isolation wasn't working. I'll look to send you through some logs when I get the time.

Black-Seraph commented 9 months ago

Hi, just to comment here that I installed the latest version of DuoStream last night. Running two sessions with a Xbox controller attached to a Mac via bluetooth. The controller affected both sessions, so isolation wasn't working. I'll look to send you through some logs when I get the time.

Please do.

There's really very little I can do without them.

gattostivalato commented 9 months ago

Hey there, unfortunately I have to confirm the issue persists in 1.2.8 for me as well.

Session A: macOS with 8BitDo SF30 PRO over bluetooth Session B: iOS with Backbone over USB-C

Joy.cpl in Session A sees both controllers, but clicking Properties and testing them only affects their respective entry. In the past, controller from Session B would register movements in the Session A's controller, and it was the only one displayed.

Joy.cpl in Session B sees both controllers, however in Properties, only the Backbone input is registered for the second controller detected. The first controller doesn't register any input whatsoever, despite being connected to Session A.

Example game: Palworld over Steam - Session B is controlling Session A and Session B simultaneously. Controller from Session A doesn't register any input as soon as Session B joins.

As always, thanks for your continued hard work on this, it really is appreciated!

Logs from Session A:

[2024:02:11:21:06:54]: Info: nvprefs: Opened undo file from previous improper termination [2024:02:11:21:06:54]: Info: nvprefs: Restored OGL_CPL_PREFER_DXPRESENT for base profile [2024:02:11:21:06:54]: Info: nvprefs: Restored global profile settings from undo file - deleting the file [2024:02:11:21:06:54]: Info: nvprefs: No need to modify application profile settings [2024:02:11:21:06:54]: Info: nvprefs: Changed OGL_CPL_PREFER_DXPRESENT to OGL_CPL_PREFER_DXPRESENT_PREFER_ENABLED for base profile [2024:02:11:21:06:54]: Info: Sunshine version: 0.21.0.0bd3e7c [2024:02:11:21:06:54]: Info: Compiling shaders... [2024:02:11:21:06:54]: Info: System tray created [2024:02:11:21:06:54]: Info: Compiled shaders 2024:02:11:21:07:10: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // 2024:02:11:21:07:10: Info: Trying encoder nvenc: Info: ddprobe.exe [1] [] returned: 0x00000000 2024:02:11:21:07:10: Info: Set GPU preference: 1

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:07:10: Info: Active GPU has HAGS disabled 2024:02:11:21:07:10: Info: Using realtime GPU priority 2024:02:11:21:07:10: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:07:10: Info: Active GPU has HAGS disabled 2024:02:11:21:07:10: Info: Using realtime GPU priority 2024:02:11:21:07:10: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:07:10: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:07:10: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:07:11: Info: Active GPU has HAGS disabled 2024:02:11:21:07:11: Info: Using realtime GPU priority 2024:02:11:21:07:11: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:07:11: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:07:11: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:07:11: Info: Active GPU has HAGS disabled 2024:02:11:21:07:11: Info: Using realtime GPU priority 2024:02:11:21:07:11: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:07:11: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:07:11: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:07:11: Info: Active GPU has HAGS disabled 2024:02:11:21:07:11: Info: Using realtime GPU priority 2024:02:11:21:07:11: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:07:11: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:07:11: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:07:11: Info: Active GPU has HAGS disabled 2024:02:11:21:07:11: Info: Using realtime GPU priority 2024:02:11:21:07:11: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:07:11: Info: SDR color coding Rec. 709: Info: Color depth: 10-bit 2024:02:11:21:07:11: Info: Color range: JPEG: Info: NvEnc: created encoder P1 10-bit two-pass rfi

2024:02:11:21:07:11: Info: // Ignore any errors mentioned above, they are not relevant. //

2024:02:11:21:07:11: Info: Found H.264 encoder: h264_nvenc nvenc: Info: Found HEVC encoder: hevc_nvenc nvenc: Info: Configuration UI available at [https://localhost:42456] [2024:02:11:21:07:12]: Info: Registered Sunshine mDNS service 2024:02:11:21:09:54: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // 2024:02:11:21:09:54: Info: Trying encoder [nvenc]

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:09:54: Info: Active GPU has HAGS disabled 2024:02:11:21:09:54: Info: Using realtime GPU priority 2024:02:11:21:09:54: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:09:54: Info: Active GPU has HAGS disabled 2024:02:11:21:09:54: Info: Using realtime GPU priority 2024:02:11:21:09:54: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:09:54: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:09:54: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:09:54: Info: Active GPU has HAGS disabled 2024:02:11:21:09:54: Info: Using realtime GPU priority 2024:02:11:21:09:54: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:09:54: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:09:54: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:09:54: Info: Active GPU has HAGS disabled 2024:02:11:21:09:54: Info: Using realtime GPU priority 2024:02:11:21:09:54: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:09:54: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:09:54: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:09:55: Info: Active GPU has HAGS disabled 2024:02:11:21:09:55: Info: Using realtime GPU priority 2024:02:11:21:09:55: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:09:55: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:09:55: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:09:55: Info: Active GPU has HAGS disabled 2024:02:11:21:09:55: Info: Using realtime GPU priority 2024:02:11:21:09:55: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:09:55: Info: SDR color coding Rec. 709: Info: Color depth: 10-bit 2024:02:11:21:09:55: Info: Color range: JPEG: Info: NvEnc: created encoder P1 10-bit two-pass rfi

2024:02:11:21:09:55: Info: // Ignore any errors mentioned above, they are not relevant. //

2024:02:11:21:09:55: Info: Found H.264 encoder: h264_nvenc nvenc: Info: Found HEVC encoder: hevc_nvenc nvenc: Info: Executing Desktop: Info: nvprefs: No need to modify application profile settings 2024:02:11:21:09:55: Info: nvprefs: No need to modify global profile settings 2024:02:11:21:09:55: Info: CLIENT CONNECTED

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 1920x1080 Offset : 0x0 Virtual Desktop : 1920x1080 2024:02:11:21:09:55: Info: Active GPU has HAGS disabled 2024:02:11:21:09:55: Info: Using realtime GPU priority 2024:02:11:21:09:55: Info: Display refresh rate 60Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:09:55: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:09:55: Info: Color range: MPEG: Info: NvEnc: created encoder P1 two-pass rfi [2024:02:11:21:09:56]: Info: Gamepad 0 will be DualShock 4 controller (auto-selected by client-reported type) [2024:02:11:21:34:49]: Info: Web UI: [127.0.0.1] -- not authorized [2024:02:11:21:38:29]: Info: Gamepad 0 will be DualShock 4 controller (auto-selected by client-reported type)

Logs from Session B:

[2024:02:11:21:20:48]: Error: nvprefs: Couldn't open undo file from previous improper termination, or confirm that there's no such file [2024:02:11:21:20:48]: Info: nvprefs: No need to modify application profile settings [2024:02:11:21:20:48]: Info: nvprefs: No need to modify global profile settings [2024:02:11:21:20:48]: Info: Sunshine version: 0.21.0.0bd3e7c [2024:02:11:21:20:48]: Info: Compiling shaders... [2024:02:11:21:20:48]: Info: System tray created [2024:02:11:21:20:48]: Info: Compiled shaders [2024:02:11:21:21:02]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // [2024:02:11:21:21:02]: Info: Trying encoder nvenc: Info: ddprobe.exe [1] [] returned: 0x00000000 2024:02:11:21:21:03: Info: Set GPU preference: 1

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:03: Info: Active GPU has HAGS disabled 2024:02:11:21:21:03: Info: Using realtime GPU priority 2024:02:11:21:21:03: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:03: Info: Active GPU has HAGS disabled 2024:02:11:21:21:03: Info: Using realtime GPU priority 2024:02:11:21:21:03: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:03: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:03: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:03: Info: Active GPU has HAGS disabled 2024:02:11:21:21:03: Info: Using realtime GPU priority 2024:02:11:21:21:03: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:03: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:03: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:03: Info: Active GPU has HAGS disabled 2024:02:11:21:21:03: Info: Using realtime GPU priority 2024:02:11:21:21:03: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:03: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:03: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:03: Info: Active GPU has HAGS disabled 2024:02:11:21:21:03: Info: Using realtime GPU priority 2024:02:11:21:21:03: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:03: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:03: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:03: Info: Active GPU has HAGS disabled 2024:02:11:21:21:03: Info: Using realtime GPU priority 2024:02:11:21:21:03: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:03: Info: SDR color coding Rec. 709: Info: Color depth: 10-bit 2024:02:11:21:21:03: Info: Color range: JPEG: Info: NvEnc: created encoder P1 10-bit two-pass rfi

2024:02:11:21:21:04: Info: // Ignore any errors mentioned above, they are not relevant. //

2024:02:11:21:21:04: Info: Found H.264 encoder: h264_nvenc nvenc: Info: Found HEVC encoder: hevc_nvenc nvenc: Info: Configuration UI available at https://localhost:37073: Info: Registered Sunshine mDNS service 2024:02:11:21:21:11: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // 2024:02:11:21:21:11: Info: Trying encoder [nvenc]

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:11: Info: Active GPU has HAGS disabled 2024:02:11:21:21:11: Info: Using realtime GPU priority 2024:02:11:21:21:11: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:11: Info: Active GPU has HAGS disabled 2024:02:11:21:21:11: Info: Using realtime GPU priority 2024:02:11:21:21:11: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:11: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:11: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:11: Info: Active GPU has HAGS disabled 2024:02:11:21:21:11: Info: Using realtime GPU priority 2024:02:11:21:21:11: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:11: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:11: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:11: Info: Active GPU has HAGS disabled 2024:02:11:21:21:11: Info: Using realtime GPU priority 2024:02:11:21:21:11: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:11: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:11: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:12: Info: Active GPU has HAGS disabled 2024:02:11:21:21:12: Info: Using realtime GPU priority 2024:02:11:21:21:12: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:12: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:12: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:12: Info: Active GPU has HAGS disabled 2024:02:11:21:21:12: Info: Using realtime GPU priority 2024:02:11:21:21:12: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:12: Info: SDR color coding Rec. 709: Info: Color depth: 10-bit 2024:02:11:21:21:12: Info: Color range: JPEG: Info: NvEnc: created encoder P1 10-bit two-pass rfi

2024:02:11:21:21:12: Info: // Ignore any errors mentioned above, they are not relevant. //

2024:02:11:21:21:12: Info: Found H.264 encoder: h264_nvenc nvenc: Info: Found HEVC encoder: hevc_nvenc nvenc: Info: Executing Desktop: Error: nvprefs: Couldn't open undo file from previous improper termination, or confirm that there's no such file 2024:02:11:21:21:12: Info: nvprefs: No need to modify application profile settings 2024:02:11:21:21:12: Info: nvprefs: No need to modify global profile settings 2024:02:11:21:21:12: Info: CLIENT CONNECTED

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:21:12: Info: Active GPU has HAGS disabled 2024:02:11:21:21:12: Info: Using realtime GPU priority 2024:02:11:21:21:12: Info: Display refresh rate 120Hz: Info: Requested frame rate [120fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:21:12: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:21:12: Info: Color range: MPEG: Info: Gamepad 0 will be Xbox 360 controller (default) 2024:02:11:21:21:12: Info: NvEnc: created encoder P1 two-pass rfi [2024:02:11:21:34:58]: Info: Web UI: [127.0.0.1] -- not authorized [2024:02:11:21:41:14]: Info: CLIENT DISCONNECTED 2024:02:11:21:45:07: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. // 2024:02:11:21:45:07: Info: Trying encoder [nvenc]

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:45:07: Info: Active GPU has HAGS disabled 2024:02:11:21:45:07: Info: Using realtime GPU priority 2024:02:11:21:45:07: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:45:07: Info: Active GPU has HAGS disabled 2024:02:11:21:45:07: Info: Using realtime GPU priority 2024:02:11:21:45:07: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:45:07: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:45:07: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:45:07: Info: Active GPU has HAGS disabled 2024:02:11:21:45:07: Info: Using realtime GPU priority 2024:02:11:21:45:07: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:45:07: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:45:07: Info: Color range: JPEG: Info: NvEnc: created encoder P1 two-pass rfi

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:45:07: Info: Active GPU has HAGS disabled 2024:02:11:21:45:07: Info: Using realtime GPU priority 2024:02:11:21:45:07: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:45:07: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:45:07: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:45:07: Info: Active GPU has HAGS disabled 2024:02:11:21:45:07: Info: Using realtime GPU priority 2024:02:11:21:45:07: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:45:08: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:45:08: Info: Color range: JPEG: Error: NvEnc: encoding format is not supported by the gpu

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:45:08: Info: Active GPU has HAGS disabled 2024:02:11:21:45:08: Info: Using realtime GPU priority 2024:02:11:21:45:08: Info: Display refresh rate 120Hz: Info: Requested frame rate [60fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:45:08: Info: SDR color coding Rec. 709: Info: Color depth: 10-bit 2024:02:11:21:45:08: Info: Color range: JPEG: Info: NvEnc: created encoder P1 10-bit two-pass rfi

2024:02:11:21:45:08: Info: // Ignore any errors mentioned above, they are not relevant. //

2024:02:11:21:45:08: Info: Found H.264 encoder: h264_nvenc nvenc: Info: Found HEVC encoder: hevc_nvenc nvenc: Error: nvprefs: Couldn't open undo file from previous improper termination, or confirm that there's no such file 2024:02:11:21:45:08: Info: nvprefs: No need to modify application profile settings 2024:02:11:21:45:08: Info: nvprefs: No need to modify global profile settings 2024:02:11:21:45:08: Info: CLIENT CONNECTED

Device Description : NVIDIA GeForce RTX 3090 Ti Device Vendor ID : 0x000010DE Device Device ID : 0x00002203 Device Video Mem : 24327 MiB Device Sys Mem : 0 MiB Share Sys Mem : 16326 MiB Feature Level : 0x0000B100 Capture size : 2796x1290 Offset : 0x0 Virtual Desktop : 2796x1290 2024:02:11:21:45:08: Info: Active GPU has HAGS disabled 2024:02:11:21:45:08: Info: Using realtime GPU priority 2024:02:11:21:45:08: Info: Display refresh rate 120Hz: Info: Requested frame rate [120fps]

Colorspace : DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 Bits Per Color : 8 Red Primary : [0,0] Green Primary : [0,0] Blue Primary : [0,0] White Point : [0,0] Min Luminance : 0 nits Max Luminance : 0 nits Max Full Luminance : 0 nits 2024:02:11:21:45:08: Info: SDR color coding Rec. 601: Info: Color depth: 8-bit 2024:02:11:21:45:08: Info: Color range: MPEG: Info: Gamepad 0 will be Xbox 360 controller (default) 2024:02:11:21:45:08: Info: NvEnc: created encoder P1 two-pass rfi

Black-Seraph commented 9 months ago

Your logs contain 0 jail messages, as such its not surprising that the jailing isn't working for you, because your instance doesn't jail anything at all.

Now that we know what the problem is, namely the jailing code not triggering at all, we can go in search of why that is.

For starters:

  1. Open the "Device Manager" on the Duo host machine
  2. Scroll down to "System Devices" and unfold the node
  3. Scroll down until you find "Nefarius Virtual Gamepad Emulation Bus", right-click and choose "Properties"
  4. Change to the "Details" tab, click the "Property" combo-box and select "Device instance path".
  5. Copy and poste the "Value" so I can take a look at it (it should be something like ROOT\SYSTEM...)
gattostivalato commented 9 months ago

Thanks! Should I do this while sessions are running, while sessions are connected, or that doesn’t matter?

Black-Seraph commented 9 months ago

Thanks! Should I do this while sessions are running, while sessions are connected, or that doesn’t matter?

For this one it doesn't matter. Duo doesn't even have to be running.

gattostivalato commented 9 months ago

Here it is:

ROOT\SYSTEM\0002

Black-Seraph commented 9 months ago

Here it is:

ROOT\SYSTEM\0002

And there's the problem... we're accessing "ROOT\SYSTEM\0001", which makes me wonder... what is occupying this device path on your system that ViGEmBus has to move into 2nd position.

I think you might have blown this case wide open though... I now know exactly why it works perfectly for some and not at all for others... I will fix this with 1.2.9.

Gammler commented 9 months ago

The funny thing is, i had big problems because of Vigembus with my brother when trying to play RemotePlay on Steam. It was installed through DS4Windows which he had installed earlier and it constantly added another Xbox 360 Controller with his real Xbox One Elite Controller. This made him join with 2 controllers into the session always. We had to replug his physical controller every time this happened. I know this is not directly related to Duo but it shows how weird older installations of vigembus act and fuck up everything.

It is ROOT\SYSTEM\0002 for me too here.

image

gattostivalato commented 9 months ago

Here it is: ROOT\SYSTEM\0002

And there's the problem... we're accessing "ROOT\SYSTEM\0001", which makes me wonder... what is occupying this device path on your system that ViGEmBus has to move into 2nd position.

I think you might have blown this case wide open though... I now know exactly why it works perfectly for some and not at all for others... I will fix this with 1.2.9.

Great to know you have some indication of the issue!

Not sure if at all relevant, my host has a USB hub switcher connected at all times, I use it to switch input between host and my work laptop, and has a keyboard and mouse plugged into it.

Gammler commented 9 months ago

So i assume ROOT\SYSTEM\0001 is not a safe assumption in your code @Black-Seraph

Gammler commented 9 months ago

How can i get a list of the ROOT\SYSTEM\ devices?

Black-Seraph commented 9 months ago

@Gammler The easiest way is to just use the Windows enumeration APIs, but that requires you program a few snippets yourself.

Don't worry about it though... I'll just change the code to find the ViGEmBus via its description property instead.

That should be a good enough solution for this problem.

ukdanmc commented 9 months ago

Just checked on my machine and its 0005 !

Screenshot 2024-02-12 at 16 04 21
Black-Seraph commented 9 months ago

Just checked on my machine and its 0005 !

Well. It's safe to say we found the culprit then, isn't it?

Gammler commented 9 months ago

I uninstalled the Xbox Extended Driver in Steam and reinstalled vigembus and it showed 0001.

Then i uninstalled vigembus again, installed the Xbox Extended Driver and reinstalled Vigembus => 0002

image

I also have installed VirtualHere USB which is very important for me. Also my Logitech Driving Wheel is using Port 0004

Black-Seraph commented 9 months ago

Ah... so Steam's at play here. Good to know who messed us up then.

Either way, it won't matter in a few minutes.

Gammler commented 9 months ago

Yeah weird. But we have to be clear here. Steam seems to be not the only one. Like my Logitech Wheel using 0004

Black-Seraph commented 9 months ago

Shouldn't matter.

Version 1.2.9 is now out and should fix this issue.

To everyone involved: Please install the new version and verify that things are now in working order.

If not, attach your instance log files, as usual.

Gammler commented 9 months ago

Thanks for the update. It works now with 0002 and v1.2.9.


Before i go off topic here. Where is a place for general discussions regarding duo. Because i just saw that this update brings another huge change for me and i need to have some info about it.

Black-Seraph commented 9 months ago

Thanks for the update. It works now with 0002 and v1.2.9.

You have no idea how happy I am to be reading this.

Before i go off topic here. Where is a place for general discussions regarding duo. Because i just saw that this update brings another huge change for me and i need to have some info about it.

I figure you're talking about #39?

If so, don't worry about it all too much.

All it really does is let Moonlight control the virtual monitor, which means the virtual monitor will now dynamically match whatever you've got configured there, allowing for real-time changes without having to restart Duo.

Let's say your Moonlight client is set to stream at 1920x1080@60Hz with HDR enabled... Well, Duo will automatically switch its virtual monitor to exactly those settings right before you start streaming.

If another client later connects to the same instance with, lets say, 1280x720@120Hz with HDR disabled... Then Duo will automatically change its settings to match again.

This is also why these settings are no longer present inside the Duo Manager, as they are no longer needed.

The same applies for scaling, as its now calculated from the screen resolution with a baseline of 1280x720@100%, scaling up or down as needed for every resolution possible, all the way up to a theoretical 8K stream, maxing out at 500%.

gattostivalato commented 9 months ago

Can’t wait to try 1.2.9 and also get rid of device-specific sessions (like iPhone iPad etc). Will report back asap! 💙

Black-Seraph commented 9 months ago

I actually found an issue with sub-720p resolution scale factors, so you might want to wait a few minutes for 1.3.0 to pop.

Either way. Time to close this issue and not stray off-topic too far.

Gammler commented 8 months ago

Just for documentation that me thinking Steam was the problem on my side was not wrong:

image