Description

This is a trending crash occurring in 4.17 and 4.17.1. Users have not provided any descriptions of their actions when the crash occurred.

Source Context

 345       	if(Params.bTryAutoFix && Params.AutoFixThreshold > 0.0f)
  346       	{
  347       		FBoxSphereBounds MeshBounds = TargetMesh->GetBounds();
  348       		FQueryTriOctree Octree(MeshBounds.Origin, MeshBounds.BoxExtent.GetAbsMax());
  349       
  350       		PopulateAutoFixOctree(Octree, LodModel, Params.SourceSection);
  351       
  352       		// Query each simulation vert against the octree
  353       		float SquaredQueryDist = Params.AutoFixThreshold * Params.AutoFixThreshold;
  354       		for(int32 VertexIndex = 0; VertexIndex < NumVerts; ++VertexIndex)
  355       		{
  356 ***** 			FVector Position = PhysMesh.Vertices[VertexIndex];
  357       
  358       			FQueryTriOctree::TConstElementBoxIterator<> OctreeIt(Octree, FBoxCenterAndExtent(Position, FVector(Params.AutoFixThreshold)));
  359       			for(; OctreeIt.HasPendingElements(); OctreeIt.Advance())
  360       			{
  361       				const FQueryTri& CurrentTri = OctreeIt.GetCurrentElement();
  362       				FVector ClosestTriPoint = FMath::ClosestPointOnTriangleToPoint(Position, CurrentTri.Vertices[0], CurrentTri.Vertices[1], CurrentTri.Vertices[2]);
  363       				float ActualDistSq = (ClosestTriPoint - Position).SizeSquared();
  364       
  365       				if(ActualDistSq <= SquaredQueryDist)
  366       				{
  367       					PhysMesh.MaxDistances[VertexIndex] = 0.0f;
  368       				}
  369       			}
  370       		}
  371       	}
Steps to Reproduce

repro steps currently unknown

Callstack
Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 596] Array index out of bounds: 1286 from an array of size 1286

UE4Editor_ClothingSystemEditor!UClothingAssetFactory::CreateFromSkeletalMesh() [clothingassetfactory.cpp:357]
UE4Editor_SkeletalMeshEditor!FSkeletalMeshEditor::OnCreateClothingAssetMenuItemClicked() [skeletalmesheditor.cpp:410]
UE4Editor_SkeletalMeshEditor!TBaseSPMethodDelegateInstance<0,FSkeletalMeshEditor,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_SkeletalMeshEditor!TBaseSPMethodDelegateInstance<0,FSkeletalMeshEditor,0,void __cdecl() [delegateinstancesimpl.h:434]
UE4Editor_Persona!SCreateClothingSettingsPanel::OnCreateClicked() [screateclothingsettingspanel.cpp:95]
UE4Editor_Persona!TMemberFunctionCaller<SCreateClothingSettingsPanel,FReply() [delegateinstanceinterface.h:165]
UE4Editor_Persona!UE4Tuple_Private::TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SCreateClothingSettingsPanel,FReply() [tuple.h:497]
UE4Editor_Persona!TBaseSPMethodDelegateInstance<0,SCreateClothingSettingsPanel,0,FReply __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() [delegatesignatureimpl.inl:537]
UE4Editor_Slate!SButton::OnMouseButtonUp() [sbutton.cpp:282]
UE4Editor_Slate!<lambda_1002768c627006711ef2f351a87ec0e7>::operator() [slateapplication.cpp:5199]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_1002768c627006711ef2f351a87ec0e7> >() [slateapplication.cpp:232]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:5188]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5690]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5670]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1718]
UE4Editor_Core!FWindowsApplication::DeferMessage() [windowsapplication.cpp:2161]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:881]
UE4Editor_Core!FWindowsApplication::AppWndProc() [windowsapplication.cpp:721]
user32!UserCallWinProcCheckWow()
user32!DispatchMessageWorker()
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [windowsplatformmisc.cpp:1009]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3151]
UE4Editor!GuardedMain() [launch.cpp:166]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:134]
UE4Editor!WinMain() [launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:253]
kernel32!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-48649 in the post.

0
Login to Vote

Fixed
ComponentUE - Simulation - Physics - Character
Affects Versions4.17
Target Fix4.18
Fix Commit3513588
Main Commit3624383
Release Commit3643070
CreatedAug 21, 2017
ResolvedAug 22, 2017
UpdatedApr 27, 2018
View Jira Issue