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

Add a check for a valid UsdPrim when looping over affectedPrims in _RefreshObject #685

Conversation

marktucker
Copy link
Contributor

Prevent a crash when processing a stage update in hydra in which a prim is
deleted from the stage, and a collection which points directly to that prim
is updated. This would crash while processing the change to the collection,
as it would access the underlying UsdPrim from the index's PrimInfo map
without checking that it is still valid. To get around this, test the
validity of the UsdPrims that show up in the affectedPrims list.

Fixes Issue(s)

684

…im is

deleted from the stage, and a collection which points directly to that prim
is updated. This would crash while processing the change to the collection,
as it would access the underlying UsdPrim from the index's PrimInfo map
without checking that it is still valid. To get around this, test the
validity of the UsdPrims that show up in the affectedPrims list.
@jtran56
Copy link

jtran56 commented Nov 2, 2018

Filed as internal issue #USD-4893.

@pixar-oss pixar-oss merged commit 35bac52 into PixarAnimationStudios:dev Nov 21, 2018
pixar-oss added a commit that referenced this pull request Nov 21, 2018
…rash

Add a check for a valid UsdPrim when looping over affectedPrims in _RefreshObject

(Internal change: 1915148)
@marktucker marktucker deleted the dev_hydra_collection_update_crash branch November 22, 2018 20:38
AdamFelt pushed a commit to autodesk-forks/USD that referenced this pull request Apr 16, 2024
…s#685)

### Description of Change(s)
Move genericText structure to USD.
### Fixes Issue(s)
-

<!--
Please follow the Contributing and Building guidelines to run tests against your
change. Place an X in the box if tests are run and are all tests passing.
-->
- [ ] I have verified that all unit tests pass with the proposed changes
<!--
Place an X in the box if you have submitted a signed Contributor License Agreement.
A signed CLA must be received before pull requests can be merged.
For instructions, see: http://openusd.org/release/contributing_to_usd.html
-->
- [ ] I have submitted a signed Contributor License Agreement

(cherry picked from commit e13fb5df34a57929f04bf982d14f29091ca1755c)
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