Description

The Editor will crash while opening a project that had previously successfully had a Live Coding patch applied, and then was closed. The `LiveCodingConsole.exe` process continues to run after both the Live Coding console window and the Editor have been closed, and this still-running process apparently interferes with the Editor opening. Making sure that the still-running `LiveCodingConsole.exe` process is ended before opening the project again in the Editor allows the Editor to open the project successfully.

REGRESSION:
No. Live Coding is a new feature in 4.22.

Steps to Reproduce
  1. Open any code project with Live Coding enabled in both the Editor and Visual Studio.
  2. Make sure your Live Coding settings match the attached image.
    • Restart the Editor if necessary.
  3. Add a comment to any project .cpp file in Visual Studio and save the file.
  4. In the Editor, use Ctrl-Alt-F11 to start a Live Coding patch.
  5. After the patch completes successfully, close the Live Coding Console and Editor windows.
  6. Double-click the .uproject file to re-open the project in the Editor.

RESULT:
The Editor crashes due to an unhandled exception while opening shortly after the Live Coding Console window appears.

EXPECTED:
The Editor opens the project successfully.

WORKAROUND:
Make sure the still-running `LiveCodingConsole.exe` process is ended before re-opening the project.

Callstack
Unhandled exception

UE4Editor_LiveCoding!ClientUserCommandThread::EnableModule() [d:\main-builds\stream\engine\source\developer\windows\livecoding\private\external\lc_clientusercommandthread.cpp:429]
UE4Editor_LiveCoding!FLiveCodingModule::ConfigureModule() [d:\main-builds\stream\engine\source\developer\windows\livecoding\private\livecodingmodule.cpp:307]
UE4Editor_LiveCoding!FLiveCodingModule::StartLiveCoding() [d:\main-builds\stream\engine\source\developer\windows\livecoding\private\livecodingmodule.cpp:244]
UE4Editor_LiveCoding!FLiveCodingModule::StartupModule() [d:\main-builds\stream\engine\source\developer\windows\livecoding\private\livecodingmodule.cpp:76]
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [d:\main-builds\stream\engine\source\runtime\core\private\modules\modulemanager.cpp:547]
UE4Editor_Core!FModuleManager::LoadModule() [d:\main-builds\stream\engine\source\runtime\core\private\modules\modulemanager.cpp:367]
UE4Editor_Engine!UEngine::Init() [d:\main-builds\stream\engine\source\runtime\engine\private\unrealengine.cpp:1571]
UE4Editor_UnrealEd!UEditorEngine::InitEditor() [d:\main-builds\stream\engine\source\editor\unrealed\private\editorengine.cpp:587]
UE4Editor_UnrealEd!UEditorEngine::Init() [d:\main-builds\stream\engine\source\editor\unrealed\private\editorengine.cpp:824]
UE4Editor_UnrealEd!UUnrealEdEngine::Init() [d:\main-builds\stream\engine\source\editor\unrealed\private\unrealedengine.cpp:76]
UE4Editor!FEngineLoop::Init() [d:\main-builds\stream\engine\source\runtime\launch\private\launchengineloop.cpp:3301]
UE4Editor_UnrealEd!EditorInit() [d:\main-builds\stream\engine\source\editor\unrealed\private\unrealedglobals.cpp:76]
UE4Editor!GuardedMain() [d:\main-builds\stream\engine\source\runtime\launch\private\launch.cpp:154]
UE4Editor!GuardedMainWrapper() [d:\main-builds\stream\engine\source\runtime\launch\private\windows\launchwindows.cpp:145]
UE4Editor!WinMain() [d:\main-builds\stream\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-72543 in the post.

2
Login to Vote

Cannot Reproduce
ComponentUE - Foundation - Cpp Tools - Live Coding
Affects Versions4.224.23
Target Fix4.23
CreatedApr 9, 2019
ResolvedMay 23, 2019
UpdatedJul 1, 2019
View Jira Issue