SerpentAI / D3DShot

Extremely fast and robust screen capture on Windows with the Desktop Duplication API
MIT License
323 stars 73 forks source link

The keyed mutex was abandoned #30

Open lezzi opened 3 years ago

lezzi commented 3 years ago

When any DX11 game in the fullscreen mode is focused - "The keyed mutex was abandoned." is thrown from the AcquireNextFrame. Library keeps producing last screenshot forever and unfortunately it does not recover from this state until the capturing process is restarted from scratch.

Also if capturing is started after you focus fullscreen game, it works fine. But the moment you alt-tab back to desktop, it fails.

grumd commented 3 years ago

Since nobody is responding here, and I had the same issue...

https://pypi.org/project/screen-recorder-sdk/

This python package was the only thing that worked with the game I wanted to capture.

Hellikandra commented 3 years ago

extracted from MSDN info :

DXGI_ERROR_ACCESS_LOST if the desktop duplication interface is invalid. The desktop duplication interface typically becomes invalid when a different type of image is displayed on the desktop. Examples of this situation are:
- Desktop switch
- Mode change
- Switch from DWM on, DWM off, or other full-screen application
In this situation, the application must release the IDXGIOutputDuplication interface and create a new IDXGIOutputDuplication for the new content

You enter in those cases. If we compare with screen-recorder-sdk, this issue is cover by Release and Try again..