I am currently working on my first multiplayer game and I came across an issue where the game crashes when I host 2 Sessions. This is my code and the error message. If something is missing please let me know.
Widget:
Advanced Friends Game Instance:
Error Message:
LoginId:0b7c846e41478e268081d088e48628e2
EpicAccountId:12ac3a14079241c8ab1622a57c539326
Assertion failed: Actor->GetLevel() == this [File:./Runtime/Engine/Private/Level.cpp] [Line: 571]
ULevel::Serialize(FArchive&) Address = 0x122461093 (filename not found) [in UnrealEditor-Engine.dylib]
FArchiveGatherExternalActorRefs::operator<<(UObject*&) Address = 0x1213485d1 (filename not found) [in UnrealEditor-Engine.dylib]
FArchiveUObject::SerializeObjectPtr(FArchive&, FObjectPtr&) Address = 0x10d8598e8 (filename not found) [in UnrealEditor-CoreUObject.dylib]
UWorld::Serialize(FArchive&) Address = 0x1239def80 (filename not found) [in UnrealEditor-Engine.dylib]
FArchiveGatherExternalActorRefs::FArchiveGatherExternalActorRefs(UObject*, EObjectFlags, bool, TSet<ActorsReferencesUtils::FActorReference, FArchiveGatherExternalActorRefs::FActorReferenceKeyFuncs, FDefaultSetAllocator>&) Address = 0x12134847d (filename not found) [in UnrealEditor-Engine.dylib]
ActorsReferencesUtils::GetActorReferences(ActorsReferencesUtils::FGetActorReferencesParams const&) Address = 0x121304815 (filename not found) [in UnrealEditor-Engine.dylib]
FWorldPartitionStreamingGenerator::ValidateContainerDescriptor(FWorldPartitionStreamingGenerator::FContainerCollectionInstanceDescriptor&) Address = 0x123c02eea (filename not found) [in UnrealEditor-Engine.dylib]
FWorldPartitionStreamingGenerator::CreateActorDescriptorViewsRecursive(FWorldPartitionStreamingGenerator::FContainerCollectionInstanceDescriptor&&) Address = 0x123bffefa (filename not found) [in UnrealEditor-Engine.dylib]
FWorldPartitionStreamingGenerator::CreateActorContainers(FStreamingGenerationContainerInstanceCollection const&) Address = 0x123bfe546 (filename not found) [in UnrealEditor-Engine.dylib]
UWorldPartition::GenerateContainerStreaming(UWorldPartition::FGenerateStreamingParams const&, UWorldPartition::FGenerateStreamingContext&) Address = 0x123be19b1 (filename not found) [in UnrealEditor-Engine.dylib]
UWorldPartition::GenerateStreaming(UWorldPartition::FGenerateStreamingParams const&, UWorldPartition::FGenerateStreamingContext&) Address = 0x123b68984 (filename not found) [in UnrealEditor-Engine.dylib]
UWorldPartition::OnBeginPlay() Address = 0x123b682db (filename not found) [in UnrealEditor-Engine.dylib]
UWorldPartition::Initialize(UWorld*, UE::Math::TTransform const&) Address = 0x123b69e61 (filename not found) [in UnrealEditor-Engine.dylib]
ULevel::OnLevelLoaded() Address = 0x12247e40d (filename not found) [in UnrealEditor-Engine.dylib]
UWorld::InitWorld(FWorldInitializationValues) Address = 0x1239eea9e (filename not found) [in UnrealEditor-Engine.dylib]
UEditorEngine::PostCreatePIEWorld(UWorld*) Address = 0x11c66a49c (filename not found) [in UnrealEditor-UnrealEd.dylib]
UEngine::LoadMap(FWorldContext&, FURL, UPendingNetGame*, FString&) Address = 0x123812e62 (filename not found) [in UnrealEditor-Engine.dylib]
UEngine::Browse(FWorldContext&, FURL, FString&) Address = 0x12380d545 (filename not found) [in UnrealEditor-Engine.dylib]
UEngine::TickWorldTravel(FWorldContext&, float) Address = 0x12380f9f5 (filename not found) [in UnrealEditor-Engine.dylib]
UEditorEngine::Tick(float, bool) Address = 0x11bdd8bec (filename not found) [in UnrealEditor-UnrealEd.dylib]
UUnrealEdEngine::Tick(float, bool) Address = 0x11cba6a98 (filename not found) [in UnrealEditor-UnrealEd.dylib]
FEngineLoop::Tick() Address = 0x10b3d1085 (filename not found) [in UnrealEditor]
GuardedMain(char16_t const*) Address = 0x10b3df0c8 (filename not found) [in UnrealEditor]
-[UEAppDelegate runGameThread:] Address = 0x10b3fb5d5 (filename not found) [in UnrealEditor]
-[FCocoaGameThread main] Address = 0x10f618c10 (filename not found) [in UnrealEditor-Core.dylib]
Unknown() Address = 0x7ff810da471c (filename not found) [in Foundation]
_pthread_start Address = 0x7ff80fd36202 (filename not found) [in libsystem_pthread.dylib]
thread_start Address = 0x7ff80fd31bab (filename not found) [in libsystem_pthread.dylib]