Description

When pasting nodes with references to an event tick into a function then compiling the editor will crash.

Regression from 4.12.5 Binary CL-3039270

Edit - TravisL: I was able to repro this crash on CL 3104135 in //UE4/Main

Found on:
//UE4/Main CL-3104392
//UE4/Main CL-3104135
4.13.0 Binary CL-3103819

Steps to Reproduce
  1. Open UE4Editor.exe to any project
  2. Create a new blueprint based on actor, open it
  3. In BP event graph wire a print string to an event tick
  4. Highlight both and copy them
  5. Create a function and paste the nodes in the function's graph
  6. Compile

Result: Crash

Callstack
Assertion failed: !PinRef->bWasTrashed [File:d:\MainStream\Engine\Source\Runtime\Engine\Private\EdGraph\EdGraphPin.cpp] [Line: 1442] 



UE4Editor_Core!FDebug::AssertFailed() [d:\mainstream\engine\source\runtime\core\private\misc\assertionmacros.cpp:332]
UE4Editor_Engine!UEdGraphPin::SerializePin() [d:\mainstream\engine\source\runtime\engine\private\edgraph\edgraphpin.cpp:1443]
UE4Editor_Engine!UEdGraphPin::SerializePinArray() [d:\mainstream\engine\source\runtime\engine\private\edgraph\edgraphpin.cpp:1393]
UE4Editor_Engine!UEdGraphPin::Serialize() [d:\mainstream\engine\source\runtime\engine\private\edgraph\edgraphpin.cpp:1249]
UE4Editor_Engine!UEdGraphPin::SerializePin() [d:\mainstream\engine\source\runtime\engine\private\edgraph\edgraphpin.cpp:1538]
UE4Editor_Engine!UEdGraphPin::SerializePinArray() [d:\mainstream\engine\source\runtime\engine\private\edgraph\edgraphpin.cpp:1393]
UE4Editor_Engine!UEdGraphNode::Serialize() [d:\mainstream\engine\source\runtime\engine\private\edgraph\edgraphnode.cpp:318]
UE4Editor_BlueprintGraph!UK2Node_EditablePinBase::Serialize() [d:\mainstream\engine\source\editor\blueprintgraph\private\k2node_editablepinbase.cpp:205]
UE4Editor_BlueprintGraph!UK2Node_Event::Serialize() [d:\mainstream\engine\source\editor\blueprintgraph\private\k2node_event.cpp:46]
UE4Editor_CoreUObject!FFindReferencersArchive::ResetPotentialReferencer() [d:\mainstream\engine\source\runtime\coreuobject\private\serialization\findreferencersarchive.cpp:88]
UE4Editor_UnrealEd!TFindObjectReferencers<UObject>::TFindObjectReferencers<UObject>() [d:\mainstream\engine\source\runtime\coreuobject\public\serialization\findobjectreferencers.h:48]
UE4Editor_UnrealEd!FReplaceReferenceHelper::FindAndReplaceReferences() [d:\mainstream\engine\source\editor\unrealed\private\kismet2\kismetreinstanceutilities.cpp:65]
UE4Editor_UnrealEd!FBlueprintCompileReinstancer::FinalizeFastReinstancing() [d:\mainstream\engine\source\editor\unrealed\private\kismet2\kismetreinstanceutilities.cpp:532]
UE4Editor_UnrealEd!FReinstanceFinalizer::Finalize() [d:\mainstream\engine\source\editor\unrealed\private\kismet2\kismetreinstanceutilities.cpp:483]
UE4Editor_UnrealEd!FBlueprintCompileReinstancer::ReinstanceObjects() [d:\mainstream\engine\source\editor\unrealed\private\kismet2\kismetreinstanceutilities.cpp:836]
UE4Editor_UnrealEd!FKismetEditorUtilities::CompileBlueprint() [d:\mainstream\engine\source\editor\unrealed\private\kismet2\kismet2.cpp:820]
UE4Editor_Kismet!FBlueprintEditor::Compile() [d:\mainstream\engine\source\editor\kismet\private\blueprinteditor.cpp:3171]
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,TTypeWrapper<void> __cdecl(void)>::Execute() [d:\mainstream\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:317]
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,void __cdecl(void)>::ExecuteIfSafe() [d:\mainstream\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:423]
UE4Editor_Slate!FUICommandList::ExecuteAction() [d:\mainstream\engine\source\runtime\slate\private\framework\commands\uicommandlist.cpp:92]
UE4Editor_Slate!SToolBarButtonBlock::OnClicked() [d:\mainstream\engine\source\runtime\slate\private\framework\multibox\stoolbarbuttonblock.cpp:300]
UE4Editor_Slate!TMemberFunctionCaller<SToolBarButtonBlock,FReply (__cdecl SToolBarButtonBlock::*)(void) __ptr64>::operator()<>() [d:\mainstream\engine\source\runtime\core\public\delegates\delegateinstanceinterface.h:161]
UE4Editor_Slate!TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SToolBarButtonBlock,FReply (__cdecl SToolBarButtonBlock::*)(void) __ptr64> >() [d:\mainstream\engine\source\runtime\core\public\delegates\tuple.h:115]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SToolBarButtonBlock,0,FReply __cdecl(void)>::Execute() [d:\mainstream\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:317]
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() [d:\mainstream\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:521]
UE4Editor_Slate!SButton::OnMouseButtonUp() [d:\mainstream\engine\source\runtime\slate\private\widgets\input\sbutton.cpp:278]
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator()() [d:\mainstream\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4941]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() [d:\mainstream\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:215]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [d:\mainstream\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4930]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [d:\mainstream\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5388]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [d:\mainstream\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5368]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [d:\mainstream\engine\source\runtime\core\private\windows\windowsapplication.cpp:1631]
UE4Editor_Core!FWindowsApplication::DeferMessage() [d:\mainstream\engine\source\runtime\core\private\windows\windowsapplication.cpp:1977]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [d:\mainstream\engine\source\runtime\core\private\windows\windowsapplication.cpp:750]
UE4Editor_Core!FWindowsApplication::AppWndProc() [d:\mainstream\engine\source\runtime\core\private\windows\windowsapplication.cpp:672]
user32
user32
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [d:\mainstream\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:905]
UE4Editor!FEngineLoop::Tick() [d:\mainstream\engine\source\runtime\launch\private\launchengineloop.cpp:2795]
UE4Editor!GuardedMain() [d:\mainstream\engine\source\runtime\launch\private\launch.cpp:156]
UE4Editor!GuardedMainWrapper() [d:\mainstream\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\mainstream\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:255]
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-35276 in the post.

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.134.14
Target Fix4.13
Fix Commit3104847
Main Commit3109685
Release Commit3104847
CreatedAug 29, 2016
ResolvedAug 29, 2016
UpdatedJun 23, 2018
View Jira Issue