question

Kevyin-9504 avatar image
0 Votes"
Kevyin-9504 asked ZhengYangGu-4536 answered

Capture desktop by DXGI in Hyper-V Virtual Machine return DXGI_ERROR_ACCESS_LOST

I created a VM by hyper-v and passthrought a GTX1660s into the VM by DDA(Discrete Device Assignment). The host system and VM system are both WIN10 21H2 version.
It's work well, Dxdiag shows the gpu is OK.
173223-pic1.png


When I capture the desktop by DXGI in the VM, the function AcquireNextFrame() always return DXGI_ERROR_ACCESS_LOST.
173189-pic2.png


Interesting! I find that if I play a video on the desktop, I can catch the desktop everytime. But when I minize the vedio and let the desktop be statics , the DXGI_ERROR_ACCESS_LOST will make my catching fail.

How can I stably capture the desktop by DXGI?


windows-10-hyperv
pic1.png (88.3 KiB)
pic2.png (15.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ZhengYangGu-4536 avatar image
0 Votes"
ZhengYangGu-4536 answered

怀疑是折腾安卓子系统的锅。It must be Andriod subsystem's fault.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.