Crash when disconnecting from dedicated server: Assertion failed: WorldSettings != nullptr

I’m having a problem with my dedicated server where fairly frequently players on clients get a series of log messages like this in their log file.

[2023.08.14-04.24.09:188][587]LogNet: Warning: UActorChannel::ProcessBunch: SerializeNewActor failed to find/spawn actor. Actor: WorldSettings /Game/Maps/TowerAreas/TowerZero/_Generated_/TowerZero_MainGrid_L0_X0_Y1.TowerZero:PersistentLevel.WorldSettings, Channel: 32 [2023.08.14-04.24.10:456][688]LogNet: Warning: UActorChannel::ProcessBunch: SerializeNewActor failed to find/spawn actor. Actor: WorldSettings /Game/Maps/TowerAreas/TowerZero/_Generated_/TowerZero_MainGrid_L0_X0_Y1.TowerZero:PersistentLevel.WorldSettings, Channel: 32 [2023.08.14-04.24.17:163][215]LogNet: Warning: UActorChannel::ProcessBunch: SerializeNewActor failed to find/spawn actor. Actor: WorldSettings

The “channel” varies it just happened to be 32 both times in the snippet above. Occassionally I see the same message with other actors but 9 times out of 10 its world settings that fails. Sometimes these errors are repeated 5 or 10 times, usually within a few seconds of each other. When that happens, game play continues without a problem until they try to disconnect from the server and return to the main menu but at that point the players client crashes with this error:

[2023.08.14-04.29.18:104][551]LogWindows: Error: appError called: Assertion failed: WorldSettings != nullptr [File:C:\Users\XXX\Documents\UnrealEngine\Engine\Source\Runtime\Engine\Private\Level.cpp] [Line: 3115]

If anyone has any idea how to debug this I’d be incredibly greatful for some insight, I’ve been banging my head against a wall on it and its really hurting the player experience :/. I’m not at all familiar with the world settings actor and how it relates to exiting a session. It seems to come near the end of the tear down process.

1 Like

Hi, I met the same proble. And I find another issue about this.
Is there any method to reslove it?

The problem just seemed to disappear at some point and I never determined what was causing it unfortunately.

It seems Unreal 5.2.0 fix this crash. It only happens on 5.1.x, with streaming world partition sublevels.

I’m also encountering the same error with around a 30~40% chance when clients transition from the server to the main menu in version 5.2.1. Is using “open level” to navigate to the main menu the problem? Or is it just a simple engine bug? It seems related to WorldPartition, but I’m not sure how to resolve it.

i have it consistently on 5.2 but only when traveling from a certain map. which is an important map to travel from.

in my tests it seems that it’s related to having sublevels loaded. (and even after i’ve unloaded them).