Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VideoCaptureWinRTInternal StopCapture timeout causes the app to crash #87

Closed
FrayxRulez opened this issue Sep 15, 2020 · 1 comment · Fixed by #100
Closed

VideoCaptureWinRTInternal StopCapture timeout causes the app to crash #87

FrayxRulez opened this issue Sep 15, 2020 · 1 comment · Fixed by #100

Comments

@FrayxRulez
Copy link
Contributor

VideoCaptureWinRTInternal::StopCapture uses a 250 milliseconds timeout when invoking media_frame_reader_->StopAsync method. This actually seems to cause a crash whenever the timeout is actually reached, and I guess that this isn't the wanted behavior.

@FrayxRulez
Copy link
Contributor Author

So this seems to be a boarder problem caused by how IAsyncOperations are handled, and ::SetEvent throws the following exception:
ERROR_CODE: (NTSTATUS) 0xc0000008 - An invalid HANDLE was specified.

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

Successfully merging a pull request may close this issue.

1 participant