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

HYDRA-496: Fix for crash on new scene with a USD Stage inside the Maya scene #3325

Merged
merged 6 commits into from
Sep 14, 2023

Conversation

roopavr-adsk
Copy link
Contributor

@roopavr-adsk roopavr-adsk commented Sep 13, 2023

Maya crashes when the MayaUsdProxyShapeSceneIndex tries to access MayaUsdProxyShape which is no longer valid. This event happens for example in the case seen here in the reivew code to set time on the USD Stage. In this situation a Maya callback registered for "timechanged" event was also triggered on "New Scene" event but the USD and Hydra resources were deleted by then on which the callback tried to set the time and hence the crash.

The fix involves adding new API to MayaUsdProxyShapeStageExtraData which is a container of sorts for MayaUsdProxyShapeBase. The API allows to check if the proxy shape requested is valid.

@roopavr-adsk roopavr-adsk added adsk Related to Autodesk plugin ready-for-merge Development process is finished, PR is ready for merge labels Sep 13, 2023
@seando-adsk seando-adsk added core Related to core library and removed adsk Related to Autodesk plugin ready-for-merge Development process is finished, PR is ready for merge labels Sep 13, 2023
@seando-adsk
Copy link
Collaborator

@roopavr-adsk You need to have a successful preflight run before marking as ready-for-merge. In order to run the preflight you need to assign the ecp-maya-devops-adsk user

@roopavr-adsk
Copy link
Contributor Author

roopavr-adsk commented Sep 13, 2023

FYI @lanierd-adsk @ppt-adsk

@roopavr-adsk roopavr-adsk added adsk Related to Autodesk plugin ready-for-merge Development process is finished, PR is ready for merge labels Sep 13, 2023
@seando-adsk seando-adsk merged commit e16bf34 into dev Sep 14, 2023
11 checks passed
@seando-adsk seando-adsk deleted the roopavr/HYDRA-496/fixForCrashWithUSDStage branch September 14, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adsk Related to Autodesk plugin core Related to core library ready-for-merge Development process is finished, PR is ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants