Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Glf] Fixed an empty GlfSimpleShadowArray instance being leaked. #786

Merged

Conversation

ppenenko
Copy link
Contributor

@ppenenko ppenenko commented Mar 7, 2019

Description of Change(s)

An instance of GlfSimpleShadowArray created by GlfSimpleLightingContext was missing a TfCreateRefPtr wrapper which caused it to be leaked. In the pxrUsd Maya plugin, this happened on every frame because of a temporary lighting context used to retrieve lighting settings from Maya.

By the way, is TfRefPtr here to stay, or can it be replaced with boost or standard pointers in the future? TfCreateRefPtr is unfortunately very easy to miss.

@c64kernal
Copy link
Contributor

Great catch, @ppenenko -- thank you. We don't appear to have a record of a CLA from you, would you mind sending one in (or asking your company to amend a previous CLA to include you).

@ppenenko
Copy link
Contributor Author

ppenenko commented Mar 8, 2019

Oh sorry, I thought our corporate CLA covered me already, I'll look into it.

@c64kernal
Copy link
Contributor

Thanks @ppenenko!

@jilliene
Copy link

Filed as internal issue #USD-5135

@c64kernal
Copy link
Contributor

Just an update on this, @ppenenko -- we think this change is great, but after integrating it locally we found some crashes in our local testing. We think this is due to some other part of our code base that isn't doing some right, but we'll have to track that down before we can merge this back in.

@c64kernal
Copy link
Contributor

Okay we resolved it, thanks for your patience. We'll get this merged in again soon. (The problem ended up being in our internal test code itself).

@ppenenko
Copy link
Contributor Author

Cool, thanks for the update. On my end I've requested to amend the CLA, hope it went through by now.

@c64kernal
Copy link
Contributor

Yes, it all went through, we're all set on the CLA, thanks again!

@pixar-oss pixar-oss merged commit b1e62f6 into PixarAnimationStudios:dev Mar 27, 2019
pixar-oss added a commit that referenced this pull request Mar 27, 2019
[Glf] Fixed an empty GlfSimpleShadowArray instance being leaked.

(Internal change: 1950056)
AdamFelt pushed a commit to autodesk-forks/USD that referenced this pull request Apr 16, 2024
…ios#786)

- Modify build_usd.py options logic to go from
`--emscripten` to `--build-target wasm`
- Update documentation to reflect this change
- Update Dockerfile to use `--build-target wasm`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants