Description

This crash is affecting a few users in 4.17.

Steps to Reproduce

Create 2 blueprint structs. Inner and Outer.
Outer should have a single member of type Inner named A
Inner should have a single member of type Integer named X
In a new Actor blueprint place a Make Outer node.
Split the output pin twice (so you have Outer A X) and connect it to a Make Literal Int node
Save all three assets
Force delete Inner
From the content browser reload the actor blueprint and open it

Note that there is both an orphaned Outer X A pin and an Outer A pin

Right click Outer A

Crash

Callstack
Fatal error: [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 10] Cast of nullptr to ScriptStruct failed

UE4Editor_CoreUObject!CastLogError() [casts.cpp:11]
UE4Editor_BlueprintGraph!CastChecked<UScriptStruct,UObject>() [casts.h:211]
UE4Editor_BlueprintGraph!UEdGraphSchema_K2::PinHasSplittableStructType() [edgraphschema_k2.cpp:1288]
UE4Editor_BlueprintGraph!UEdGraphSchema_K2::GetContextMenuActions() [edgraphschema_k2.cpp:1470]
UE4Editor_GraphEditor!SGraphEditorImpl::GraphEd_OnGetContextMenuFor() [sgrapheditorimpl.cpp:501]
UE4Editor_GraphEditor!TMemberFunctionCaller<SGraphEditorImpl,FActionMenuContent() [delegateinstanceinterface.h:165]
UE4Editor_GraphEditor!UE4Tuple_Private::TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SGraphEditorImpl,FActionMenuContent() [tuple.h:497]
UE4Editor_GraphEditor!TBaseSPMethodDelegateInstance<0,SGraphEditorImpl,0,FActionMenuContent __cdecl() [delegateinstancesimpl.h:327]
UE4Editor_GraphEditor!TBaseDelegate<FActionMenuContent,FGraphContextMenuArguments const & __ptr64>::Execute() [delegatesignatureimpl.inl:537]
UE4Editor_GraphEditor!SGraphPanel::SummonContextMenu() [sgraphpanel.cpp:1034]
UE4Editor_GraphEditor!SGraphPanel::OnSummonContextMenu() [sgraphpanel.cpp:757]
UE4Editor_GraphEditor!SNodePanel::OnMouseButtonUp() [snodepanel.cpp:872]
UE4Editor_GraphEditor!SGraphPanel::OnMouseButtonUp() [sgraphpanel.cpp:639]
UE4Editor_Slate!<lambda_1002768c627006711ef2f351a87ec0e7>::operator() [slateapplication.cpp:5199]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_1002768c627006711ef2f351a87ec0e7> >() [slateapplication.cpp:232]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:5188]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5690]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5670]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1718]
UE4Editor_Core!FWindowsApplication::DeferMessage() [windowsapplication.cpp:2161]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:881]
UE4Editor_Core!FWindowsApplication::AppWndProc() [windowsapplication.cpp:721]
user32!UserCallWinProcCheckWow()
user32!DispatchMessageWorker()
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [windowsplatformmisc.cpp:1009]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3151]
UE4Editor!GuardedMain() [launch.cpp:166]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:134]
UE4Editor!WinMain() [launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:253]
kernel32!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.17
Target Fix4.17.2
Fix Commit3643793
CreatedSep 14, 2017
ResolvedSep 14, 2017
UpdatedApr 1, 2019