ID 501773 - Importing USD with negative st index values crashes Katana

Follow

Problem summary
Importing USD with negative st index values crashes Katana when expanding the scene graph location.

In USD, primvars:st:indices
In Katana attributes: geometry.arbitrary.st.index

Customer reported version
katana.4.5v1

Customer reported platform

Steps to reproduce
1) Save the following as a .usda file:

#usda 1.0
def Mesh "pCube1"
{
    int[] faceVertexCounts = [4, 4, 4, 4, 4, 4]
    int[] faceVertexIndices = [0, 1, 3, 2, 2, 3, 5, 4, 4, 5, 7, 6, 6, 7, 1, 0, 1, 7, 5, 3, 6, 0, 2, 4]
    point3f[] points = [(-0.5, -0.5, 0.5), (0.5, -0.5, 0.5), (-0.5, 0.5, 0.5), (0.5, 0.5, 0.5), (-0.5, 0.5, -0.5), (0.5, 0.5, -0.5), (-0.5, -0.5, -0.5), (0.5, -0.5, -0.5)]
    texCoord2f[] primvars:st = [] (
        interpolation = "faceVarying"
    )
    int[] primvars:st:indices = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
}

2) In Katana, import the USDA file with a UsdIn node.
3) Expand All the scene graph.

Expected behavior
The cube is displayed in the Hydra Viewer with no crash.


Actual behavior
Immediate Katana crash.

Workaround
Remove all primvars:st:indices with negative values.

Reproduced by support
This bug has been reproduced in:
Katana 5.0v1 - Windows 11, CentOS Stream 8
Katana 4.5v1 - Windows 11, CentOS Stream 8
Katana 4.0v1 - Windows 11, CentOS Stream 8

Unable to reproduce bug in:
Katana 3.6v5 - Windows 11, CentOS Stream 8
Katana 3.6v1 - Windows 11, CentOS Stream 8
Katana 3.5v1 - Windows 11, CentOS Stream 8

Earliest version tested
Katana 3.5v1- Katana USD Plug-ins feature did not exist before this version

    We're sorry to hear that

    Please tell us why