Description

Editor crashes when removing a widget from the viewport via Event Destruct. This appears to happen when using the Stop button during PIE

Steps to Reproduce
  1. Open the attached project
  2. Play in Editor
  3. Press the Stop button
  4. Notice that the editor crashes

Expected: The session would end and the Remove widget from viewport would not be called
Result: The Remove widget from viewport appears to still be called even when the session has ended

Callstack
UE4Editor_SlateCore!TIndirectArray<SOverlay::FOverlaySlot,FDefaultAllocator>::DestructAndFreeItems() array.h:3474 
UE4Editor_SlateCore!SOverlay::ClearChildren() soverlay.cpp:171 
UE4Editor_Engine!UGameViewportClient::RemoveAllViewportWidgets() gameviewportclient.cpp:2036 
UE4Editor_Engine!UGameViewportClient::DetachViewportClient() gameviewportclient.cpp:237 
UE4Editor_Engine!UEngine::CleanupGameViewport() unrealengine.cpp:1778 
UE4Editor_UnrealEd!UEditorEngine::EndPlayMap() playlevel.cpp:231 
UE4Editor_UnrealEd!UEditorEngine::Tick() editorengine.cpp:1653 
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() unrealedengine.cpp:371 
UE4Editor!FEngineLoop::Tick() launchengineloop.cpp:2834 
UE4Editor!GuardedMain() launch.cpp:156 
UE4Editor!GuardedMainWrapper() launchwindows.cpp:126 
UE4Editor!WinMain() launchwindows.cpp:202 
UE4Editor!__scrt_common_main_seh() exe_common.inl:264 
kernel32!<Unknown> 
ntdll!<Unknown> 

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Editor - UI Systems
Affects Versions4.13
Target Fix4.14
Fix Commit3127061
Main Commit3133983
CreatedSep 8, 2016
ResolvedSep 15, 2016
UpdatedNov 30, 2022
View Jira Issue