Open shrinktofit opened 5 years ago
The crashes happened at https://github.com/facebookincubator/FBX2glTF/blob/37f992321eeb2d593f86371a1fe39c26a0e8467c/src/fbx/materials/FbxMaterials.cpp#L90 and https://github.com/facebookincubator/FBX2glTF/blob/37f992321eeb2d593f86371a1fe39c26a0e8467c/src/fbx/materials/FbxMaterials.cpp#L102
In both cases, summaries are empty. I tracked into constructor, it suggested that in https://github.com/facebookincubator/FBX2glTF/blob/37f992321eeb2d593f86371a1fe39c26a0e8467c/src/fbx/materials/FbxMaterials.cpp#L42 indices->GetCount() equals to 0, which leads to empty summaries.
summaries
indices->GetCount()
0
I don't know the ultimate cause. I solve it by test if summaries is empty in my fork commit. If it helps, I can request PR.
Here is an example file causing crash. F_hts_Boss@bossattackB.zip
The crashes happened at https://github.com/facebookincubator/FBX2glTF/blob/37f992321eeb2d593f86371a1fe39c26a0e8467c/src/fbx/materials/FbxMaterials.cpp#L90 and https://github.com/facebookincubator/FBX2glTF/blob/37f992321eeb2d593f86371a1fe39c26a0e8467c/src/fbx/materials/FbxMaterials.cpp#L102
In both cases,
summaries
are empty. I tracked into constructor, it suggested that in https://github.com/facebookincubator/FBX2glTF/blob/37f992321eeb2d593f86371a1fe39c26a0e8467c/src/fbx/materials/FbxMaterials.cpp#L42indices->GetCount()
equals to0
, which leads to emptysummaries
.I don't know the ultimate cause. I solve it by test if
summaries
is empty in my fork commit. If it helps, I can request PR.Here is an example file causing crash. F_hts_Boss@bossattackB.zip