Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

The keyed mutex was abandoned #30

Open
lezzi opened this issue Jul 23, 2020 · 2 comments
Open

The keyed mutex was abandoned #30

lezzi opened this issue Jul 23, 2020 · 2 comments

Comments

@lezzi
Copy link

lezzi commented Jul 23, 2020

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
Copy link

grumd commented Aug 11, 2020

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants