Description

This Jira was created from CrashReports submitted by the public due to the high number of occurrences.

Error message:

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

Source Context:

 1401       	 * have the placeholder track this ref (so it'll replace it once the real 
 1402       	 * class is loaded).
 1403       	 * 
 1404       	 * @param  ScriptPtr    Reference to the point in the bytecode buffer, where a UObject* has been stored (for us to check).
 1405       	 */
 1406       	static void HandlePlaceholderScriptRef(ScriptPointerType& ScriptPtr)
 1407       	{
 1408       #ifdef REQUIRES_ALIGNED_INT_ACCESS
 1409       		ScriptPointerType  Temp; 
 1410       		FMemory::Memcpy(&Temp, &ScriptPtr, sizeof(ScriptPointerType));
 1411       		UObject*& ExprPtrRef = (UObject*&)Temp;
 1412       #else
 1413       		UObject*& ExprPtrRef = (UObject*&)ScriptPtr;
 1414       #endif 
 1415 ***** 		if (ULinkerPlaceholderClass* PlaceholderObj = Cast<ULinkerPlaceholderClass>(ExprPtrRef))
 1416       		{
 1417       			PlaceholderObj->AddReferencingScriptExpr((UClass**)(&ExprPtrRef));
 1418       		}
 1419       		else if (ULinkerPlaceholderFunction* PlaceholderFunc = Cast<ULinkerPlaceholderFunction>(ExprPtrRef))
 1420       		{
 1421       			PlaceholderFunc->AddReferencingScriptExpr((UFunction**)(&ExprPtrRef));
 1422       		}
 1423       	}
 1424       
 1425       	#define FIXUP_EXPR_OBJECT_POINTER(Type) \
 1426       	{ \
 1427       		if (!Ar.IsSaving()) \
 1428       		{ \
 1429       			int32 const ExprIndex = iCode - sizeof(ScriptPointerType); \
 1430       			ScriptPointerType& ScriptPtr = (ScriptPointerType&)Script[ExprIndex]; \ 

Most recent user affected CL: 3187739

Logs:
[Link Removed]
[Link Removed]
[Link Removed]

Steps to Reproduce

Repro steps unknown

Callstack
UE4Editor_CoreUObject!HandlePlaceholderScriptRef() [class.cpp:1416]
UE4Editor_CoreUObject!UStruct::SerializeExpr() [scriptserialization.h:293]
UE4Editor_CoreUObject!UStruct::Serialize() [class.cpp:1278]
UE4Editor_CoreUObject!UFunction::Serialize() [class.cpp:4484]
UE4Editor_CoreUObject!FFindReferencersArchive::ResetPotentialReferencer() [findreferencersarchive.cpp:88]
UE4Editor_UnrealEd!TFindObjectReferencers<UObject>::TFindObjectReferencers<UObject>() [findobjectreferencers.h:48]
UE4Editor_UnrealEd!FReplaceReferenceHelper::FindAndReplaceReferences() [kismetreinstanceutilities.cpp:65]
UE4Editor_UnrealEd!FBlueprintCompileReinstancer::ReplaceInstancesOfClass_Inner() [kismetreinstanceutilities.cpp:1925]
UE4Editor_UnrealEd!FBlueprintCompileReinstancer::ReplaceInstancesOfClass() [kismetreinstanceutilities.cpp:1464]
UE4Editor_UnrealEd!FBlueprintCompileReinstancer::ReinstanceInner() [kismetreinstanceutilities.cpp:670]
UE4Editor_UnrealEd!FBlueprintCompileReinstancer::ReinstanceObjects() [kismetreinstanceutilities.cpp:901]
UE4Editor_UnrealEd!FKismetEditorUtilities::CompileBlueprint() [kismet2.cpp:825]
UE4Editor_Kismet!FBlueprintEditor::Compile() [blueprinteditor.cpp:3202]
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:318]
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,void __cdecl() [delegateinstancesimpl.h:424]
UE4Editor_Slate!FUICommandList::ExecuteAction() [uicommandlist.cpp:92]
UE4Editor_Slate!SToolBarButtonBlock::OnClicked() [stoolbarbuttonblock.cpp:300]
UE4Editor_Slate!TMemberFunctionCaller<SToolBarButtonBlock,FReply() [delegateinstanceinterface.h:161]
UE4Editor_Slate!TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SToolBarButtonBlock,FReply() [tuple.h:116]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SToolBarButtonBlock,0,FReply __cdecl() [delegateinstancesimpl.h:318]
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() [delegatesignatureimpl.inl:522]
UE4Editor_Slate!SButton::OnMouseButtonUp() [sbutton.cpp:275]
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator() [slateapplication.cpp:5010]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() [slateapplication.cpp:215]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:4999]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5462]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5439]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1652]
UE4Editor_Core!FWindowsApplication::DeferMessage() [windowsapplication.cpp:2071]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:814]
UE4Editor_Core!FWindowsApplication::AppWndProc() [windowsapplication.cpp:678]
user32!UserCallWinProcCheckWow()
user32!DispatchMessageWorker()
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!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-38486 in the post.

4
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.14
Target Fix4.15
Fix Commit3231837
Main Commit3236017
Release Commit3240724
CreatedNov 10, 2016
ResolvedDec 13, 2016
UpdatedFeb 22, 2017
View Jira Issue