Description

Workaround: Construct the DefaultSubobject with
... = CreateDefaultSubobject<UMassAgentComponent>(TEXT("MASS"), true);

The issue appears to be that the DefaultSubobject holds a pointer to the CDO for the
child of ACharacter which then needs to be replaced on a BP inherited class, and this
functionality is deprecated.

Steps to Reproduce

In a project with Mass enabled, add to an ACharacter child:
UPROPERTY()
UMassAgentComponent* TestMass;

In the ctor for the same, add:
TestMass = CreateDefaultSubobject<UMassAgentComponent>(TEXT("MASS"));

Compile and open the project. Create a BP child of the ACharacter child above.
Press Compile and the output log should have an error referencing [Link Removed]
(UnrealEngine.cpp:16782).

Callstack

=== Handled ensure: ===
Ensure condition failed: false [File[Image Removed]:\build++UE5\Sync\Engine\Source\Runtime\
Engine\Private\UnrealEngine.cpp] [Line: 16782]
[Link Removed]: Attempted aggressive reference replacement. 'MASS' would have been
replaced by 'MASS' in 'MASS' for property 'ConfigOwner'
Stack:
 
[Callstack] 0x00007ffbd1842e3e UnrealEditor-Engine.dll!
FAggressiveReplacementAuditArchive::operator<<() [D:\build++UE5\Sync\Engine\
Source\Runtime\Engine\Private\UnrealEngine.cpp:16782]
[Callstack] 0x00007ffbd3bb3d1d UnrealEditor-CoreUObject.dll!
FArchiveUObject::SerializeObjectPtr() [D:\build++UE5\Sync\Engine\Source\Runtime\
CoreUObject\Private\Serialization\ArchiveUObject.cpp:90]
[Callstack] 0x00007ffbd48e04e2 UnrealEditor-Core.dll!
FStructuredArchiveSlot::operator<<() [D:\build++UE5\Sync\Engine\Source\Runtime\
Core\Private\Serialization\StructuredArchiveSlots.cpp:288]
[Callstack] 0x00007ffbd3f2eda5 UnrealEditor-CoreUObject.dll!
FObjectPtrProperty::StaticSerializeItem() [D:\build++UE5\Sync\Engine\Source\Runtime\
CoreUObject\Private\UObject\PropertyObjectPtr.cpp:66]
[Callstack] 0x00007ffbd3f27886 UnrealEditor-CoreUObject.dll!
FObjectPtrProperty::SerializeItem() [D:\build++UE5\Sync\Engine\Source\Runtime\
CoreUObject\Private\UObject\PropertyObjectPtr.cpp:52]
[Callstack] 0x00007ffbd3c8fa43 UnrealEditor-CoreUObject.dll!UStruct::SerializeBin()
[D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\
Class.cpp:1103]
[Callstack] 0x00007ffbd3c9e212 UnrealEditor-CoreUObject.dll!
UScriptStruct::SerializeItem() [D:\build++UE5\Sync\Engine\Source\Runtime\
CoreUObject\Private\UObject\Class.cpp:2825]
[Callstack] 0x00007ffbd3f294ca UnrealEditor-CoreUObject.dll!
FStructProperty::SerializeItem() [D:\build++UE5\Sync\Engine\Source\Runtime\
CoreUObject\Private\UObject\PropertyStruct.cpp:175]
[Callstack] 0x00007ffbd3c8fa43 UnrealEditor-CoreUObject.dll!UStruct::SerializeBin()
[D:\build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\
Class.cpp:1103]
[Callstack] 0x00007ffbd3e55579 UnrealEditor-CoreUObject.dll!
UObject::SerializeScriptProperties() [D:\build++UE5\Sync\Engine\Source\Runtime\
CoreUObject\Private\UObject\Obj.cpp:1811]
[Callstack] 0x00007ffbd3e54a3e UnrealEditor-CoreUObject.dll!UObject::Serialize() [D:\
build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Obj.cpp:1618]
[Callstack] 0x00007ffbd3e5439b UnrealEditor-CoreUObject.dll!UObject::Serialize() [D:\
build++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Obj.cpp:1500]
[Callstack] 0x00007ffbd003be18 UnrealEditor-Engine.dll!UActorComponent::Serialize()
[D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Components\
ActorComponent.cpp:2391]
[Callstack] 0x00007ffbd3bb3be5 UnrealEditor-CoreUObject.dll!
FArchiveReplaceObjectRefBase::SerializeObject() [D:\build++UE5\Sync\Engine\
Source\Runtime\CoreUObject\Private\Serialization\ArchiveUObject.cpp:290]
[Callstack] 0x00007ffbd18eafa9 UnrealEditor-Engine.dll!
FArchiveReplaceObjectRef<UObject>::SerializeSearchObject() [D:\build++UE5\Sync\
Engine\Source\Runtime\CoreUObject\Public\Serialization\
ArchiveReplaceObjectRef.h:233]
[Callstack] 0x00007ffbd185f233 UnrealEditor-Engine.dll!
UEngine::CopyPropertiesForUnrelatedObjects() [D:\build++UE5\Sync\Engine\Source\
Runtime\Engine\Private\UnrealEngine.cpp:17020]
[Callstack] 0x00007ffbccd8df52 UnrealEditor-UnrealEd.dll!ReplaceActorHelper() [D:\
build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Kismet2\
KismetReinstanceUtilities.cpp:2241]
[Callstack] 0x00007ffbccd8fd3f UnrealEditor-UnrealEd.dll!
FBlueprintCompileReinstancer::ReplaceInstancesOfClass_Inner() [D:\build++UE5\
Sync\Engine\Source\Editor\UnrealEd\Private\Kismet2\
KismetReinstanceUtilities.cpp:2610]
[Callstack] 0x00007ffbccd39856 UnrealEditor-UnrealEd.dll!
FBlueprintCompileReinstancer::BatchReplaceInstancesOfClass() [D:\build++UE5\
Sync\Engine\Source\Editor\UnrealEd\Private\Kismet2\
KismetReinstanceUtilities.cpp:1671]
[Callstack] 0x00007ffbca3ae08c UnrealEditor-Kismet.dll!
FBlueprintCompilationManagerImpl::FlushReinstancingQueueImpl() [D:\build++UE5\
Sync\Engine\Source\Editor\Kismet\Private\BlueprintCompilationManager.cpp:1934]
[Callstack] 0x00007ffbca329d80 UnrealEditor-Kismet.dll!
FBlueprintCompilationManagerImpl::CompileSynchronouslyImpl() [D:\build++UE5\
Sync\Engine\Source\Editor\Kismet\Private\BlueprintCompilationManager.cpp:303]
[Callstack] 0x00007ffbca329a80 UnrealEditor-Kismet.dll!
FBlueprintCompilationManager::CompileSynchronously() [D:\build++UE5\Sync\
Engine\Source\Editor\Kismet\Private\BlueprintCompilationManager.cpp:3494]
[Callstack] 0x00007ffbccd42bae UnrealEditor-UnrealEd.dll!
FKismetEditorUtilities::CompileBlueprint() [D:\build++UE5\Sync\Engine\Source\Editor\
UnrealEd\Private\Kismet2\Kismet2.cpp:785]
[Callstack] 0x00007ffbca4a7ee9 UnrealEditor-Kismet.dll!FBlueprintEditor::Compile()
[D:\build\++UE5\Sync\Engine\Source\Editor\Kismet\Private\BlueprintEditor.cpp:4106]
[Callstack] 0x00007ffbca4cd63b UnrealEditor-Kismet.dll!
TBaseSPMethodDelegateInstance<0,FBlueprintEditor,1,void
__cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\build++UE5\Sync\
Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:298]
[Callstack] 0x00007ffbcec4aeb0 UnrealEditor-Slate.dll!TDelegate<void
__cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfBound<void,0>() [D:\build++UE5\
Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:570]
[Callstack] 0x00007ffbced3411f UnrealEditor-Slate.dll!
FUICommandList::ExecuteAction() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\
Private\Framework\Commands\UICommandList.cpp:117]
[Callstack] 0x00007ffbcee68672 UnrealEditor-Slate.dll!
SToolBarButtonBlock::OnClicked() [D:\build++UE5\Sync\Engine\Source\Runtime\Slate\
Private\Framework\MultiBox\SToolBarButtonBlock.cpp:446]
[Callstack] 0x00007ffbcee39d8a UnrealEditor-Slate.dll!
TBaseSPMethodDelegateInstance<0,SToolBarButtonBlock,1,FReply
__cdecl(void),FDefaultDelegateUserPolicy>::Execute() [D:\build++UE5\Sync\Engine\
Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:281]
[Callstack] 0x00007ffbceeda5fa UnrealEditor-Slate.dll!TDelegate<FReply
__cdecl(void),FDefaultDelegateUserPolicy>::Execute() [D:\build++UE5\Sync\Engine\
Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:549]
[Callstack] 0x00007ffbceeddf65 UnrealEditor-Slate.dll!SButton::ExecuteOnClick() [D:\
build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\
SButton.cpp:465]
[Callstack] 0x00007ffbceeff3e8 UnrealEditor-Slate.dll!SButton::OnMouseButtonUp() [D:\
build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\
SButton.cpp:390]
[Callstack] 0x00007ffbcec53b5a UnrealEditor-Slate.dll!
FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,`FSlate
Application::RoutePointerUpEvent'::`8'::<lambda_3> >() [D:\build++UE5\Sync\Engine\
Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:442]
[Callstack] 0x00007ffbcecbe365 UnrealEditor-Slate.dll!
FSlateApplication::RoutePointerUpEvent() [D:\build++UE5\Sync\Engine\Source\
Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5206]
[Callstack] 0x00007ffbcecab562 UnrealEditor-Slate.dll!
FSlateApplication::ProcessMouseButtonUpEvent() [D:\build++UE5\Sync\Engine\
Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5775]
[Callstack] 0x00007ffbcec9e2fa UnrealEditor-Slate.dll!FSlateApplication::OnMouseUp()
[D:\build++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\
SlateApplication.cpp:5740]
[Callstack] 0x00007ffc2b497dc6 UnrealEditor-ApplicationCore.dll!
FWindowsApplication::ProcessDeferredMessage() [D:\build++UE5\Sync\Engine\
Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2231]
[Callstack] 0x00007ffc2b47b83f UnrealEditor-ApplicationCore.dll!
FWindowsApplication::DeferMessage() [D:\build++UE5\Sync\Engine\Source\Runtime\
ApplicationCore\Private\Windows\WindowsApplication.cpp:2738]
[Callstack] 0x00007ffc2b49ab29 UnrealEditor-ApplicationCore.dll!
FWindowsApplication::ProcessMessage() [D:\build++UE5\Sync\Engine\Source\
Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1099]
[Callstack] 0x00007ffc2b4732e3 UnrealEditor-ApplicationCore.dll!
FWindowsApplication::AppWndProc() [D:\build++UE5\Sync\Engine\Source\Runtime\
ApplicationCore\Private\Windows\WindowsApplication.cpp:937]
[Callstack] 0x00007ffc78978241 USER32.dll!UnknownFunction []
[Callstack] 0x00007ffc78977d01 USER32.dll!UnknownFunction []
[Callstack] 0x00007ffc2b49c226 UnrealEditor-ApplicationCore.dll!
FWindowsPlatformApplicationMisc::PumpMessages() [D:\build++UE5\Sync\Engine\
Source\Runtime\ApplicationCore\Private\Windows\
WindowsPlatformApplicationMisc.cpp:148]
[Callstack] 0x00007ff6176476f2 UnrealEditor.exe!FEngineLoop::Tick() [D:\build++UE5\
Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5749]
[Callstack] 0x00007ff61766d28c UnrealEditor.exe!GuardedMain() [D:\build++UE5\Sync\
Engine\Source\Runtime\Launch\Private\Launch.cpp:188]
[Callstack] 0x00007ff61766d37a UnrealEditor.exe!GuardedMainWrapper() [D:\build+
+UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:118]
[Callstack] 0x00007ff617670854 UnrealEditor.exe!LaunchWindowsStartup() [D:\build+
+UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:258]
[Callstack] 0x00007ff617686984 UnrealEditor.exe!WinMain() [D:\build++UE5\Sync\
Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:298]
[Callstack] 0x00007ff617689d7a UnrealEditor.exe!__scrt_common_main_seh() [D:\a\
_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[Callstack] 0x00007ffc77dd257d KERNEL32.DLL!UnknownFunction []
[Callstack] 0x00007ffc7988aa78 ntdll.dll!UnknownFunction []

Have Comments or More Details?

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

1
Login to Vote

Unresolved
ComponentUE - AI - Mass
Affects Versions5.3
Target Fix5.5
CreatedNov 13, 2023
UpdatedFeb 29, 2024
View Jira Issue