Skip to content

Comments

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

Merged
pmuetschard merged 3 commits intogoogle:masterfrom
pmuetschard:cleanup
Feb 28, 2019
Merged

Don't rely on context cancelation to release a Vulkan device.#2628
pmuetschard merged 3 commits intogoogle:masterfrom
pmuetschard:cleanup

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