Description

A crash occurs when LevelInstance with LevelBehavior set to "Standalone" is loaded in a standalone game. Specifically, when LevelInstance is deleted by moving outside the loading range of the worldpartition, and then moved back inside the loading range to create a new LevelInstance, a crash occurs.

Steps to Reproduce
  1. Open the sample project refer to the additional link
  2. Play in the standalone game in editor
  3. Move Character away from the level instance and confirm that the level instance is unloaded
  4. Move to the loading range to return to the starting point to load the level instance again
Callstack
LoginId:a28409704427cc781fafa5b458893007
EpicAccountId:fb567da00f03436dabdb32db92746435Assertion failed: !StreamingPolicy [File:D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartitionStreamingGeneration.cpp] [Line: 1912]UnrealEditor_Engine!`UWorldPartition::GenerateContainerStreaming'::`2'::<lambda_4>::operator()() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartitionStreamingGeneration.cpp:1912]
UnrealEditor_Engine!UWorldPartition::GenerateContainerStreaming() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartitionStreamingGeneration.cpp:1960]
UnrealEditor_Engine!UWorldPartition::GenerateStreaming() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartitionStreamingGeneration.cpp:1846]
UnrealEditor_Engine!UWorldPartition::OnBeginPlay() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartition.cpp:432]
UnrealEditor_Engine!UWorldPartition::Initialize() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartition.cpp:703]
UnrealEditor_Engine!UWorldPartitionSubsystem::OnLevelBeginMakingVisible() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\WorldPartition\WorldPartitionSubsystem.cpp:652]
UnrealEditor_Engine!TBaseUObjectMethodDelegateInstance<0,UWorldPartitionSubsystem,void __cdecl(UWorld *,ULevelStreaming const *,ULevel *),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:667]
UnrealEditor_Engine!TMulticastDelegate<void __cdecl(UWorld *,ULevelStreaming const *,ULevel *),FDefaultDelegateUserPolicy>::Broadcast() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:956]
UnrealEditor_Engine!UWorld::AddToWorld() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\World.cpp:3187]
UnrealEditor_Engine!ULevelStreaming::UpdateStreamingState() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\LevelStreaming.cpp:995]
UnrealEditor_Engine!UWorld::UpdateLevelStreaming() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\World.cpp:4327]
UnrealEditor_Engine!UGameViewportClient::Draw() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\GameViewportClient.cpp:1757]
UnrealEditor_Engine!FViewport::Draw() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\UnrealClient.cpp:1754]
UnrealEditor_Engine!UGameEngine::RedrawViewports() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\GameEngine.cpp:736]
UnrealEditor_Engine!UGameEngine::Tick() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Engine\Private\GameEngine.cpp:1907]
UnrealEditor!FEngineLoop::Tick() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5921]
UnrealEditor!GuardedMain() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Launch\Private\Launch.cpp:180]
UnrealEditor!GuardedMainWrapper() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:118]
UnrealEditor!LaunchWindowsStartup() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:258]
UnrealEditor!WinMain() [D:\Github\UnrealEngine-5.4.2-release\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:298]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-219393 in the post.

0
Login to Vote

Unresolved
CreatedJul 16, 2024
UpdatedAug 21, 2024
View Jira Issue