I think numInstanceLevels is initialized to 0.... so -1 and it being a size_t/unsigned...it starts looping at the max value... it would probably end eventually...but....going to be a while!
Steps to Reproduce
Using this USDA file with a simple point instancer with draw modes / cards :
p = usdviewApi.stage.GetPrimAtPath("/Comp/Instancer/Protos/Proto2")
m = UsdGeom.ModelAPI.Apply(p)
m.CreateModelCardTextureXPosAttr().Set("D:\\Models\\USD\\uvgrid.jpg")
m.CreateModelCardTextureYPosAttr().Set("D:\\Models\\USD\\uvgrid.jpg")
Description of Issue
Setting up Model Card textures on point instances can cause hdStorm / usdview to hang. See repro steps bellow.
Breaking while it hangs it is looping here : https://github.com/PixarAnimationStudios/OpenUSD/blob/dev/pxr/imaging/hdSt/mesh.cpp#L366
I think
numInstanceLevels
is initialized to 0.... so -1 and it being a size_t/unsigned...it starts looping at the max value... it would probably end eventually...but....going to be a while!Steps to Reproduce
Using this USDA file with a simple point instancer with draw modes / cards :
From the interpreter in USDVIEW, run this :
p = usdviewApi.stage.GetPrimAtPath("/Comp/Instancer/Protos/Proto2") m = UsdGeom.ModelAPI.Apply(p) m.CreateModelCardTextureXPosAttr().Set("D:\\Models\\USD\\uvgrid.jpg") m.CreateModelCardTextureYPosAttr().Set("D:\\Models\\USD\\uvgrid.jpg")
System Information (OS, Hardware)
Windows
Package Versions
0.24.05