-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Glf] Fixed an empty GlfSimpleShadowArray instance being leaked. #786
Conversation
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). |
Oh sorry, I thought our corporate CLA covered me already, I'll look into it. |
Thanks @ppenenko! |
Filed as internal issue #USD-5135 |
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. |
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). |
Cool, thanks for the update. On my end I've requested to amend the CLA, hope it went through by now. |
Yes, it all went through, we're all set on the CLA, thanks again! |
[Glf] Fixed an empty GlfSimpleShadowArray instance being leaked. (Internal change: 1950056)
…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`
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.