Download

Crash trying to run Uncooked Server - WorldPartition StreamingPolicy

Trying to launch a WorldPartition map with an editor build in server mode (for some unittests)
Crashes in UWorldPartition::RemapSoftObjectPath with a null streamingpolicy.

WorldPartition::Initialize has this code:

#if WITH_EDITOR
	if (!bEditorOnly)
	{
		if (IsRunningGame())
		{
			OnBeginPlay(EWorldPartitionStreamingMode::EditorStandalone);
		}

		// Apply remapping of Persistent Level's SoftObjectPaths
		FWorldPartitionLevelHelper::RemapLevelSoftObjectPaths(World->PersistentLevel, this);
	}
#endif

Unfortunately, IsRunningGame() returns false, so we don’t call OnBeginPlay (Which would create the streaming policy), but it still attempts to use it in RemapLevelSoftObjectPaths