Description

This is an infrequent crash in the 4.18 release. Users have not provided any description of their actions when the crash occurred.

Source Context

  210       	if (StaticMeshReferencers)
  211       	{
  212       		check(StaticMeshReferencers->Referencers.Num() > 0);
  213       		int32 Index = StaticMeshReferencers->Referencers.IndexOfByPredicate(
  214       			[=](const FStaticMeshReferencers::FReferencersInfo& Info)
  215       		{
  216       			return Info.StaticMeshComponent == this->StaticMeshComponent;
  217       		}
  218       		);
  219       		check(Index != INDEX_NONE);
  220       
  221 ***** 		StaticMeshComponent->BodyInstance.SetCollisionEnabled(StaticMeshReferencers->Referencers[Index].CachedCollisionType, false);
  222       		StaticMeshComponent->RecreatePhysicsState();
  223       
  224       		StaticMeshReferencers->Referencers.RemoveAtSwap(Index);
  225       
  226       		// If the last reference was removed, restore the body setup for the static mesh
  227       		if (StaticMeshReferencers->Referencers.Num() == 0)
  228       		{
  229       			ReferencedStaticMesh->BodySetup = StaticMeshReferencers->RestoreBodySetup;
  230       			verify(MeshToComponentMap.Remove(ReferencedStaticMesh) == 1);
  231       		}
  232       	}
  233       }
Steps to Reproduce

repro steps currently unknown

Callstack
Assertion failed: Index != INDEX_NONE [File:D:\Build\++UE4+Release-4.18+Compile\Sync\Engine\Source\Editor\MeshPaint\Private\MeshPaintStaticMeshAdapter.cpp] [Line: 220]

UE4Editor_MeshPaint!FMeshPaintGeometryAdapterForStaticMeshes::OnRemoved() [meshpaintstaticmeshadapter.cpp:222]
UE4Editor_MeshPaintMode!FPaintModePainter::Refresh() [paintmodepainter.cpp:2035]
UE4Editor_UnrealEd!UUnrealEdEngine::NoteSelectionChange() [editorselectutils.cpp:396]
UE4Editor_UnrealEd!UUnrealEdEngine::edactDeleteSelected() [editoractor.cpp:1027]
UE4Editor_UnrealEd!UEditorEngine::CopySelectedActorsToClipboard() [editorserver.cpp:3182]
UE4Editor_UnrealEd!UUnrealEdEngine::Exec_Edit() [unrealedsrv.cpp:1571]
UE4Editor_UnrealEd!UUnrealEdEngine::Exec() [unrealedsrv.cpp:722]
UE4Editor_LevelEditor!FLevelEditorActionCallbacks::ExecuteExecCommand() [leveleditoractions.cpp:1709]
UE4Editor_LevelEditor!TBaseStaticDelegateInstance<void __cdecl() [delegateinstancesimpl.h:1027]
UE4Editor_Slate!FUICommandList::ExecuteAction() [uicommandlist.cpp:97]
UE4Editor_Slate!SMenuEntryBlock::OnClicked() [smenuentryblock.cpp:1028]
UE4Editor_Slate!SMenuEntryBlock::OnMenuItemButtonClicked() [smenuentryblock.cpp:988]
UE4Editor_Slate!TMemberFunctionCaller<SMenuEntryBlock,FReply() [delegateinstanceinterface.h:165]
UE4Editor_Slate!UE4Tuple_Private::TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SMenuEntryBlock,FReply() [tuple.h:497]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SMenuEntryBlock,0,FReply __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() [delegatesignatureimpl.inl:537]
UE4Editor_Slate!SButton::OnMouseButtonUp() [sbutton.cpp:282]
UE4Editor_Slate!SMenuEntryButton::OnMouseButtonUp() [smenuentryblock.cpp:385]
UE4Editor_Slate!<lambda_1002768c627006711ef2f351a87ec0e7>::operator() [slateapplication.cpp:5263]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_1002768c627006711ef2f351a87ec0e7> >() [slateapplication.cpp:234]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:5252]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5750]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5730]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1725]
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() [windowsapplication.cpp:2171]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:888]
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() [windowsapplication.cpp:725]
user32!UserCallWinProcCheckWow()
user32!DispatchMessageWorker()
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [windowsplatformapplicationmisc.cpp:129]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3220]
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-52618 in the post.

0
Login to Vote

Fixed
ComponentTools
Affects Versions4.18
Target Fix4.20
Fix Commit4000493
Main Commit4052378
Release Commit4095966
CreatedNov 21, 2017
ResolvedApr 12, 2018
UpdatedAug 21, 2018
View Jira Issue