Description

A crash occurs when breaking a level instance contained in a data layer.  This does not occur in 5.0.3, however the behaviors of Data Layers are different in 5.1 where the Data Layer asset is added from Content Browser. 

This issue is occurring in //UE5/Release-5.1 Binary CL 23058290

This issue is NOT occuring in //UE5/Release-5.0 Binary CL 20979098

 

Marked As Regression

Steps to Reproduce
  1. Create a new blank project
  2. On an open world level select Window > World Partition > Data Layers Outliner
  3. From the Data Layers Panel right click and select "Create New Data Layer"
  4. From the Data Layer Asset dropdown select Create New Asset > Data Layer
  5. Select Save
  6. Add 3 cubes to the viewport
  7. Ctrl click the 3 cubes and right click > Level > Create Level Instance
  8. Select Save
  9. With the level instance selected in the viewport select the NewDataLayerAsset in the Data Layers Panel
  10. Click the "Add selected actors to the selected data layers" button
  11. Right click the level instance in the viewport > Level > Break > Break Level Instance
    Result
    Crash
    Expected
    Level Instance is broken and the cubes remain in the data layer
Callstack
Assertion failed: GetTypedOuter<ULevel>() == Actor->GetLevel() [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\WorldPartition\DataLayer\DataLayerInstanceWithAsset.cpp] [Line: 52]
UnrealEditor_Engine!UDataLayerInstanceWithAsset::AddActor() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\WorldPartition\DataLayer\DataLayerInstanceWithAsset.cpp:52]
UnrealEditor_Engine!<lambda_e7c0cd4e6996087d2fb6157840d7b89b>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelInstance\LevelInstanceSubsystem.cpp:1316]
UnrealEditor_Engine!UE::Core::Private::Function::TFunctionRefBase<UE::Core::Private::Function::TFunctionStorage<0>,bool __cdecl(AActor *)>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\Function.h:603]
UnrealEditor_Engine!UE::Core::Private::Function::TFunctionRefCaller<<lambda_86112f7688773e630d55b4796eabd104>,bool __cdecl(AActor *)>::Call() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Templates\Function.h:465]
UnrealEditor_Engine!ULevelInstanceSubsystem::ForEachActorInLevel() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelInstance\LevelInstanceSubsystem.cpp:453]
UnrealEditor_Engine!ULevelInstanceSubsystem::ForEachActorInLevelInstance() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelInstance\LevelInstanceSubsystem.cpp:746]
UnrealEditor_Engine!ULevelInstanceSubsystem::BreakLevelInstance_Impl() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelInstance\LevelInstanceSubsystem.cpp:1336]
UnrealEditor_Engine!ULevelInstanceSubsystem::BreakLevelInstance() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelInstance\LevelInstanceSubsystem.cpp:1231]
UnrealEditor_LevelInstanceEditor!<lambda_6960625d4a9465591801fde224c48fd0>::operator()() [D:\build\++UE5\Sync\Engine\Source\Editor\LevelInstanceEditor\Private\LevelInstanceEditorModule.cpp:410]
UnrealEditor_LevelInstanceEditor!TBaseFunctorDelegateInstance<FReply __cdecl(void),FDefaultDelegateUserPolicy,<lambda_6960625d4a9465591801fde224c48fd0> >::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:839]
UnrealEditor_Slate!SButton::ExecuteOnClick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:465]
UnrealEditor_Slate!SButton::OnMouseButtonUp() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:390]
UnrealEditor_Slate!<lambda_51e270ca99ea7ce852539efd04dd453f>::operator()() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5046]
UnrealEditor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_51e270ca99ea7ce852539efd04dd453f> >() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:412]
UnrealEditor_Slate!FSlateApplication::RoutePointerUpEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5032]
UnrealEditor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5601]
UnrealEditor_Slate!FSlateApplication::OnMouseUp() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5566]
UnrealEditor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2219]
UnrealEditor_ApplicationCore!FWindowsApplication::DeferMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2726]
UnrealEditor_ApplicationCore!FWindowsApplication::ProcessMessage() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1895]
UnrealEditor_ApplicationCore!FWindowsApplication::AppWndProc() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:925]
user32
user32
UnrealEditor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [D:\build\++UE5\Sync\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:142]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5291]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:202]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282]
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-175944 in the post.

1
Login to Vote

Fixed
Fix Commit23995124
Main Commit24007132
CreatedFeb 2, 2023
ResolvedFeb 3, 2023
UpdatedAug 17, 2023
View Jira Issue