-
Notifications
You must be signed in to change notification settings - Fork 1.4k
NVIDIA: Defensive check for UsdSkel_SkelAnimationQueryImp to avoid crash #3544
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
NVIDIA: Defensive check for UsdSkel_SkelAnimationQueryImp to avoid crash #3544
Conversation
|
@nvmkuruc for vis |
pxr/usdImaging/usdSkelImaging/testEnv/testUsdSkelImagingSkeletonAdapter.cpp
Outdated
Show resolved
Hide resolved
2cdbbee to
f367121
Compare
|
Filed as internal issue #USD-10701 (This is an automated message. See here for more information.) |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
|
||
| // Remove animation and update skelroot's visibility | ||
| { | ||
| SdfChangeBlock changeBlock; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not generally safe to call USD APIs in a SdfChangeBlock context. Is the SdfChangeBlock necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it isn't. I removed it.
f367121 to
11ff1b9
Compare
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/AzurePipelines run |
aee8f1f to
1c5893d
Compare
Removing animation prim with visiblity update to UsdSkelRoot may cause a crash. Closes PixarAnimationStudios#3544 (Internal change: 2369232)
Description of Change(s)
Removing animation prim with visiblity update to UsdSkelRoot may cause crash to hydra code.
Link to proposal (if applicable)
Fixes Issue(s)
Checklist
I have created this PR based on the dev branch
I have followed the coding conventions
I have added unit tests that exercise this functionality (Reference:
testing guidelines)
I have verified that all unit tests pass with the proposed changes
I have submitted a signed Contributor License Agreement (Reference:
Contributor License Agreement instructions)