Description

The Foliage tab is disabled while simulating in the viewport, however if the user has the Foliage Select mode enable when they simulate and click on a foliage instance in the viewport it will crash.

Same behavior is seen in 4.18 and is easier to occur as the Foliage tab is not disabled while simulating.

Steps to Reproduce
  1. Open QAGame
  2. Select the Foliage Tab
  3. Add a foliage type
  4. Paint in the viewport
  5. Select the Foliage Select mode
  6. Simulate
  7. Click on a foliage instance in the viewport

Result: Crash

Callstack
UE4Editor_Foliage!AInstancedFoliageActor::GetSelectionLocation() instancedfoliage.cpp:2384 
UE4Editor_FoliageEdit!FEdModeFoliage::GetSelectionLocation() foliageedmode.cpp:1752 
UE4Editor_FoliageEdit!FEdModeFoliage::UpdateWidgetLocationToInstanceSelection() foliageedmode.cpp:1780 
UE4Editor_FoliageEdit!FEdModeFoliage::HandleClick() foliageedmode.cpp:3471 
UE4Editor_UnrealEd!FEditorModeTools::HandleClick() editormodemanager.cpp:664 
UE4Editor_UnrealEd!FLevelEditorViewportClient::ProcessClick() leveleditorviewport.cpp:1946 
UE4Editor_UnrealEd!FEditorViewportClient::ProcessClickInViewport() editorviewportclient.cpp:2790 
UE4Editor_UnrealEd!FEditorViewportClient::InputKey() editorviewportclient.cpp:2552 
UE4Editor_UnrealEd!FLevelEditorViewportClient::InputKey() leveleditorviewport.cpp:2585 
UE4Editor_Engine!FSceneViewport::OnMouseButtonUp() sceneviewport.cpp:579 
UE4Editor_Slate!SViewport::OnMouseButtonUp() sviewport.cpp:202 
UE4Editor_Slate!<lambda_1002768c627006711ef2f351a87ec0e7>::operator() slateapplication.cpp:5435 
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_1002768c627006711ef2f351a87ec0e7> >() slateapplication.cpp:266 
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() slateapplication.cpp:5424 
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() slateapplication.cpp:5922 
UE4Editor_Slate!FSlateApplication::OnMouseUp() slateapplication.cpp:5902 
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() windowsapplication.cpp:1726 
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() windowsapplication.cpp:2172 
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() windowsapplication.cpp:889 
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() windowsapplication.cpp:726 
user32!<Unknown> 
user32!<Unknown> 
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() windowsplatformapplicationmisc.cpp:129 
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:3244 
UE4Editor!GuardedMain() launch.cpp:166 
UE4Editor!GuardedMainWrapper() launchwindows.cpp:134 
UE4Editor!WinMain() launchwindows.cpp:210 
UE4Editor!__scrt_common_main_seh() exe_common.inl:253 
kernel32!<Unknown> 
ntdll!<Unknown> 

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - LD & Modeling - Terrain - Landscape
Affects Versions4.18.34.19
Target Fix4.19
Fix Commit3857808
Main Commit3990065
Release Commit3857808
CreatedJan 24, 2018
ResolvedJan 26, 2018
UpdatedApr 27, 2018
View Jira Issue