D3DShot icon indicating copy to clipboard operation
D3DShot copied to clipboard

The keyed mutex was abandoned

Open lezzi opened this issue 4 years ago • 2 comments

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.

lezzi avatar Jul 23 '20 20:07 lezzi

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.

grumd avatar Aug 11 '20 12:08 grumd

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..

Hellikandra avatar Aug 11 '20 19:08 Hellikandra