Description

I am seeing an ensure after adding a UFUNCTION(BlueprintCallable) accessor and then adding that function to the BP and compiling the BP in the editor.

Repro frequency is only 3/6 times.

Steps to Reproduce
  1. Open BP_QAPawn in QAGame
  2. Open QAPawn.h
  3. Add
    UFUNCTION(BlueprintCallable, Category = Pawn)

    above

    void OnCameraToggle();

    (line 265)

  4. Press Compile in the editor toolbar
  5. Switch to BP_QAPawn and add an Event BeginPlay node
  6. Add a reference to self node
  7. Drag off of self and search and place a OnCameraToggle node
  8. Wire Event BeginPlay to OnCameraToggle
  9. Press Compile in the BP Toolbar

Result: Ensure occurs sometimes

Callstack
UE4Editor_Kismet!FBlueprintEditor::OnBlueprintCompiled() blueprinteditor.cpp:3179 
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,TTypeWrapper<void> __cdecl() delegateinstancesimpl.h:327 
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,void __cdecl() delegateinstancesimpl.h:434 
UE4Editor_Engine!TBaseMulticastDelegate<void,UBlueprint * __ptr64>::Broadcast() delegatesignatureimpl.inl:937 
UE4Editor_UnrealEd!FKismetEditorUtilities::CompileBlueprint() kismet2.cpp:891 
UE4Editor_Kismet!FBlueprintEditor::Compile() blueprinteditor.cpp:3251 
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,TTypeWrapper<void> __cdecl() delegateinstancesimpl.h:327 
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,void __cdecl() delegateinstancesimpl.h:434 
UE4Editor_Slate!FUICommandList::ExecuteAction() uicommandlist.cpp:94 
UE4Editor_Slate!SToolBarButtonBlock::OnClicked() stoolbarbuttonblock.cpp:305 
UE4Editor_Slate!TMemberFunctionCaller<SToolBarButtonBlock,FReply() delegateinstanceinterface.h:165 
UE4Editor_Slate!TTupleImpl<TIntegerSequence<unsigned int> >::ApplyAfter<TMemberFunctionCaller<SToolBarButtonBlock,FReply() tuple.h:118 
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SToolBarButtonBlock,0,FReply __cdecl() delegateinstancesimpl.h:327 
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() delegatesignatureimpl.inl:537 
UE4Editor_Slate!SButton::OnMouseButtonUp() sbutton.cpp:278 
UE4Editor_Slate!<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1>::operator() slateapplication.cpp:5037 
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_8d0e9a1da76abd0a756a3a9d775f5ed1> >() slateapplication.cpp:238 
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() slateapplication.cpp:5026 
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() slateapplication.cpp:5489 
UE4Editor_Slate!FSlateApplication::OnMouseUp() slateapplication.cpp:5466 
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() windowsapplication.cpp:1696 
UE4Editor_Core!FWindowsApplication::DeferMessage() windowsapplication.cpp:2115 
UE4Editor_Core!FWindowsApplication::ProcessMessage() windowsapplication.cpp:865 
UE4Editor_Core!FWindowsApplication::AppWndProc() windowsapplication.cpp:712 
user32!<Unknown> 
user32!<Unknown> 
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() windowsplatformmisc.cpp:979 
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:2912 
UE4Editor!GuardedMain() launch.cpp:166 
UE4Editor!GuardedMainWrapper() launchwindows.cpp:130 
UE4Editor!WinMain() launchwindows.cpp:206 
UE4Editor!__scrt_common_main_seh() exe_common.inl:253 
kernel32!<Unknown> 
ntdll!<Unknown> 

Have Comments or More Details?

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

0
Login to Vote

Cannot Reproduce
ComponentUE - Gameplay - Blueprint
Affects Versions4.15
CreatedNov 29, 2016
ResolvedJan 2, 2018
UpdatedJul 14, 2021