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

MAYA-109334 - Crash when the token for "Info: id" on a material is ed… #1287

Merged
merged 3 commits into from
Apr 8, 2021

Conversation

spinell-adsk
Copy link
Contributor

…ited to an invalid or empty value

-Add check to see if shader (info:id attr) exists while the attribute change to avoid crash

…ited to an invalid or empty value

-Add check to see if shader (info:id attr) exists while the attribute change to avoid crash
Copy link

@huidong-chen huidong-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added some feedback in the code. In the meantime, if the network is empty, maybe we want to issue some warning with TF_WARN().

…ited to an invalid or empty value

-Add check to see if shader (info:id attr) exists while the attribute change to avoid crash
@spinell-adsk
Copy link
Contributor Author

There is already a warning displayed coming from UsdMayaDiagnosticDelegate::IssueWarning

@huidong-chen huidong-chen added vp2renderdelegate Related to VP2RenderDelegate bug Something isn't working labels Mar 29, 2021
@spinell-adsk spinell-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Mar 30, 2021
Copy link

@kxl-adsk kxl-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following interactive tests are failing with this change (Maya 2022):
57 - testVP2RenderDelegateGeomSubset (Failed)
58 - testVP2RenderDelegatePointInstanceSelection (Failed)
59 - testVP2RenderDelegatePointInstancesPickMode (Failed)
61 - testVP2RenderDelegatePerInstanceInheritedData (Failed)

Please investigate.

@kxl-adsk kxl-adsk removed the ready-for-merge Development process is finished, PR is ready for merge label Apr 2, 2021
…ited to an invalid or empty value

-Fix vp2 test
@spinell-adsk
Copy link
Contributor Author

@HdC-adsk The condition must be below _ApplyVP2Fixes() otherwise the shading is wrong.

@huidong-chen
Copy link

huidong-chen commented Apr 8, 2021 via email

@spinell-adsk spinell-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Apr 8, 2021
@kxl-adsk kxl-adsk merged commit eb3f439 into dev Apr 8, 2021
@kxl-adsk kxl-adsk deleted the spinell/MAYA-109334/crash_changing_info_id_attr branch April 8, 2021 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready-for-merge Development process is finished, PR is ready for merge vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants