Description

Crash when attempting to connect a custom Niagara parameter struct to a node when the struct contains an array

Steps to Reproduce
  1. Create and open a new blueprint structure
  2. Make the default bool variable an array
  3. Save the struct
  4. Go to project settings -> Niagara -> Additional Parameter Types and add your struct
  5. Restart your project
  6. Create and open a new Niagara module script
  7. On the Map Get, add a new input parameter of your struct's variable type
  8. Connected to your parameter's pin, place a Break node

Result: Editor crashes

Callstack
Assertion failed: CastResult [File:D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\CoreUObject\Public\UObject/Field.h] [Line: 834] CastFieldChecked failed with 0x000001574f960ae0

UE4Editor_Core!AssertFailedImplV() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:100]
UE4Editor_Core!FDebug::CheckVerifyFailedImpl() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:450]
UE4Editor_NiagaraEditor!DispatchCheckVerify<void,<lambda_102f76fc302b78a4a11aebc246889319> >() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h:162]
UE4Editor_NiagaraEditor!UEdGraphSchema_Niagara::GetTypeDefForProperty() [D:\Build\++UE4+Licensee\Sync\Engine\Plugins\FX\Niagara\Source\NiagaraEditor\Private\EdGraphSchema_Niagara.cpp:1441]
UE4Editor_NiagaraEditor!UNiagaraNodeConvert::AutowireNewNode() [D:\Build\++UE4+Licensee\Sync\Engine\Plugins\FX\Niagara\Source\NiagaraEditor\Private\NiagaraNodeConvert.cpp:110]
UE4Editor_NiagaraEditor!FNiagaraSchemaAction_NewNode::PerformAction() [D:\Build\++UE4+Licensee\Sync\Engine\Plugins\FX\Niagara\Source\NiagaraEditor\Private\EdGraphSchema_Niagara.cpp:109]
UE4Editor_NiagaraEditor!FNiagaraSchemaAction_NewNode::PerformAction() [D:\Build\++UE4+Licensee\Sync\Engine\Plugins\FX\Niagara\Source\NiagaraEditor\Private\EdGraphSchema_Niagara.cpp:141]
UE4Editor_GraphEditor!SGraphEditorActionMenu::OnActionSelected() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\GraphEditor\Private\SGraphEditorActionMenu.cpp:87]
UE4Editor_GraphEditor!TBaseSPMethodDelegateInstance<0,SGraphEditorActionMenu,0,TTypeWrapper<void> __cdecl(TArray<TSharedPtr<FEdGraphSchemaAction,0>,TSizedDefaultAllocator<32> > const &,enum ESelectInfo::Type)>::Execute() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:298]
UE4Editor_GraphEditor!SGraphActionMenu::HandleSelection() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\GraphEditor\Private\SGraphActionMenu.cpp:1532]
UE4Editor_GraphEditor!SGraphActionMenu::OnMouseButtonDownEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\GraphEditor\Private\SGraphActionMenu.cpp:1409]
UE4Editor_GraphEditor!TBaseSPMethodDelegateInstance<0,SGraphActionMenu,0,bool __cdecl(TWeakPtr<FEdGraphSchemaAction,0>)>::Execute() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:298]
UE4Editor_GraphEditor!SDefaultGraphActionWidget::OnMouseButtonDown() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\GraphEditor\Private\SGraphActionMenu.cpp:241]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FPointerEvent,<lambda_3008f576504c0c19c83032846bbd2c02> >() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:372]
UE4Editor_Slate!FSlateApplication::RoutePointerDownEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4561]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonDownEvent() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4515]
UE4Editor_Slate!FSlateApplication::OnMouseDown() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4422]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2141]
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2585]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1809]
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:852]
user32
user32
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:130]
UE4Editor!FEngineLoop::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4762]
UE4Editor!GuardedMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
UE4Editor!GuardedMainWrapper() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
UE4Editor!WinMain() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
UE4Editor!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

Have Comments or More Details?

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

1
Login to Vote

Cannot Reproduce
ComponentUE - Niagara
Affects Versions4.255.0
CreatedJun 22, 2020
ResolvedJul 3, 2023
UpdatedJul 3, 2023