ID 544296 - [PUBLIC][USD I/O] Katana can crash when assigning a Material Location that contains duplicate node names to a NetworkMaterialEdit node

Follow

Problem summary

Katana can crash when assigning a Material Location that contains duplicate node names to a NetworkMaterialEdit node.

Steps to reproduce

1) Open Katana and create a UsdIn node.

2) Through the UsdIn node import a Usd file that contains a material with duplicate node names.

3) Add and connect a NetworkMaterialEdit node downstream of the UsdIn node.
 
4) Set the Edit and Render flag to the NetworkMaterialEdit node, you can do this by pressing E and then V while your mouse is hovering over the node.

5) Navigate in the Scene Graph tab to the Material location and Middle Mouse Button drag the location to the Material Location to Edit parameter on your NetworkMaterialEdit node.

Expected behaviour

Katana does not crash and the Shading Network is generated.

Actual behaviour

Katana crashes.

Workaround 

Ensure no node names are duplicated in a Materials Shading Network.

Reproduced by support:

This bug has been reproduced in:

Katana 6.0v2 - Windows 10, CentOS 7

 

Unable to reproduce bug in:

Katana 6.0v1 - Windows 10, CentOS 7

 

Earliest version tested:

Katana 6.0v1 - This issue doesn't appear in this version and has regressed.

    We're sorry to hear that

    Please tell us why