[UE4.20] Editor Crash; NvCloth; Physics Asset

steps:

  1. Open the Content Examples project.
  2. Find the physics asset named ‘Owen_Physics’ and open
  3. Choose a bone and add a body
  4. Crash with:

NvClothPROFILE_x64!avx::solveConstraints<0,2>() [d:\build++ue4+release-4.20+physx_compile\sync\engine\source\thirdparty\physx3\nvcloth\src\avx\swsolveconstraints.cpp:206]

NvClothPROFILE_x64!nv::cloth::SwSolverKernel<__m128>::solveFabric() [d:\build++ue4+release-4.20+physx_compile\sync\engine\source\thirdparty\physx3\nvcloth\src\swsolverkernel.cpp:646]

NvClothPROFILE_x64!nv::cloth::SwSolver::SimulatedCloth::Simulate() [d:\build++ue4+release-4.20+physx_compile\sync\engine\source\thirdparty\physx3\nvcloth\src\swsolver.cpp:292]

NvClothPROFILE_x64!nv::cloth::SwSolver::simulateChunk() [d:\build++ue4+release-4.20+physx_compile\sync\engine\source\thirdparty\physx3\nvcloth\src\swsolver.cpp:161]

UE4Editor_ClothingSystemRuntime!FClothingSimulationNv::Simulate() [d:\build++ue4\sync\engine\source\runtime\clothingsystemruntime\private\clothingsimulationnv.cpp:672]

The reason is that ‘Owen’ mesh has two NvCloth Data. If only one, no problem.
Now I just work around it by Choosing all of the cloth section and remove cloth data → modify physics asset (such as add a body) → Re-apply cloth data. It’s OK.

Hello,

This is a known issue. Unreal Engine Issues and Bug Tracker (UE-63551)

Thank you

Trying to find this specific git commit in 4.21 (we’re still on 4.20.3 and can’t upgrade for a while). Can anyone point me in the right direction? Thanks!