Description

Torrigered when hotreload is performed in a case where code referencing to dll. Crash when restarting from VisualStudio.
It didn’t see in 4.21.

Workaround:
  Delete the Intermediate folder and execute Generate Visual Studio project files

Similar issue:
LiveCoding case at [Link Removed]

Steps to Reproduce

1. Launch editor with VisualStudio
2. Change the C++ code (e.g. Change CameraBoom->TargetArmLength of AHotReloadTestCharacter from 500f to 400.f in attached project)
3. Press "Compile" button on Editor with hotreload 
4. Close editor
5. Relaunch editor from VisualStudio

Callstack

 

> UE4Editor-CoreUObject.dll!UClassCompiledInDefer(FFieldCompiledInInfo * ClassInfo, const wchar_t * Name, unsigned __int64 ClassSize, unsigned int Crc) Line 607 C++
[External Code]
UE4Editor-Core.dll!FWindowsPlatformProcess::LoadLibraryWithSearchPaths(const FString & FileName, const TArray<FString,FDefaultAllocator> & SearchPaths) Line 1675 C++
UE4Editor-Core.dll!FWindowsPlatformProcess::GetDllHandle(const wchar_t * FileName) Line 92 C++
UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason(const FName InModuleName, EModuleLoadResult & OutFailureReason) Line 511 C++
UE4Editor-Projects.dll!FModuleDescriptor::LoadModulesForPhase(ELoadingPhase::Type LoadingPhase, const TArray<FModuleDescriptor,FDefaultAllocator> & Modules, TMap<FName,enum EModuleLoadResult,FDefaultSetAllocator,TDefaultMapHashableKeyFuncs<FName,enum EModuleLoadResult,0> > & ModuleLoadErrors) Line 596 C++
UE4Editor-Projects.dll!FProjectManager::LoadModulesForProject(const ELoadingPhase::Type LoadingPhase) Line 63 C++
UE4Editor.exe!FEngineLoop::LoadStartupModules() Line 3135 C++
UE4Editor.exe!FEngineLoop::PreInit(const wchar_t * CmdLine) Line 2536 C++
[Inline Frame] UE4Editor.exe!EnginePreInit(const wchar_t *) Line 42 C++
UE4Editor.exe!GuardedMain(const wchar_t * CmdLine, HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, int nCmdShow) Line 129 C++
UE4Editor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow) Line 261 C++
[External Code]

Have Comments or More Details?

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

6
Login to Vote

Cannot Reproduce
ComponentUE - Foundation - Cpp Tools - Hot Reload
Affects Versions4.22.3
Target Fix4.23
CreatedJun 30, 2019
ResolvedJul 19, 2019
UpdatedAug 1, 2019