Description

Crash when calling SetVector2DParameter on a Niagara Parameter Collection. The value for the SetVector2DParameter may or may not have to be changed in order for the crash to occur. 

Assertion failed: Param.GetSizeInBytes() == sizeof(T) [File:D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\Niagara\Public\NiagaraParameterStore.h] [Line: 526]
Steps to Reproduce
  1. Create or open any project with Preview 2
  2. Create a Niagara Parameter Collection with a Vector2D property
    1. Right Click in Content Browser go to FX then Select Niagara Parameter Collection
    2. Open the collection then select the '+ Add Parameter' button on the right hand side
    3. Under Common select Vector2D
    4. Save then close the Collection
  3. Open the Level Blueprint then add an 'Event Begin Play' node
  4. From it create a 'Get Niagara Parameter Collection' node
  5. From the return value of the Collection node create a 'Set Vector2D Parameter' node
  6. Save then close the Level Blueprint
  7. Play in Editor

Expected Results:
PIE works without errors and the value of the Vector2D is updated or a warning for misuse is displayed.

Actual Results:
The Editor Crashes.

Callstack
[2022.03.10-18.30.16:645][824]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2022.03.10-18.30.19:298][824]LogWindows: Error: === Critical error: ===
[2022.03.10-18.30.19:298][824]LogWindows: Error: 
[2022.03.10-18.30.19:298][824]LogWindows: Error: Assertion failed: Param.GetSizeInBytes() == sizeof(T) [File:D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\Niagara\Public\NiagaraParameterStore.h] [Line: 526] 
[2022.03.10-18.30.19:298][824]LogWindows: Error: 
[2022.03.10-18.30.19:298][824]LogWindows: Error: 
[2022.03.10-18.30.19:298][824]LogWindows: Error: 
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffcc1952c1e UnrealEditor-Niagara.dll!UNiagaraParameterCollectionInstance::SetVector2DParameter() [D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\Niagara\Private\NiagaraParameterCollection.cpp:360]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffcc1aad820 UnrealEditor-Niagara.dll!UNiagaraParameterCollectionInstance::execSetVector2DParameter() [D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Intermediate\Build\Win64\UnrealEditor\Inc\Niagara\NiagaraParameterCollection.gen.cpp:70]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffcea8ebc67 UnrealEditor-CoreUObject.dll!UFunction::Invoke() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5912]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffceaafcaf7 UnrealEditor-CoreUObject.dll!UObject::CallFunction() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1012]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffceab0f483 UnrealEditor-CoreUObject.dll!UObject::ProcessContextOpcode() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2871]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffceab12141 UnrealEditor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1082]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffceaae855e UnrealEditor-CoreUObject.dll!ProcessScriptFunction<void (__cdecl*)(UObject *,FFrame &,void *)>() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:912]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffceab11d2f UnrealEditor-CoreUObject.dll!ProcessLocalFunction() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1143]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffceab12141 UnrealEditor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1082]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffceab11454 UnrealEditor-CoreUObject.dll!UObject::ProcessInternal() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1170]
[2022.03.10-18.30.19:298][824]LogWindows: Error: [Callstack] 0x00007ffcea8ebc67 UnrealEditor-CoreUObject.dll!UFunction::Invoke() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5912]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffceab10a47 UnrealEditor-CoreUObject.dll!UObject::ProcessEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2003]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffccbf2fd64 UnrealEditor-Engine.dll!AActor::ProcessEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:1030]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffccbef99c6 UnrealEditor-Engine.dll!AActor::BeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3909]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffccbf0494f UnrealEditor-Engine.dll!AActor::DispatchBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3849]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffccdc85e42 UnrealEditor-Engine.dll!AWorldSettings::NotifyBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:276]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffccc8374f1 UnrealEditor-Engine.dll!AGameStateBase::HandleBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\GameStateBase.cpp:205]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffccdb71848 UnrealEditor-Engine.dll!UWorld::BeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:4891]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffccc7f1e15 UnrealEditor-Engine.dll!UGameInstance::StartPlayInEditorGameInstance() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:500]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffce8607a78 UnrealEditor-UnrealEd.dll!UEditorEngine::CreateInnerProcessPIEGameInstance() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:3050]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffce863ce66 UnrealEditor-UnrealEd.dll!UEditorEngine::OnLoginPIEComplete_Deferred() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1566]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffce8608522 UnrealEditor-UnrealEd.dll!UEditorEngine::CreateNewPlayInEditorInstance() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1828]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffce865b62a UnrealEditor-UnrealEd.dll!UEditorEngine::StartPlayInEditorSession() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2796]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffce865ee37 UnrealEditor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequestImpl() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1146]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffce865e721 UnrealEditor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequest() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1049]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffce7ffc7c3 UnrealEditor-UnrealEd.dll!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1665]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffce8988866 UnrealEditor-UnrealEd.dll!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:474]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ff6083682f6 UnrealEditor.exe!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5215]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ff608380d9c UnrealEditor.exe!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ff608380e8a UnrealEditor.exe!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ff608383c4d UnrealEditor.exe!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ff608395534 UnrealEditor.exe!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ff6083986d6 UnrealEditor.exe!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffd5c8f7bd4 KERNEL32.DLL!UnknownFunction []
[2022.03.10-18.30.19:299][824]LogWindows: Error: [Callstack] 0x00007ffd5d20ced1 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-145475 in the post.

2
Login to Vote

Fixed
ComponentUE - Niagara
Affects Versions5.0
Target Fix5.0.2
Fix Commit19828883
Main Commit19835262
Release Commit19828883
CreatedMar 10, 2022
ResolvedApr 20, 2022
UpdatedJan 25, 2023
View Jira Issue