Unreal Engine 5.1 crashes when I switch to Landscpa mode.

This really helps me. Just save my life! :heart:

Mine still keeps crashing, even after assigning a texture and deleting the landscape edit section.

i did the same thing !
I moved the alpha brushes that i had from the content folder to a sub folder and that started the bug !
will try to put it back in place it should fix it

for me it was crashing when i put a texture in to sculpt the landscape width, I noticed I was using a 16bit map but using an 8bit map worked for me.

1 Like

i dont have those lines on my [LandscapeEdit] “AlphaTextureName=
”EditorPerProjectUserSettings.ini

problemL

I had the same problem i changed the brush 16 bits to 8 bit and worked

I suddenly have the same issue, although I haven’t used the landscape mode in a very long time so I have no clue when something broke. I tried the steps above but I wasn’t lucky. It crashes on a basically empty level too, with no landscape.
The Crash report also mentions a Alpha texture, maybe it’s the same issue after all? But deleting the .ini in the config didn’t fix it.

Assertion failed: (DefaultAlphaTexture != nullptr) && DefaultAlphaTexture->Source.IsValid() [File:D:\build\++UE5\Sync\Engine\Source\Editor\LandscapeEditor\Private\LandscapeEditorObject.cpp] [Line: 541]

UnrealEditor_LandscapeEditor!ULandscapeEditorObject::SetAlphaTexture() [D:\build\++UE5\Sync\Engine\Source\Editor\LandscapeEditor\Private\LandscapeEditorObject.cpp:541]
UnrealEditor_LandscapeEditor!ULandscapeEditorObject::Load() [D:\build\++UE5\Sync\Engine\Source\Editor\LandscapeEditor\Private\LandscapeEditorObject.cpp:231]
UnrealEditor_LandscapeEditor!FEdModeLandscape::Enter() [D:\build\++UE5\Sync\Engine\Source\Editor\LandscapeEditor\Private\LandscapeEdMode.cpp:589]
UnrealEditor_UnrealEd!ULegacyEdModeWrapper::Enter() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Tools\LegacyEdMode.cpp:286]
UnrealEditor_UnrealEd!FEditorModeTools::ActivateMode() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorModeManager.cpp:911]
UnrealEditor_LevelEditor!SLevelEditor::ToggleEditorMode() [D:\build\++UE5\Sync\Engine\Source\Editor\LevelEditor\Private\SLevelEditor.cpp:1677]
UnrealEditor_LevelEditor!TBaseSPMethodDelegateInstance<0,SLevelEditor,1,void __cdecl(void),FDefaultDelegateUserPolicy,FName>::ExecuteIfSafe() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:312]
UnrealEditor_Slate!FUICommandList::ExecuteAction() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\Commands\UICommandList.cpp:111]
UnrealEditor_Slate!SMenuEntryBlock::OnClicked() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1148]
UnrealEditor_Slate!SMenuEntryBlock::OnMenuItemButtonClicked() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1108]
UnrealEditor_Slate!TBaseSPMethodDelegateInstance<0,SMenuEntryBlock,1,FReply __cdecl(void),FDefaultDelegateUserPolicy>::Execute() [D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:295]
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!SMenuEntryButton::OnMouseButtonUp() [D:\build\++UE5\Sync\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:434]
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:5293]
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
  • DefaultAlphaTexture exists,
  • I deleted the entire LandscapeEdit section,
  • I removed the whole .ini.
  • Imported the DefaultAlphaTexture to the content folder and set
    AlphaTextureName=/Game/DefaultAlphaTexture.DefaultAlphaTexture
  • I tried deleting the cache Intermediate folder
  • I can open the Landscape Editor in the Lyra Example Project I downloaded a while ago, same engine version
  • I tried reverting the Material to a very basic Landscape Material state
  • I tried verify engine, it did download around 30MB, still did crash when I tried to switch.
  • If I first open another project, open the Landscape Mode, then open the actual project and go into the landscape mode it doesn’t crash. I have no idea why though.
  • I upgraded the project to 5.3, still crashes.
    … I’m out of ideas, could need some more help :frowning:
    Could really need some help :frowning:

Still crashes as soon as I switch to Landscape Edit

Seems to work when I start the project from the Epic Launcher and not directly via a shortcut but that seems like a very unreliable solution and the core problem is still unsolved.