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

Don't rely on context cancelation to release a Vulkan device. #2628

Merged
merged 3 commits into from
Feb 28, 2019

Conversation

pmuetschard
Copy link
Member

This is an old bug that got exasperated recently. The context was never cancelled if the trace "finished" on its own - i.e. it was bounded by the number of frames captures or the app exited/crashed. Recently, a user request to stop tracing was also changed to not cancel the context either, causing the device to be released even less often. (It appears the context may sometimes get cancelled on gapis exit.)

Fixes #2622

A simple type alias to make it clear what the returned function is for,
as well as some simple utilities to make using cleanup functions a bit
more expressive.
This is an old bug that got exasperated recently. The context was
never cancelled if the trace "finished" on its own - i.e. it was
bounded by the number of frames captures or the app exited/crashed.
Recently, a user request to stop tracing was also changed to not
cancel the context either, causing the device to be released even
less often. (It appears the context may sometimes get cancelled on
gapis exit.)

Fixes google#2622
@pmuetschard pmuetschard merged commit 6010fe0 into google:master Feb 28, 2019
@pmuetschard pmuetschard deleted the cleanup branch February 28, 2019 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants