-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
It looks like most(all?) of the primvars:normals attributes are invalid on these meshes. If you call ComputeFlattened on these primvars the following Warnings will spew and, if the sizes of the array/elementSize are large enough, it will eventually crash because of the multiplication done at the top of UsdGeomPrimvar::_ComputeFlattenedHelper
Warning (secondary thread): in ComputeFlattened at line 832 of <longpath>\usd\include\pxr/usd/usdGeom/primvar.h -- For primvar attribute 'primvars:normals' on 'Mesh' prim </World/sneakers_grp/babySneakers_lft_grp/baby_sneakers_001_ankle_strap_mesh> on stage with rootLayer @T:/OpenPBRShaderPlayground-1.0/ShdrPlygrnd/ShdrPlygrnd_OpenPBR.usda@, sessionLayer @anon:00000269F1E73B00:ShdrPlygrnd_OpenPBR-session.usda@: Found 3068 invalid indices into authored array of size 770 with element size of 770:
Invalid index 1 at position 1 refers to indices [770,...,1539] of the authored array, which is out of bounds
Invalid index 2 at position 2 refers to indices [1540,...,2309] of the authored array, which is out of bounds
Invalid index 3 at position 3 refers to indices [2310,...,3079] of the authored array, which is out of bounds
Invalid index 1 at position 4 refers to indices [770,...,1539] of the authored array, which is out of bounds
Invalid index 4 at position 5 refers to indices [3080,...,3849] of the authored array, which is out of bounds
Warning (secondary thread): in ComputeFlattened at line 832 of <longpath>\usd\include\pxr/usd/usdGeom/primvar.h -- For primvar attribute 'primvars:normals' on 'Mesh' prim </World/sneakers_grp/babySneakers_lft_grp/baby_sneakers_001_lace_fastener_mesh> on stage with rootLayer @T:/OpenPBRShaderPlayground-1.0/ShdrPlygrnd/ShdrPlygrnd_OpenPBR.usda@, sessionLayer @anon:00000269F1E73B00:ShdrPlygrnd_OpenPBR-session.usda@: Found 735 invalid indices into authored array of size 736 with element size of 736:
Invalid index 1 at position 1 refers to indices [736,...,1471] of the authored array, which is out of bounds
Invalid index 2 at position 2 refers to indices [1472,...,2207] of the authored array, which is out of bounds
Invalid index 3 at position 3 refers to indices [2208,...,2943] of the authored array, which is out of bounds
Invalid index 4 at position 4 refers to indices [2944,...,3679] of the authored array, which is out of bounds
Invalid index 5 at position 5 refers to indices [3680,...,4415] of the authored array, which is out of bounds
Warning (secondary thread): in ComputeFlattened at line 348 of <longpath>\pxr\usd\usdGeom\primvar.cpp -- For primvar attribute 'primvars:normals' on 'Mesh' prim </World/masonJar_grp/brushB_geo_n3d> on stage with rootLayer @T:/OpenPBRShaderPlayground-1.0/ShdrPlygrnd/ShdrPlygrnd_OpenPBR.usda@, sessionLayer @anon:00000269F1E73B00:ShdrPlygrnd_OpenPBR-session.usda@: Found 3653 invalid indices into authored array of size 3654 with element size of 3654:
Invalid index 1 at position 1 refers to indices [3654,...,7307] of the authored array, which is out of bounds
Invalid index 2 at position 2 refers to indices [7308,...,10961] of the authored array, which is out of bounds
Invalid index 3 at position 3 refers to indices [10962,...,14615] of the authored array, which is out of bounds
Invalid index 4 at position 4 refers to indices [14616,...,18269] of the authored array, which is out of bounds
Invalid index 5 at position 5 refers to indices [18270,...,21923] of the authored array, which is out of bounds
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed