Description

If the Restart Game function is called in blueprints or code then the editor will crash when exiting PIE

[Link Removed]

Steps to Reproduce

1. Open UE4Editor (any project)
2. Add new blueprint based on actor (MyActorBP)
3. Add input event for R key press
4. Add "Get Game mode node"
5. From Get Game Mode node create RestartGame node
6. Wire R key press event into RestartGame
7. Set AutoReceiveInput to Player0
8. Add instance of blueprint to the level
9. PIE and press R
10. Press Esc to exit PIE

Result:
Editor will crash on exit

Expected:
Editor exits PIE after restarting the game

Callstack

MachineId:9FA88CA44B7C623122B0039D6C8BA1B0
EpicAccountId:c807849e05a0413d99e379f2802cae9c

Unknown exception - code 00000001 (first/second chance not available)

"Fatal error: [Link Removed] [Line: 70]
Critical Error Package //Game//ThirdPers

KERNELBASE
UE4Editor_Core!FOutputDeviceWindowsError::Serialize() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor_Core!FOutputDevice::Logf__VA() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\misc\outputdevice.cpp:144]
UE4Editor_Core!FDebug::AssertFailed() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\misc\outputdevice.cpp:355]
UE4Editor_Core!FMsg::Logf__VA() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\misc\outputdevice.cpp:523]
UE4Editor_MessageLog!FMessageLogListingModel::AddMessageInternal() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\developer\messagelog\private\model\messageloglistingmodel.cpp:70]
UE4Editor_MessageLog!FMessageLogListingModel::AddMessages() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\developer\messagelog\private\model\messageloglistingmodel.cpp:89]
UE4Editor_Core!FMessageLog::Flush() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\logging\messagelog.cpp:188]
UE4Editor_Core!FMessageLog::~FMessageLog() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\logging\messagelog.cpp:91]
UE4Editor_UnrealEd!UEditorEngine::EndPlayMap() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\editor\unrealed\private\playlevel.cpp:289]
UE4Editor_UnrealEd!UEditorEngine::Tick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\editor\unrealed\private\editorengine.cpp:973]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\editor\unrealed\private\unrealedengine.cpp:366]
UE4Editor!FEngineLoop::Tick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\launchengineloop.cpp:2359]
UE4Editor!GuardedMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\launch.cpp:142]
UE4Editor!GuardedMainWrapper() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]

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 - Gameplay
Affects Versions4.8.14.9
Target Fix4.9
Fix Commit2616960
CreatedJul 7, 2015
ResolvedJul 10, 2015
UpdatedApr 27, 2018
View Jira Issue