Description

When adding the SetSenseEnabled node to a Pawn and controlling another pawn that has an AIPerceptionStiumuliSource, the editor crashes. I tested using other senses such as Hearing and the crash occurred regardless. After disconnecting or deleting the SetSenseEnabled node, the crash no longer occurred.

Tested in //UE4/Release-4.25 @ CL 14469661 and this also occurred, so NOT marking as a Regression.

Steps to Reproduce
  1. Create a First Person Template project
  2. In the FirstPersonCharacter Blueprint, add an AIPerceptionStimuliSource component
  3. In the details panel on the component, set Auto Register As Source to true
  4. Add AISense_Sight to the Register as source for senses array
  5. Create a new Pawn Blueprint named AI_Pawn
  6. Add an AIPerception component to the AI_Pawn BP
  7. Add a SetSenseEnabled node to the event graph of AI_Pawn
  8. Connect it to the Event BeginPlay node
  9. Select Sight as the sense class on the SetSenseEnabled node
  10. Set Enabled to true on the SetSense Enabled node
  11. Add the AI_Pawn to the map
  12. Press the play button

RESULT:

**The editor crashes with Assertion Failed: SenseConfig

EXPECTED:

The editor doesn't crash when using the SetSenseEnabled node

Callstack
Error: === Critical error: ===
Error: 
Error: Assertion failed: SenseConfig [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/AIModule/Private/Perception/AISense_Hearing.cpp] [Line: 95] 
Error: 
Error: 
Error: 
Error: [Callstack] 0x00007ffba3593b19 KERNELBASE.dll!UnknownFunction []
Error: [Callstack] 0x00007ffb3455d066 UE4Editor-Core.dll!ReportAssert() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1616]
Error: [Callstack] 0x00007ffb345607a8 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78]
Error: [Callstack] 0x00007ffb3426e8cd UE4Editor-Core.dll!FOutputDevice::LogfImpl() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61]
Error: [Callstack] 0x00007ffb34205575 UE4Editor-Core.dll!AssertFailedImplV() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:104]
Error: [Callstack] 0x00007ffb34207620 UE4Editor-Core.dll!FDebug::CheckVerifyFailedImpl() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:461]
Error: [Callstack] 0x00007ffb22724949 UE4Editor-AIModule.dll!UAISense_Hearing::OnNewListenerImpl() [D:\Build\++UE4\Sync\Engine\Source\Runtime\AIModule\Private\Perception\AISense_Hearing.cpp:95]
Error: [Callstack] 0x00007ffb2271f338 UE4Editor-AIModule.dll!TBaseUObjectMethodDelegateInstance<0,UAISense_Hearing,void __cdecl(FPerceptionListener const &),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:611]
Error: [Callstack] 0x00007ffb22724822 UE4Editor-AIModule.dll!UAIPerceptionSystem::OnNewListener() [D:\Build\++UE4\Sync\Engine\Source\Runtime\AIModule\Private\Perception\AIPerceptionSystem.cpp:135]
Error: [Callstack] 0x00007ffb227343f0 UE4Editor-AIModule.dll!UAIPerceptionSystem::UpdateListener() [D:\Build\++UE4\Sync\Engine\Source\Runtime\AIModule\Private\Perception\AIPerceptionSystem.cpp:312]
Error: [Callstack] 0x00007ffb22702277 UE4Editor-AIModule.dll!UAIPerceptionComponent::SetSenseEnabled() [D:\Build\++UE4\Sync\Engine\Source\Runtime\AIModule\Private\Perception\AIPerceptionComponent.cpp:816]
Error: [Callstack] 0x00007ffb2273d3e2 UE4Editor-AIModule.dll!UAIPerceptionComponent::execSetSenseEnabled() [D:\Build\++UE4\Sync\Engine\Intermediate\Build\Win64\UE4Editor\Inc\AIModule\AIPerceptionComponent.gen.cpp:392]
Error: [Callstack] 0x00007ffb306b2604 UE4Editor-CoreUObject.dll!UFunction::Invoke() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5588]
Error: [Callstack] 0x00007ffb30928176 UE4Editor-CoreUObject.dll!UObject::CallFunction() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:997]
Error: [Callstack] 0x00007ffb3093f7b3 UE4Editor-CoreUObject.dll!UObject::ProcessContextOpcode() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2870]
Error: [Callstack] 0x00007ffb309422fd UE4Editor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1067]
Error: [Callstack] 0x00007ffb30916b6a UE4Editor-CoreUObject.dll!ProcessScriptFunction<void (__cdecl*)(UObject *,FFrame &,void *)>() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:898]
Error: [Callstack] 0x00007ffb30941ef1 UE4Editor-CoreUObject.dll!ProcessLocalFunction() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1128]
Error: [Callstack] 0x00007ffb309422fd UE4Editor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1067]
Error: [Callstack] 0x00007ffb30941704 UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1155]
Error: [Callstack] 0x00007ffb306b2604 UE4Editor-CoreUObject.dll!UFunction::Invoke() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5588]
Error: [Callstack] 0x00007ffb30940e63 UE4Editor-CoreUObject.dll!UObject::ProcessEvent() [D:\Build\++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1992]
Error: [Callstack] 0x00007ffb3110c435 UE4Editor-Engine.dll!AActor::ProcessEvent() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:864]
Error: [Callstack] 0x00007ffb310daff7 UE4Editor-Engine.dll!AActor::BeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3577]
Error: [Callstack] 0x00007ffb310e443c UE4Editor-Engine.dll!AActor::DispatchBeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3517]
Error: [Callstack] 0x00007ffb324bec42 UE4Editor-Engine.dll!AWorldSettings::NotifyBeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:247]
Error: [Callstack] 0x00007ffb31835fa1 UE4Editor-Engine.dll!AGameStateBase::HandleBeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\GameStateBase.cpp:205]
Error: [Callstack] 0x00007ffb3246344e UE4Editor-Engine.dll!UWorld::BeginPlay() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:4349]
Error: [Callstack] 0x00007ffb31857f8d UE4Editor-Engine.dll!UGameInstance::StartPlayInEditorGameInstance() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:483]
Error: [Callstack] 0x00007ffb2ed6a1a5 UE4Editor-UnrealEd.dll!UEditorEngine::CreateInnerProcessPIEGameInstance() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2941]
Error: [Callstack] 0x00007ffb2ed8cd6f UE4Editor-UnrealEd.dll!UEditorEngine::OnLoginPIEComplete_Deferred() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1503]
Error: [Callstack] 0x00007ffb2ed6aedd UE4Editor-UnrealEd.dll!UEditorEngine::CreateNewPlayInEditorInstance() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1750]
Error: [Callstack] 0x00007ffb2eda8c42 UE4Editor-UnrealEd.dll!UEditorEngine::StartPlayInEditorSession() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2711]
Error: [Callstack] 0x00007ffb2edac1d1 UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequestImpl() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1116]
Error: [Callstack] 0x00007ffb2edaba98 UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequest() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1019]
Error: [Callstack] 0x00007ffb2e808c38 UE4Editor-UnrealEd.dll!UEditorEngine::Tick() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1623]
Error: [Callstack] 0x00007ffb2f1250e6 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:426]
Error: [Callstack] 0x00007ff72d3a9bc2 UE4Editor.exe!FEngineLoop::Tick() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4836]
Error: [Callstack] 0x00007ff72d3c117c UE4Editor.exe!GuardedMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
Error: [Callstack] 0x00007ff72d3c125a UE4Editor.exe!GuardedMainWrapper() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
Error: [Callstack] 0x00007ff72d3d52bd UE4Editor.exe!WinMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
Error: [Callstack] 0x00007ff72d3d7fea UE4Editor.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
Error: [Callstack] 0x00007ffba5147c24 KERNEL32.DLL!UnknownFunction []
Error: [Callstack] 0x00007ffba5ced721 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-113948 in the post.

0
Login to Vote

Fixed
ComponentUE - AI
Affects Versions4.25.44.26.2
Target Fix4.27
Fix Commit16091939
Main Commit16092036
Release Commit16091939
CreatedApr 20, 2021
ResolvedApr 22, 2021
UpdatedNov 30, 2022