Engine crash please help!

Hey guys I have hit a brick wall. I followed a tutorial to set up Steam via blueprints etc which all works in standalone. I host a game and it works over internet (my friend joined)… After tutorial I added a team select screen widget and set default character to “spectator” so player doesn’t spawn until they have chosen a team to decide spawning point. Again works perfectly fine.
But now (I don’t know if it always did this because I only tested in standalone not in separate window PIE).
1 - Begin game with 2 connections
2 - Main menu screen displays
3 - Server clicks host game - level loads to server connection screen and a network catch (network travelling 3) I can’t fully read it because it goes off due to loading
4 - main menu randomly disappears for client therefore can’t select anything…

Second problem
1 - “”
2 - “”
3 - Client presses host server - level loads perfectly fine no travel errors
4 - Server main menu still there
5 - Server clicks server list and editor crashes to desktop

Third problem
1 - Launch game in separate windows with 2 connections as dedicated server
2 - Main Menu displays on both
3 - Client one hosts server - no errors level loads fine
4 - client 2 main menu still there
5 - client 2 clicks server list and it crashes to desktop

All these have been done with LAN enabled. I don’t know if i’ve changed something, which affected this or it is a bug… I disconnected loads of nodes and still get problem

Crash report
MachineId:5D2FAEA442464DC5AC6CB9AE23C3C51E
EpicAccountId:4524294ef4cf41eda0a774ad106d1802

Unknown exception - code 00000001 (first/second chance not available)

"Assertion failed: !DelegateInstanceInterface->IsSameFunction(*InDelegateInstance) [File:d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime

UE4Editor_Core!FDebug::AssertFailed() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\misc\outputdevice.cpp:354]
UE4Editor_UMG!TBaseMulticastDelegate<void,ULevel * __ptr64,UWorld * __ptr64>::AddDelegateInstance() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:775]
UE4Editor_UMG!TBaseMulticastDelegate<void,ULevel * __ptr64,UWorld * __ptr64>::AddUObject<UUserWidget>() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:696]
UE4Editor_UMG!UUserWidget::AddToScreen() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\umg\private\userwidget.cpp:490]
UE4Editor_UMG!UUserWidget::execAddToViewport() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\umg\public\blueprint\userwidget.h:143]
UE4Editor_CoreUObject!UFunction::Invoke() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\class.cpp:4195]
UE4Editor_CoreUObject!UObject::CallFunction() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:484]
UE4Editor_CoreUObject!UObject::ProcessContextOpcode() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1755]
UE4Editor_CoreUObject!UObject::ProcessInternal() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:698]
UE4Editor_CoreUObject!UObject::CallFunction() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:608]
UE4Editor_CoreUObject!UObject::execVirtualFunction() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1842]
UE4Editor_CoreUObject!UObject::ProcessInternal() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:698]
UE4Editor_CoreUObject!UObject::CallFunction() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:608]
UE4Editor_CoreUObject!UObject::execVirtualFunction() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1842]
UE4Editor_CoreUObject!UObject::ProcessContextOpcode() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1755]
UE4Editor_CoreUObject!UObject::ProcessInternal() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:698]
UE4Editor_CoreUObject!UFunction::Invoke() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\class.cpp:4195]
UE4Editor_CoreUObject!UObject::ProcessEvent() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1050]
UE4Editor_UMG!TMulticastScriptDelegate<FWeakObjectPtr>::ProcessMulticastDelegate<UObject>() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\public\uobject\scriptdelegates.h:459]
UE4Editor_UMG!UButton::SlateHandleClicked() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\umg\private\components\button.cpp:147]
UE4Editor_UMG!TMemberFunctionCaller<UButton,FReply (__cdecl UButton::*)(void) __ptr64>::operator()<>() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\public\delegates\delegateinstanceinterface_variadics.h:161]
UE4Editor_UMG!TTupleImpl<TIntegerSequence<> >::ApplyAfter_ExplicitReturnType<FReply,TMemberFunctionCaller<UButton,FReply (__cdecl UButton::*)(void) __ptr64> >() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\public\delegates\tuple.h:113]
UE4Editor_UMG!TBaseUObjectMethodDelegateInstance<0,UButton,FReply __cdecl(void)>::Execute() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:682]
UE4Editor_Slate!TBaseDelegate<FReply>::Execute() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:440]
UE4Editor_Slate!SButton::OnMouseButtonUp() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\slate\private\widgets\input\sbutton.cpp:236]
UE4Editor_Slate!<lambda_df946b2745ea2bbab398d4acc9cc3d04>::operator()() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4273]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_df946b2745ea2bbab398d4acc9cc3d04> >() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:214]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4276]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4660]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:4638]
UE4Editor_Core!FWindowsApplication::ProcessDeferredMessage() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\windows\windowsapplication.cpp:1403]
UE4Editor_Core!FWindowsApplication::DeferMessage() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\windows\windowsapplication.cpp:1708]
UE4Editor_Core!FWindowsApplication::ProcessMessage() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\windows\windowsapplication.cpp:706]
UE4Editor_Core!FWindowsApplication::AppWndProc() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\windows\windowsapplication.cpp:628]
user32
user32
UE4Editor_Core!FWindowsPlatformMisc::PumpMessages() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:884]
UE4Editor!FEngineLoop::Tick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\launch\private\launchengineloop.cpp:2392]
UE4Editor!GuardedMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\launch\private\launch.cpp:142]
UE4Editor!GuardedMainWrapper() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]

Hi Scottc91,

Thanks for report! This is a known issue that was first reported here:

We have it reported in our system as UE-20873, and it has not yet been fixed. It appears to be caused by a widget being added to viewport twice, which can happen fairly easily in a multiplayer BP setup.

Your best bet for now is to try to find functionality that is adding a widget to viewport when clicking Server List and ensure that only one is being added. Keep in mind that both Server and Client may attempt to add it to viewport (depending on your setup) and you may need to move this to a Server/Client only Event or BP.

Hope that helps!

I narrowed it down using switch on EnetworkFailure it outputs the “failure received” error… which doesn’t really help

Thanka for answering so quickly I will try it out tomorrow after work. Would that generate all network errors it’s giving me? Because output log it’s saying host closed network and client destroys session etc. Just want make sure there’s no other issues

crash wheb I click server list only occurs when I host as a client. other issue is when I host as server and join level… main menu of client disappears and I get network error

I don’t believe crash is related to any network issues you’re experiencing. It would be best if you created a separate post for that in Blueprint Scripting section for some community support, as it’s likely an issue with your BP setup.