Description

Setting a Niagara Bool parameter during runtime causes ensure

Steps to Reproduce
  1. Open a project
  2. Create and open a new system
  3. Add a Bool User parameter to the System
  4. Compile/Save
  5. Create and open a new blueprint
  6. Add a Niagara Particle System to the blueprint set to your system
  7. In the Event Graph, place a get reference to your system component and call Set Niagara Variable (Bool) > Reset System off of Event BeginPlay
  8. Compile/Save
  9. Place the BP in the level
  10. PIE/Exit PIE a few times in a row

Result: Ensure occurs 

Callstack
LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error: Ensure condition failed: FMemory::Memcmp(ActualData, OverrideValue.GetBytes(), Key.GetSizeInBytes()) == 0 [File:D:/Build/++UE4+Licensee/Sync/Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraComponent.cpp] [Line: 1988]
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00007ffaf4298390 UE4Editor-Niagara.dll!<lambda_a647223a050c0ae5d57718010225744f>::operator()() [D:\Build\++UE4+Licensee\Sync\Engine\Plugins\FX\Niagara\Source\Niagara\Private\NiagaraComponent.cpp:1988]
LogOutputDevice: Error: [Callstack] 0x00007ffaf3fb1c58 UE4Editor-Niagara.dll!UNiagaraComponent::EnsureOverrideParametersConsistent() [D:\Build\++UE4+Licensee\Sync\Engine\Plugins\FX\Niagara\Source\Niagara\Private\NiagaraComponent.cpp:1992]
LogOutputDevice: Error: [Callstack] 0x00007ffaf3f9b606 UE4Editor-Niagara.dll!UNiagaraComponent::ActivateInternal() [D:\Build\++UE4+Licensee\Sync\Engine\Plugins\FX\Niagara\Source\Niagara\Private\NiagaraComponent.cpp:936]
LogOutputDevice: Error: [Callstack] 0x00007ffb4aed0ac4 UE4Editor-CoreUObject.dll!UFunction::Invoke() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5542]
LogOutputDevice: Error: [Callstack] 0x00007ffb4b1200bd UE4Editor-CoreUObject.dll!UObject::CallFunction() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:927]
LogOutputDevice: Error: [Callstack] 0x00007ffb4b1430f3 UE4Editor-CoreUObject.dll!UObject::ProcessContextOpcode() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2796]
LogOutputDevice: Error: [Callstack] 0x00007ffb4b14572d UE4Editor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:997]
LogOutputDevice: Error: [Callstack] 0x00007ffb4b113bca UE4Editor-CoreUObject.dll!ProcessScriptFunction<void (__cdecl*)(UObject *,FFrame &,void *)>() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:828]
LogOutputDevice: Error: [Callstack] 0x00007ffb4b145372 UE4Editor-CoreUObject.dll!ProcessLocalFunction() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1058]
LogOutputDevice: Error: [Callstack] 0x00007ffb4b14572d UE4Editor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:997]
LogOutputDevice: Error: [Callstack] 0x00007ffb4b144c34 UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1085]
LogOutputDevice: Error: [Callstack] 0x00007ffb4aed0ac4 UE4Editor-CoreUObject.dll!UFunction::Invoke() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5542]
LogOutputDevice: Error: [Callstack] 0x00007ffb4b144763 UE4Editor-CoreUObject.dll!UObject::ProcessEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1916]
LogOutputDevice: Error: [Callstack] 0x00007ffb055fa025 UE4Editor-Engine.dll!AActor::ProcessEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:798]
LogOutputDevice: Error: [Callstack] 0x00007ffb055c47db UE4Editor-Engine.dll!AActor::BeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3457]
LogOutputDevice: Error: [Callstack] 0x00007ffb055d02fc UE4Editor-Engine.dll!AActor::DispatchBeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3397]
LogOutputDevice: Error: [Callstack] 0x00007ffb068757fd UE4Editor-Engine.dll!AWorldSettings::NotifyBeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:246]
LogOutputDevice: Error: [Callstack] 0x00007ffb05cb25d1 UE4Editor-Engine.dll!AGameStateBase::HandleBeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\GameStateBase.cpp:205]
LogOutputDevice: Error: [Callstack] 0x00007ffb0681fc9e UE4Editor-Engine.dll!UWorld::BeginPlay() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:4184]
LogOutputDevice: Error: [Callstack] 0x00007ffb05cd3969 UE4Editor-Engine.dll!UGameInstance::StartPlayInEditorGameInstance() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:478]
LogOutputDevice: Error: [Callstack] 0x00007ffb1993224c UE4Editor-UnrealEd.dll!UEditorEngine::CreateInnerProcessPIEGameInstance() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2791]
LogOutputDevice: Error: [Callstack] 0x00007ffb1995311c UE4Editor-UnrealEd.dll!UEditorEngine::OnLoginPIEComplete_Deferred() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1473]
LogOutputDevice: Error: [Callstack] 0x00007ffb19933189 UE4Editor-UnrealEd.dll!UEditorEngine::CreateNewPlayInEditorInstance() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1707]
LogOutputDevice: Error: [Callstack] 0x00007ffb1996ecda UE4Editor-UnrealEd.dll!UEditorEngine::StartPlayInEditorSession() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2579]
LogOutputDevice: Error: [Callstack] 0x00007ffb19971f9d UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequestImpl() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1089]
LogOutputDevice: Error: [Callstack] 0x00007ffb19971978 UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequest() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1016]
LogOutputDevice: Error: [Callstack] 0x00007ffb193fa034 UE4Editor-UnrealEd.dll!UEditorEngine::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1611]
LogOutputDevice: Error: [Callstack] 0x00007ffb19cd00d6 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:414]
LogOutputDevice: Error: [Callstack] 0x00007ff646d87800 UE4Editor.exe!FEngineLoop::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4850]
LogOutputDevice: Error: [Callstack] 0x00007ff646d9ba7c UE4Editor.exe!GuardedMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
LogOutputDevice: Error: [Callstack] 0x00007ff646d9bb5a UE4Editor.exe!GuardedMainWrapper() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
LogOutputDevice: Error: [Callstack] 0x00007ff646dae31d UE4Editor.exe!WinMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
LogOutputDevice: Error: [Callstack] 0x00007ff646db145a UE4Editor.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
LogOutputDevice: Error: [Callstack] 0x00007ffb79387bd4 KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007ffb79f0ce51 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-94675 in the post.

7
Login to Vote

Fixed
ComponentUE - Niagara
Affects Versions4.25
Target Fix4.26
Fix Commit13131322
CreatedJun 22, 2020
ResolvedOct 14, 2020
UpdatedApr 28, 2021