Description

This is a common crash in the 4.18 release.

User Descriptions

  • Tried moving foliage to another sub-level. It wanted to move the foliage asset for some reason (I tried the same location - which was denied - then I tried a new folder and it crashed)
  • Same as previous (reproduced crash when attempting to move foliage to a sub-level and prompted to save the foliage asset (which should've been unchanged from previous load))

Source Context

 2238       TMap<UFoliageType*, FFoliageMeshInfo*> AInstancedFoliageActor::GetAllInstancesFoliageType()
 2239       {
 2240       	TMap<UFoliageType*, FFoliageMeshInfo*> InstanceFoliageTypes;
 2241       
 2242       	for (auto& MeshPair : FoliageMeshes)
 2243 ***** 	{
 2244       		InstanceFoliageTypes.Add(MeshPair.Key, &MeshPair.Value.Get());
 2245       	}
 2246       
 2247       	return InstanceFoliageTypes;
 2248       }
Steps to Reproduce

repro steps currently unknown. See user comment for possibility

Callstack
Access violation - code c0000005 (first/second chance not available)

UE4Editor_Foliage!AInstancedFoliageActor::GetAllInstancesFoliageType() [instancedfoliage.cpp:2244]
UE4Editor_FoliageEdit!FFoliageEditUtility::MoveActorFoliageInstancesToLevel() [foliageeditutility.cpp:149]
UE4Editor_WorldBrowser!FLevelCollectionModel::MoveActorsToSelected_Executed() [levelcollectionmodel.cpp:1659]
UE4Editor_WorldBrowser!TBaseSPMethodDelegateInstance<0,FLevelCollectionModel,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_WorldBrowser!TBaseSPMethodDelegateInstance<0,FLevelCollectionModel,0,void __cdecl() [delegateinstancesimpl.h:434]
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 toAnswerHub just mention UE-52919 in the post.

1
Login to Vote

Fixed
ComponentTools - Foliage
Affects Versions4.184.19
Target Fix4.19.2
Fix Commit4025680
CreatedDec 1, 2017
ResolvedApr 24, 2018
UpdatedJan 2, 2019