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

Fix windows debug build assertion in std::stl #2127

Conversation

AdamFelt
Copy link
Contributor

@AdamFelt AdamFelt commented Dec 8, 2022

On a windows debug build we were faced with few crashes due to asserts in std::stl. The crash is tripped inside pxr/usdImaging/usdImaging/delegate.cpp#L1100 . In there, the alg. is multithreaded with a final wait for completion in line 1105. This problem appears to be related to threading. In each thread, one is passing usdPath by reference which is not thread safe.
This change makes it thread safe by passing a const reference.

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

@sunyab
Copy link
Contributor

sunyab commented Dec 9, 2022

Filed as internal issue #USD-7823

@pixar-oss pixar-oss merged commit 4038e9e into PixarAnimationStudios:dev Jan 4, 2023
@AdamFelt AdamFelt deleted the adsk/bugfix/pending_update_threads branch January 11, 2023 00:42
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