Hey there,
i am having some trouble with Networking in Blueprints.
I have a MenuLevel, a Lobby and a GameLevel.
Hosting a game calls “Create Session” and “Open Level (Lobby)” with “listen” as an additional option.
Joining works with “Join Session”. Then i want to use “ServerTravel” to get my Server and Clients to GameLevel.
If i only have Server “connected”, ServerTravel works. I’m calling it with Execute Console Command from PlayerController of Server. As soon as i have a Client connected, Engine/Editor crashs:
Access violation - code c0000005
(first/second chance not available)UE4Editor_Engine!UActorChannel::CleanUp()
- 1252 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\datachannel.cpp:1443]
UE4Editor_Engine!UChannel::ReceivedSequencedBunch()- 335 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\datachannel.cpp:279]
UE4Editor_Engine!UChannel::ReceivedNextBunch()- 2851 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\datachannel.cpp:588]
UE4Editor_Engine!UChannel::ReceivedRawBunch()- 675 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\datachannel.cpp:344]
UE4Editor_Engine!UNetConnection::ReceivedPacket()- 3880 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\netconnection.cpp:979]
UE4Editor_Engine!UNetConnection::ReceivedRawPacket()- 266 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\netconnection.cpp:457]
UE4Editor_OnlineSubsystemUtils!UIpNetDriver::TickDispatch()- 1367 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\online\onlinesubsystemutils\private\ipnetdriver.cpp:174]
UE4Editor_Engine!TBaseUObjectMethodDelegateInstance<0,UNetDriver,void
_cdecl(float)>::ExecuteIfSafe() + 231 bytes
[d:\buildfarm\buildmachine++depot+ue4-releases+4.7\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:772]
UE4Editor_Engine!TBaseMulticastDelegate::Broadcast()- 165 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:1030]
UE4Editor_Engine!UWorld::Tick() + 1024
bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\leveltick.cpp:1027]
UE4Editor_UnrealEd!UEditorEngine::Tick()- 5618 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\unrealed\private\editor.cpp:1329]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick()- 22 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\unrealed\private\unrealedengine.cpp:347]
UE4Editor!FEngineLoop::Tick() + 4179
bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launchengineloop.cpp:2257]
UE4Editor!GuardedMain() + 1404 bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launch.cpp:142]
UE4Editor!GuardedMainWrapper() + 26
bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() + 249 bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor!__tmainCRTStartup() + 329
bytes
[f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
Seems like a null pointer, but i can’t see where it is happening. Error message is worst xD
It could be that i have a Pointer some where that i forgot to check with “IsValid”. I will search for that tomorrow.
But i have another crash when i try to get back to my main menu with server.
So, after i ServerTraveled to Map with Server alone, I call “Destroy Session” and “Open Level (MenuLevel)”
And this always crashs with this sweet error:
Unknown exception - code 00000001
(first/second chance not available)Fatal error:
[File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.7\Engine\Source\Editor\UnrealEd\Private\Editor.cpp]
[Line: 6991] World
//Game//ThirdPersonBP//Maps//ThirdPersonExampleMap.ThirdPersonExampleMap
not cleaned up by garbage collectionKERNELBASE + 37901 bytes
UE4Editor_Core!FOutputDeviceWindowsError::Serialize()
- 292 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor_Core!FMsg::Logf__VA() + 463
bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\core\private\misc\outputdevice.cpp:531]
UE4Editor_UnrealEd!UEditorEngine::VerifyLoadMapWorldCleanup()- 1087 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\unrealed\private\editor.cpp:6991]
UE4Editor_Engine!UEngine::LoadMap() +
4171 bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\unrealengine.cpp:8756]
UE4Editor_Engine!UEngine::Browse() +
1442 bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\unrealengine.cpp:8144]
UE4Editor_Engine!UEngine::TickWorldTravel()- 813 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\engine\private\unrealengine.cpp:8311]
UE4Editor_UnrealEd!UEditorEngine::Tick()- 3829 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\unrealed\private\editor.cpp:1267]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick()- 22 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\editor\unrealed\private\unrealedengine.cpp:347]
UE4Editor!FEngineLoop::Tick() + 4179
bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launchengineloop.cpp:2257]
UE4Editor!GuardedMain() + 1404 bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\launch.cpp:142]
UE4Editor!GuardedMainWrapper() + 26
bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() + 249 bytes
[d:\buildfarm\buildmachine_++depot+ue4-releases+4.7\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor!__tmainCRTStartup() + 329
bytes
[f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
Normaly i would say this is due to a not destroyed Widget, but i already tried deleting every widget and
later on not even created one to check if it fixes error. There seems to be something else.
I looked through HUB and found out that getting all actors and destroying them should help, but that doesn’t do anything ): Is this due to ServerTravel? But deleting all actors should take care of everything…
Using Blueprint Only 4.7.5 project with default source (downloaded engine through launcher).