Open gaetanverbrugghehogent opened 2 years ago
It looks like Apple is using the Windows DRM APIs to prevent display capture while the prompt is being displayed.
We can confirm by looking at your host-side logs from C:\ProgramData\NVIDIA Corporation\NvStream
after a disconnect happens.
Thanks for the reply. This is the host-side log: NvStreamerCurrent.log
If the issue is what you described earlier, is there any way to fix this other than by disabling iCloud Keychain?
Yep, confirmed in the logs that it's due to protected content:
moonlight-stream/moonlight-qt#9(W)[2021-11-10 14:08:50,104]=15:08:50={8492}<Fbc7FrameProvide> Capture failure, reported capture resolution is 0 x 0 pitch 0. Writing a black frame.
#0(I)[2021-11-10 14:08:50,104]=15:08:50={8492}<Fbc7FrameProvide> Capture resolution is now 1280 x 720 pitch 0.
moonlight-stream/moonlight-qt#1(W)[2021-11-10 14:08:50,104]=15:08:50={8492}<Fbc7FrameProvide> Failed to grab frame as it is protected content.
moonlight-stream/moonlight-qt#2(E)[2021-11-10 14:08:50,104]=15:08:50={8492}<Fbc7FrameProvide> Failed to grab frame: -4 (NVFBC_ERROR_PROTECTED_CONTENT).
moonlight-stream/moonlight-qt#3(E)[2021-11-10 14:08:50,104]=15:08:50={8492}<CaptureThread> Failed to capture frame 0.
moonlight-stream/moonlight-qt#4(I)[2021-11-10 14:08:50,104]=15:08:50={8492}<CaptureThread> Finished with status STATUS_GRAB_ERROR after capturing 0 frames
moonlight-stream/moonlight-qt#5(I)[2021-11-10 14:08:50,104]=15:08:50={8492}<CaptureThread> Dropped 0 frames (0.000%)
moonlight-stream/moonlight-qt#6(I)[2021-11-10 14:08:50,104]=15:08:50={8492}<CaptureThread> Capture ended abnormally
If there's no way to turn off this sort of protection in iCloud Keychain, then yeah unfortunately I don't think there are any workarounds.
Describe the bug I have the iCloud Keychain extension for Chrome installed on the server. Whenever you go to a site that asks for a password, you have to enter a 6-digit verification code first that pops up on screen. After that you can select the saved password. I connected to my server using mstsc so that I would have full remote desktop functionality, but when the verification code pop-up appears the stream is disconnected and it is impossible to reconnect until you physically close the pop-up on the server.
Steps to reproduce
Screenshots https://user-images.githubusercontent.com/80333845/141130070-f5b0bfa6-7f6e-4f84-93d6-b1005b8b2924.mov
Other Moonlight clients
Moonlight settings (please complete the following information)
Client PC details (please complete the following information)
Server PC details (please complete the following information)
Moonlight Logs (please attach) Moonlight-1636403467.log Moonlight-1636410637.log Moonlight-1636412929.log Moonlight-1636413324.log Moonlight-1636413358.log Moonlight-1636413579.log Moonlight-1636413864.log Moonlight-1636414396.log Moonlight-1636414904.log Moonlight-1636470244.log Moonlight-1636481395.log Moonlight-1636552396.log
Additional context Anything else you think may be relevant to the issue