Description

A crash occurs when you add/drag a skeletal mesh with Apex clothing into the scene. The user reporting the issue managed to find where the crash occurs and added a comment for assistance where to look.

"The crash happens inside ApexClothingUtils::GenerateMeshToMeshSkinningData, in a call to GetPointBaryAndDist with the points passed being all equal. This causes a check to fail in FMath::ComputeBaryCentric2D because the points are colinear."

Crash Reporter:

[Link Removed]

Original JIRA:

UE-39137

Steps to Reproduce

1. Open attached project.
2. Drag Characters/Ship/Human/Sloop_01/Mesh/SK_Human_Sloop_01 into the level

Outcome
Crash Occurs

Expected
No crash

Callstack
UE4Editor_Core!FMath::ComputeBaryCentric2D() unrealmath.cpp:1978 
UE4Editor_UnrealEd!ApexClothingUtils::GetPointBaryAndDist() apexclothingutils.cpp:2260 
UE4Editor_UnrealEd!ApexClothingUtils::GenerateMeshToMeshSkinningData() apexclothingutils.cpp:2239 
UE4Editor_UnrealEd!ApexClothingUtils::AssociateClothingAssetWithSkeletalMesh() apexclothingutils.cpp:868 
UE4Editor_UnrealEd!ApexClothingUtils::ImportClothingSectionFromClothingAsset() apexclothingutils.cpp:1557 
UE4Editor_UnrealEd!ApexClothingUtils::ReapplyClothingDataToSkeletalMesh() apexclothingutils.cpp:1943 
UE4Editor_UnrealEd!ApexClothingUtils::ReapplyClothingDataToSkeletalMesh() apexclothingutils.cpp:1848 
UE4Editor_Engine!USkeletalMesh::Serialize() skeletalmesh.cpp:3075 
UE4Editor_CoreUObject!FLinkerLoad::Preload() linkerload.cpp:3414 
UE4Editor_CoreUObject!EndLoad() uobjectglobals.cpp:1556 
UE4Editor_CoreUObject!LoadPackageInternalInner() uobjectglobals.cpp:1281 
UE4Editor_CoreUObject!LoadPackage() uobjectglobals.cpp:1437 
UE4Editor_CoreUObject!ResolveName() uobjectglobals.cpp:722 
UE4Editor_CoreUObject!StaticLoadObjectInternal() uobjectglobals.cpp:809 
UE4Editor_CoreUObject!StaticLoadObject() uobjectglobals.cpp:869 
UE4Editor_UnrealEd!FAssetData::GetAsset() assetdata.h:223 
UE4Editor_UnrealEd!FAssetDragDropOp::Init() assetdragdropop.cpp:149 
UE4Editor_UnrealEd!FAssetDragDropOp::New() assetdragdropop.cpp:26 
UE4Editor_ContentBrowser!SAssetView::OnDraggingAssetItem() sassetview.cpp:3691 
UE4Editor_ContentBrowser!TMemberFunctionCaller<SAssetView,FReply() delegateinstanceinterface.h:161 
UE4Editor_ContentBrowser!TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SAssetView,FReply() tuple.h:116
UE4Editor_ContentBrowser!TBaseSPMethodDelegateInstance<0,SAssetView,0,FReply __cdecl() delegateinstancesimpl.h:318 
UE4Editor_ContentBrowser!TBaseDelegate<FReply,FGeometry const & __ptr64,FPointerEvent const & __ptr64>::Execute() delegatesignatureimpl.inl:522
UE4Editor_ContentBrowser!STableRow<TSharedPtr<FAssetViewItem,0> >::OnDragDetected() stablerow.h:564 
UE4Editor_Slate!<lambda_6a882dc395ae961f6deaba2e445a5a9a>::operator() slateapplication.cpp:5122 
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FDirectPolicy,FPointerEvent,<lambda_6a882dc395ae961f6deaba2e445a5a9a> >() slateapplication.cpp:215
UE4Editor_Slate!FSlateApplication::RoutePointerMoveEvent() slateapplication.cpp:5120 
UE4Editor_Slate!FSlateApplication::ProcessMouseMoveEvent() slateapplication.cpp:5653 
UE4Editor_Slate!FSlateApplication::OnMouseMove() slateapplication.cpp:5592 
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() windowsapplication.cpp:1693 
UE4Editor_Core!FWindowsApplication::DeferMessage() windowsapplication.cpp:2071 
UE4Editor_Core!FWindowsApplication::ProcessMessage() windowsapplication.cpp:814 
UE4Editor_Core!FWindowsApplication::AppWndProc() windowsapplication.cpp:678 
user32!<Unknown> 
user32!<Unknown> 
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() windowsplatformmisc.cpp:951 
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:2811 
UE4Editor!GuardedMain() launch.cpp:152 
UE4Editor!GuardedMainWrapper() launchwindows.cpp:126 
UE4Editor!WinMain() launchwindows.cpp:202 
UE4Editor!__scrt_common_main_seh() exe_common.inl:264 
kernel32!<Unknown> 
ntdll!<Unknown>

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

1
Login to Vote

Fixed
ComponentPhysics - Clothing
Affects Versions4.15
Target Fix4.15
Fix Commit3273116
Main Commit3389599
Release Commit3273116
CreatedJan 25, 2017
ResolvedJan 26, 2017
UpdatedApr 27, 2018