Hi folks,
We’ve been encountering an issue since we updated to UE5.8 where characters whose cloth mesh sections have vertices culled will cause mesh degradation in editor and crashes in packaged builds.
There are two issues:
1) When some verts are culled from the cloth mesh section, cloth explodes in editor. When this happens in package it can crash
01_TShirt_explosion: example of the result
02_TShirt_proxy: example of our cloth proxy mesh
03_TShirt_partially_culled: this is how much of the mesh remains after culling when the geometry explodes
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x000001df50f0ee80
0x00007ffa7053202b VCRUNTIME140.dll!UnknownFunction []
0x00007ff78d9e5d02 ClutchClient.exe!UE::Mutable::Private::RemoveBufferUnusedElems() [D:\tc\clutch\Engine\Plugins\Mutable\Source\MutableRuntime\Private\MuR\OpMeshRemove.cpp:44]
0x00007ff78d9dfaef ClutchClient.exe!UE::Mutable::Private::MeshRemoveVerticesWithCullSet() [D:\tc\clutch\Engine\Plugins\Mutable\Source\MutableRuntime\Private\MuR\OpMeshRemove.cpp:739]
0x00007ff78d9dd78a ClutchClient.exe!UE::Mutable::Private::MeshRemoveMaskInline() [D:\tc\clutch\Engine\Plugins\Mutable\Source\MutableRuntime\Private\MuR\OpMeshRemove.cpp:866]
0x00007ff78d8c4a1e ClutchClient.exe!UE::Mutable::Private::CodeRunner::RunCode_Mesh() [D:\tc\clutch\Engine\Plugins\Mutable\Source\MutableRuntime\Private\MuR\CodeRunner.cpp:2432]
0x00007ff78d89e2c1 ClutchClient.exe!UE::Mutable::Private::CodeRunner::RunCode() [D:\tc\clutch\Engine\Plugins\Mutable\Source\MutableRuntime\Private\MuR\CodeRunner.cpp:8327]
0x00007ff78d917db4 ClutchClient.exe!UE::Mutable::Private::CodeRunner::Run() [D:\tc\clutch\Engine\Plugins\Mutable\Source\MutableRuntime\Private\MuR\CodeRunnerTasked.cpp:321]
2) If we cull the entire Tshirt so that the mesh underneath the jacket is removed, in editor the transient skeletal mesh shows no clothing data. But in packaged build we get a crash because the mesh section has zero vertices but there cloth data still exists
04_TShirt_fully_culled
Callstack:
Fatal error!
Unhandled Exception: EXCEPTION_INT_DIVIDE_BY_ZERO
0x00007ff73c7e9d01 ClutchClient.exe!FSkeletalMeshObjectGPUSkin::FVertexFactoryData::InitVertexFactories() [D:\p4\clutch\main\Engine\Source\Runtime\Engine\Private\SkeletalRenderGPUSkin.cpp:2579]
0x00007ff73c7c1a60 ClutchClient.exe!`FSkeletalMeshObjectGPUSkin::FSkeletalMeshObjectLOD::InitResources’::`2’::<lambda_1>::operator()() [D:\p4\clutch\main\Engine\Source\Runtime\Engine\Private\SkeletalRenderGPUSkin.cpp:2657]
0x00007ff73ce6e727 ClutchClient.exe!ExecuteCommand() [D:\p4\clutch\main\Engine\Source\Runtime\RenderCore\Private\RenderingThread.cpp:1533]
0x00007ff73ce46006 ClutchClient.exe!UE::RenderCommandPipe::FCommandList::ConsumeCommands<`FRenderCommandPipe::ExecuteCommands’::`2’::<lambda_1> >() [D:\p4\clutch\main\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:336]
0x00007ff73ce46048 ClutchClient.exe!UE::RenderCommandPipe::FCommandList::ConsumeCommands<`FRenderCommandPipe::ExecuteCommands’::`2’::<lambda_1> >() [D:\p4\clutch\main\Engine\Source\Runtime\RenderCore\Public\RenderingThread.h:328]
[Attachment Removed]