Description

Using an Instance synced property in a Blackboard causes a crash when exiting PIE. This is a regression from 4.24.3 (CL-11590370).

This was reported and tested in 4.25 (CL-13144385). This was tested in Main 4.26 (CL-13251160)

Steps to Reproduce
  1. Open the UE4 Editor and create a Blank project
  2. Create a Blueprint pawn, Blackboard, and Behavior Tree
  3. Add an instanced property to the Blackboard (Used an int)
  4. Map Blackboard to Behavior Tree
  5. Create an AIController and set up On Begin Play to run the Behavior Tree.
  6. Assign AIController to the Pawn
  7. Start game with PIE

Results: The game will trigger an Ensure and then play. Upon ending the game the engine will crash:

Expected: Not to crash or trigger an Ensure

Callstack

Ensure

[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: === Handled ensure: ===
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: 
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: Ensure condition failed: BlackboardDataToComponentsMap.FindPair(&BlackboardData, &BlackboardComp) == nullptr [File:D:/Build/++UE4+Licensee/Sync/Engine/Source/Runtime/AIModule/Private/AISystem.cpp] [Line: 197]
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: 
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: Stack: 
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: [Callstack] 0x00007ff9f2fcd909 UE4Editor-AIModule.dll!<lambda_b4ee2e716adbf2c60961dd464c530c2a>::operator()() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\AISystem.cpp:197]
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: [Callstack] 0x00007ff9f2e5a35d UE4Editor-AIModule.dll!UAISystem::RegisterBlackboardComponent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\AISystem.cpp:197]
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: [Callstack] 0x00007ff9f2e55a80 UE4Editor-AIModule.dll!UBlackboardComponent::PopulateSynchronizedKeys() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\BlackboardComponent.cpp:240]
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: [Callstack] 0x00007ff9f2e4bfb8 UE4Editor-AIModule.dll!UBlackboardComponent::InitializeBlackboard() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\BlackboardComponent.cpp:200]
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: [Callstack] 0x00007ff9f2e4c35c UE4Editor-AIModule.dll!UBlackboardComponent::InitializeComponent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\BlackboardComponent.cpp:70]
[2020.05.08-17.58.43:215][983]LogOutputDevice: Error: [Callstack] 0x00007ffa01382ef0 UE4Editor-Engine.dll!UActorComponent::RegisterComponentWithWorld() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Components\ActorComponent.cpp:1200]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9f2e72f48 UE4Editor-AIModule.dll!AAIController::UseBlackboard() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\AIController.cpp:1019]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9f2e649aa UE4Editor-AIModule.dll!AAIController::RunBehaviorTree() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\AIController.cpp:913]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9f2f659cf UE4Editor-AIModule.dll!AAIController::execRunBehaviorTree() [D:\Build\++UE4+Licensee\Sync\Engine\Intermediate\Build\Win64\UE4Editor\Inc\AIModule\AIController.gen.cpp:188]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03d40ab4 UE4Editor-CoreUObject.dll!UFunction::Invoke() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5542]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03f8ff9d UE4Editor-CoreUObject.dll!UObject::CallFunction() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:927]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03fdc9b8 UE4Editor-CoreUObject.dll!UObject::execLetBool() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2697]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03fb560d UE4Editor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:997]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03f83aaa UE4Editor-CoreUObject.dll!ProcessScriptFunction<void (__cdecl*)(UObject *,FFrame &,void *)>() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:828]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03fb5252 UE4Editor-CoreUObject.dll!ProcessLocalFunction() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1058]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03fb560d UE4Editor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:997]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03fb4b14 UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1085]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03d40ab4 UE4Editor-CoreUObject.dll!UFunction::Invoke() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5542]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa03fb4643 UE4Editor-CoreUObject.dll!UObject::ProcessEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1916]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa00fd9fc5 UE4Editor-Engine.dll!AActor::ProcessEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:798]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa00fa477b UE4Editor-Engine.dll!AActor::BeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3457]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa00fb029c UE4Editor-Engine.dll!AActor::DispatchBeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3397]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa022547dd UE4Editor-Engine.dll!AWorldSettings::NotifyBeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:246]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa01691d61 UE4Editor-Engine.dll!AGameStateBase::HandleBeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\GameStateBase.cpp:205]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa021fedae UE4Editor-Engine.dll!UWorld::BeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:4184]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa016b30f9 UE4Editor-Engine.dll!UGameInstance::StartPlayInEditorGameInstance() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:478]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9fb8d21d0 UE4Editor-UnrealEd.dll!UEditorEngine::CreateInnerProcessPIEGameInstance() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2793]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9fb8f309c UE4Editor-UnrealEd.dll!UEditorEngine::OnLoginPIEComplete_Deferred() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1473]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9fb8d3109 UE4Editor-UnrealEd.dll!UEditorEngine::CreateNewPlayInEditorInstance() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1707]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9fb90ec5a UE4Editor-UnrealEd.dll!UEditorEngine::StartPlayInEditorSession() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2579]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9fb911f1d UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequestImpl() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1089]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9fb9118f8 UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequest() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1016]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9fb39a034 UE4Editor-UnrealEd.dll!UEditorEngine::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1611]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff9fbc70056 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:414]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff7e6a77800 UE4Editor.exe!FEngineLoop::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4850]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff7e6a8ba7c UE4Editor.exe!GuardedMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff7e6a8bb5a UE4Editor.exe!GuardedMainWrapper() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff7e6a9e31d UE4Editor.exe!WinMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ff7e6aa145a UE4Editor.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa7be67bd4 KERNEL32.DLL!UnknownFunction []
[2020.05.08-17.58.43:216][983]LogOutputDevice: Error: [Callstack] 0x00007ffa7c2cce51 ntdll.dll!UnknownFunction []

Assertion

[2020.05.08-17.58.50:721][353]LogWindows: Error: === Critical error: ===
[2020.05.08-17.58.50:721][353]LogWindows: Error: 
[2020.05.08-17.58.50:721][353]LogWindows: Error: Assertion failed: BlackboardDataToComponentsMap.FindPair(&BlackboardData, &BlackboardComp) == nullptr [File:D:/Build/++UE4+Licensee/Sync/Engine/Source/Runtime/AIModule/Private/AISystem.cpp] [Line: 220] 
[2020.05.08-17.58.50:721][353]LogWindows: Error: 
[2020.05.08-17.58.50:721][353]LogWindows: Error: 
[2020.05.08-17.58.50:721][353]LogWindows: Error: 
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ffa793aa799 KERNELBASE.dll!UnknownFunction []
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ffa04820b06 UE4Editor-Core.dll!ReportAssert() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1451]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ffa04823ee8 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ffa045b0c0d UE4Editor-Core.dll!FOutputDevice::LogfImpl() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ffa0453be95 UE4Editor-Core.dll!AssertFailedImplV() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:100]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ffa0453e1d0 UE4Editor-Core.dll!FDebug::CheckVerifyFailedImpl() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:450]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ff9f2e70894 UE4Editor-AIModule.dll!UAISystem::UnregisterBlackboardComponent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\AISystem.cpp:220]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ff9f2e7014b UE4Editor-AIModule.dll!UBlackboardComponent::UninitializeComponent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\AIModule\Private\BehaviorTree\BlackboardComponent.cpp:79]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ffa00ff3ebc UE4Editor-Engine.dll!AActor::UninitializeComponents() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:4586]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ff9fb9135eb UE4Editor-UnrealEd.dll!UEditorEngine::TeardownPlaySession() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:733]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ff9fb8d827e UE4Editor-UnrealEd.dll!UEditorEngine::EndPlayMap() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:295]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ff9fb39b4c5 UE4Editor-UnrealEd.dll!UEditorEngine::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1960]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ff9fbc70056 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:414]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ff7e6a77800 UE4Editor.exe!FEngineLoop::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4850]
[2020.05.08-17.58.50:721][353]LogWindows: Error: [Callstack] 0x00007ff7e6a8ba7c UE4Editor.exe!GuardedMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
[2020.05.08-17.58.50:722][353]LogWindows: Error: [Callstack] 0x00007ff7e6a8bb5a UE4Editor.exe!GuardedMainWrapper() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
[2020.05.08-17.58.50:722][353]LogWindows: Error: [Callstack] 0x00007ff7e6a9e31d UE4Editor.exe!WinMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
[2020.05.08-17.58.50:722][353]LogWindows: Error: [Callstack] 0x00007ff7e6aa145a UE4Editor.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2020.05.08-17.58.50:722][353]LogWindows: Error: [Callstack] 0x00007ffa7be67bd4 KERNEL32.DLL!UnknownFunction []
[2020.05.08-17.58.50:722][353]LogWindows: Error: [Callstack] 0x00007ffa7c2cce51 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-92936 in the post.

14
Login to Vote

Fixed
ComponentUE - AI
Affects Versions4.254.26
Target Fix4.26
Fix Commit13178446
Main Commit13686746
CreatedMay 8, 2020
ResolvedMay 8, 2020
UpdatedOct 24, 2022
View Jira Issue