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

Autodesk: Fix leaking Vulkan buffer from HdSt_PipelineDrawBatch #3313

Conversation

erikaharrison-adsk
Copy link
Contributor

Description of Change(s)

This went undetected by the validation layer because the tests were also leaking the Vulkan instance and device, so they were never destroyed, and the validation check never kicked in. So fix the leaking tests too.

This also fixes an occasional crash from a driver trying to use a resource after the tests had exited main(), because the HgiVulkan leak also meant no synchronization.

Added some more buffer naming to help debug the leak and included it in the PR as it's useful for debugging.

Fixes Issue(s)

  • N/A
  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

This went undetected by the validation layer because the
tests were also leaking the Vulkan instance and device,
so they were never destroyed, and the validation check never
kicked in. So fix the leaking tests too.

This also fixes an occasional crash from a driver trying
to use a resource after the tests had exited main(),
because the HgiVulkan leak also meant no synchronization.
@jesschimein
Copy link
Contributor

Filed as internal issue #USD-10181

@jesschimein
Copy link
Contributor

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@clach clach merged commit f2fb0c9 into PixarAnimationStudios:feature-hgi-vulkan Oct 10, 2024
5 checks passed
@erikaharrison-adsk erikaharrison-adsk deleted the adsk/bugfix/vk-draw-batch-leak branch October 25, 2024 19:02
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 this pull request may close these issues.

4 participants