Description

The nodes I tried to copy are in the screenshot.

 

Hit an ensure before the crash:
Ensure condition failed: ScriptVariable != nullptr [NiagaraScriptGraphViewModel.cpp] [Line: 294]
Script variable should already exist when we copy nodes referencing them!

Steps to Reproduce

Selected a few nodes, Ctrl-C to copy -> crash

Callstack
[Inlined] FObjectDuplicationParameters::{ctor}(UObject *,UObject *) UObjectGlobals.cpp:2627
InitStaticDuplicateObjectParams(const UObject *,UObject *,FName,EObjectFlags,UClass *,Type,EInternalObjectFlags) UObjectGlobals.cpp:2633
StaticDuplicateObject(const UObject *,UObject *,FName,EObjectFlags,UClass *,Type,EInternalObjectFlags) UObjectGlobals.cpp:2670
FNiagaraScriptGraphViewModel::CopySelectedNodes() NiagaraScriptGraphViewModel.cpp:295
[Inlined] Invoke(void (FNiagaraScriptGraphViewModel::*)(),FNiagaraScriptGraphViewModel *&) Invoke.h:66
[Inlined] UE::Core::Private::Tuple::TTupleBase<TIntegerSequence<unsigned int> >::ApplyAfter(void (FNiagaraScriptGraphViewModel::*&)(),FNiagaraScriptGraphViewModel *&) Tuple.h:324
TBaseRawMethodDelegateInstance<0,FNiagaraScriptGraphViewModel,void __cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() DelegateInstancesImpl.h:467
FUICommandList::ConditionalProcessCommandBindings(FKey,bool,bool,bool,bool,bool) UICommandList.cpp:217
FUICommandList::ProcessCommandBindings(const FKeyEvent &) UICommandList.cpp:160
SGraphEditorImpl::OnKeyDown(const FGeometry &,const FKeyEvent &) SGraphEditorImpl.cpp:123
[Inlined] FSlateApplication::ProcessKeyDownEvent::__l22::<lambda_9dc931af886a2950ba18f18a6edc755e>::operator()(const FArrangedWidget &,const FKeyEvent &) SlateApplication.cpp:4458
FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FKeyEvent,<lambda_9dc931af886a2950ba18f18a6edc755e> >(FSlateApplication *,FBubblePolicy,FKeyEvent,const <lambda_9dc931af886a2950ba18f18a6edc755e> &,ESlateDebuggingInputEvent) SlateApplication.cpp:410
[Inlined] FEventRouter::RouteAlongFocusPath(FSlateApplication *,FBubblePolicy,FKeyEvent,const <lambda_9dc931af886a2950ba18f18a6edc755e> &,ESlateDebuggingInputEvent) SlateApplication.cpp:379
FSlateApplication::ProcessKeyDownEvent(const FKeyEvent &) SlateApplication.cpp:4454
FSlateApplication::OnKeyDown(const int,const unsigned int,const bool) SlateApplication.cpp:4365

Have Comments or More Details?

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

0
Login to Vote

Cannot Reproduce
ComponentUE - Niagara
Target Fix5.4
CreatedJun 1, 2022
ResolvedOct 13, 2023
UpdatedOct 13, 2023