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:

   45       }
   46       if (!ObjectA || !ObjectB)
   47       {
   48       return false;
   49       }
   50       // Compare actual pointers. We don't do this during PIE because we want to be sure to serialize everything. An example is the LevelScriptActor being serialized against its CDO,
   51       // which contains actor references. We want to serialize those references so they are fixed up.
   52       const bool bDuplicatingForPIE = (PortFlags&PPF_DuplicateForPIE) != 0;
   53       bool bResult = !bDuplicatingForPIE ? (ObjectA == ObjectB) : false;
   54       // always serialize the cross level references, because they could be NULL
   55       // @todo: okay, this is pretty hacky overall - we should have a PortFlag or something
   56       // that is set during SavePackage. Other times, we don't want to immediately return false
   57       // (instead of just this ExportDefProps case)
   58       // instance testing
   59 ***** if (!bResult && ObjectA->GetClass() == ObjectB->GetClass())
   60       {
   61       bool bPerformDeepComparison = (PortFlags&PPF_DeepComparison) != 0;
   62       if ((PortFlags&PPF_DeepCompareInstances) && !bPerformDeepComparison)
   63       {
   64       bPerformDeepComparison = ObjectA->IsTemplate() != ObjectB->IsTemplate();
   65       }
   66       
   67       if (!bResult && bPerformDeepComparison)
   68       {
   69       // In order for deep comparison to be match they both need to have the same name and that name needs to be included in the instancing table for the class
   70       if (ObjectA->GetFName() == ObjectB->GetFName() && ObjectA->GetClass()->GetDefaultSubobjectByName(ObjectA->GetFName()))
   71       {
   72       checkSlow(ObjectA->IsDefaultSubobject() && ObjectB->IsDefaultSubobject() && ObjectA->GetClass()->GetDefaultSubobjectByName(ObjectA->GetFName()) == ObjectB->GetClass()->GetDefaultSubobjectByName(ObjectB->GetFName())); // equivalent
   73       bResult = AreInstancedObjectsIdentical(ObjectA,ObjectB,PortFlags);
   74       }

Most recent user affected CL: 3172292

Logs:
[Link Removed]
[Link Removed]

Steps to Reproduce

Repro steps unknown

Callstack
UE4Editor_CoreUObject!UObjectPropertyBase::Identical() [propertybaseobject.cpp:60]
UE4Editor_CoreUObject!UStruct::SerializeTaggedProperties() [class.cpp:1119]
UE4Editor_CoreUObject!UObject::SerializeScriptProperties() [obj.cpp:1079]
UE4Editor_CoreUObject!UObject::Serialize() [obj.cpp:1018]
UE4Editor_CoreUObject!StaticDuplicateObjectEx() [uobjectglobals.cpp:1989]
UE4Editor_CoreUObject!StaticDuplicateObject() [uobjectglobals.cpp:1895]
UE4Editor_CoreUObject!UClassGenerateCDODuplicatesForHotReload() [uobjectbase.cpp:717]
UE4Editor_CoreUObject!ProcessNewlyLoadedUObjects() [uobjectbase.cpp:817]
UE4Editor_CoreUObject!TBaseStaticDelegateInstance<void __cdecl() [delegateinstancesimpl.h:1017]
UE4Editor_Core!TBaseMulticastDelegate<void>::Broadcast() [delegatesignatureimpl.inl:921]
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [modulemanager.cpp:461]
UE4Editor_Core!FModuleManager::LoadModule() [modulemanager.cpp:322]
UE4Editor_HotReload!FHotReloadModule::DoHotReloadInternal() [hotreload.cpp:828]
UE4Editor_HotReload!UE4Function_Private::TFunctionRefCaller<<lambda_845f9b2944b03bbc30be1e1f4a8d7f4b>,void __cdecl() [function.h:246]
UE4Editor_HotReload!FHotReloadModule::CheckForFinishedModuleDLLCompile() [hotreload.cpp:1877]
UE4Editor_HotReload!FHotReloadModule::Tick() [hotreload.cpp:566]
UE4Editor_UnrealEd!UEditorEngine::Tick() [editorengine.cpp:1020]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [unrealedengine.cpp:371]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:2834]
UE4Editor!GuardedMain() [launch.cpp:156]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:126]
UE4Editor!WinMain() [launchwindows.cpp:202]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:264]
kernel32!<Unknown>
ntdll!<Unknown>

Have Comments or More Details?

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

2
Login to Vote

Fixed
ComponentUE - Foundation - Cpp Tools - Hot Reload
Affects Versions4.134.144.154.164.17
Target Fix4.19
CreatedNov 17, 2016
ResolvedJan 11, 2018
UpdatedApr 12, 2018
View Jira Issue