Description

When pressing the End key to have a foliage mesh "snap to floor/surface" the editor will crash.

Found in 4.21 CL# 4753647, 4.22 CL# 5660361, and 4.23 CL# 5898046

Steps to Reproduce
  1. Open linked project [Link Removed]
  2. Select the foliage tool and set it to selection mode
  3. Select the tree mesh and press the End key

Results:
Crash

Expected:
The tree mesh would move to the surface of the landscape or rock mesh 

Callstack
Unhandled exception

UE4Editor_Engine!UActorComponent::GetComponentLevel() [d:\jeremymain\engine\source\runtime\engine\private\components\actorcomponent.cpp:420]
UE4Editor_FoliageEdit!FEdModeFoliage::SnapInstanceToGround() [d:\jeremymain\engine\source\editor\foliageedit\private\foliageedmode.cpp:2869]
UE4Editor_FoliageEdit!FEdModeFoliage::SnapSelectedInstancesToGround() [d:\jeremymain\engine\source\editor\foliageedit\private\foliageedmode.cpp:2819]
UE4Editor_FoliageEdit!FEdModeFoliage::InputKey() [d:\jeremymain\engine\source\editor\foliageedit\private\foliageedmode.cpp:3472]
UE4Editor_UnrealEd!FEditorModeTools::InputKey() [d:\jeremymain\engine\source\editor\unrealed\private\editormodemanager.cpp:765]
UE4Editor_UnrealEd!FEditorViewportClient::InputKey() [d:\jeremymain\engine\source\editor\unrealed\private\editorviewportclient.cpp:2586]
UE4Editor_UnrealEd!FLevelEditorViewportClient::InputKey() [d:\jeremymain\engine\source\editor\unrealed\private\leveleditorviewport.cpp:2664]
UE4Editor_LevelEditor!FViewportClient::InputKey() [d:\jeremymain\engine\source\runtime\engine\public\unrealclient.h:801]
UE4Editor_Engine!FSceneViewport::OnKeyDown() [d:\jeremymain\engine\source\runtime\engine\private\slate\sceneviewport.cpp:964]
UE4Editor_Slate!SViewport::OnKeyDown() [d:\jeremymain\engine\source\runtime\slate\private\widgets\sviewport.cpp:242]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FKeyEvent,<lambda_21fddcfe5d8b6e57b707a8971995adc5> >() [d:\jeremymain\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:271]
UE4Editor_Slate!FSlateApplication::ProcessKeyDownEvent() [d:\jeremymain\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5146]
UE4Editor_Slate!FSlateApplication::OnKeyDown() [d:\jeremymain\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:5054]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [d:\jeremymain\engine\source\runtime\applicationcore\private\windows\windowsapplication.cpp:1678]
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() [d:\jeremymain\engine\source\runtime\applicationcore\private\windows\windowsapplication.cpp:2295]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() [d:\jeremymain\engine\source\runtime\applicationcore\private\windows\windowsapplication.cpp:1523]
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() [d:\jeremymain\engine\source\runtime\applicationcore\private\windows\windowsapplication.cpp:773]
user32
user32
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [d:\jeremymain\engine\source\runtime\applicationcore\private\windows\windowsplatformapplicationmisc.cpp:122]
UE4Editor!FEngineLoop::Tick() [d:\jeremymain\engine\source\runtime\launch\private\launchengineloop.cpp:3955]
UE4Editor!GuardedMain() [d:\jeremymain\engine\source\runtime\launch\private\launch.cpp:173]
UE4Editor!GuardedMainWrapper() [d:\jeremymain\engine\source\runtime\launch\private\windows\launchwindows.cpp:145]
UE4Editor!WinMain() [d:\jeremymain\engine\source\runtime\launch\private\windows\launchwindows.cpp:275]
UE4Editor!__scrt_common_main_seh() [d:\agent\_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-72780 in the post.

2
Login to Vote

Fixed
Fix Commit5937421
Main Commit6838042
CreatedApr 15, 2019
ResolvedApr 17, 2019
UpdatedJul 14, 2021