Description

This is a common crash coming out of the 4.18 release. Users have not provided any descriptions of their actions when the crash occurred.

The callstack seems to be the same as [Link Removed], which was fixed back in 4.16

Source Context

  384       	/**
  385       	 * Assignment operator. First deletes all currently contained elements
  386       	 * and then copies from other array.
  387       	 *
  388       	 * @param Other The source array to assign from.
  389       	 */
  390       	TArray& operator=(const TArray& Other)
  391       	{
  392       		if (this != &Other)
  393       		{
  394       			DestructItems(GetData(), ArrayNum);
  395 ***** 			CopyToEmpty(Other.GetData(), Other.Num(), ArrayMax, 0);
  396       		}
  397       		return *this;
  398       	}
Steps to Reproduce

repro steps currently unknown

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

UE4Editor_Core!TArray<wchar_t,FDefaultAllocator>::operator=() [array.h:396]
UE4Editor_Core!FString::operator=() [unrealstring.h:1802]
UE4Editor_UnrealEd!UActorFactoryStaticMesh::PostSpawnActor() [actorfactory.cpp:365]
UE4Editor_UnrealEd!UActorFactory::CreateActor() [actorfactory.cpp:269]
UE4Editor_UnrealEd!PrivateAddActor() [assetselection.cpp:480]
UE4Editor_UnrealEd!FActorFactoryAssetProxy::AddActorForAsset() [assetselection.cpp:693]
UE4Editor_UnrealEd!FLevelEditorViewportClient::TryPlacingActorFromObject() [leveleditorviewport.cpp:283]
UE4Editor_UnrealEd!FLevelEditorViewportClient::DropObjectsOnActor() [leveleditorviewport.cpp:867]
UE4Editor_UnrealEd!FLevelEditorViewportClient::DropObjectsAtCoordinates() [leveleditorviewport.cpp:1301]
UE4Editor_LevelEditor!SLevelViewport::HandlePlaceDraggedObjects() [slevelviewport.cpp:813]
UE4Editor_LevelEditor!SLevelViewport::OnDragEnter() [slevelviewport.cpp:482]
UE4Editor_Slate!<lambda_f61e425f9587e96b799927cd214b1498>::operator() [slateapplication.cpp:5540]
UE4Editor_Slate!FEventRouter::Route<FNoReply,FEventRouter::FBubblePolicy,FDragDropEvent,<lambda_f61e425f9587e96b799927cd214b1498> >() [slateapplication.cpp:234]
UE4Editor_Slate!FSlateApplication::RoutePointerMoveEvent() [slateapplication.cpp:5534]
UE4Editor_Slate!FSlateApplication::ProcessMouseMoveEvent() [slateapplication.cpp:5965]
UE4Editor_Slate!FSlateApplication::OnMouseMove() [slateapplication.cpp:5899]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1763]
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-52620 in the post.

0
Login to Vote

Won't Fix
ComponentTools
Affects Versions4.18
CreatedNov 21, 2017
ResolvedAug 18, 2021
UpdatedAug 18, 2021