microsoft / MixedReality-UXTools-Unreal

UX tools and components for developing Mixed Reality applications in UE4.
https://microsoft.github.io/MixedReality-UXTools-Unreal/
MIT License
316 stars 86 forks source link

Crashing On Hot Reload #76

Closed yoponchik closed 2 months ago

yoponchik commented 2 months ago

Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/CoreUObject/Private/UObject/UObjectGlobals.cpp] [Line: 3257] FObjectInitializer::Get() can only be used inside of UObject-derived class constructor.

UE4Editor_CoreUObject!FObjectInitializer::Get() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp:3258] UE4Editor_UXTools_0003!UUxtBoundsControlComponent::UUxtBoundsControlComponent() [C:\Users\ITAEC\Documents\Github\CRC_MRSimulation\Plugins\UXTools\Source\UXTools\Private\Controls\UxtBoundsControlComponent.cpp:193] UE4Editor_CoreUObject!UClass::HotReloadPrivateStaticClass() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5125] UE4Editor_CoreUObject!GetPrivateStaticClassBody() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5527] UE4Editor_UXTools_0003!UUxtBoundsControlComponent::GetPrivateStaticClass() [C:\Users\ITAEC\Documents\Github\CRC_MRSimulation\Plugins\UXTools\Intermediate\Build\Win64\UE4Editor\Inc\UXTools\UxtBoundsControlComponent.gen.cpp:1253] UE4Editor_UXTools_0003!TClassCompiledInDefer::Register() [C:\Program Files\Epic Games\UE_4.27\Engine\Source\Runtime\CoreUObject\Public\UObject\UObjectBase.h:301] UE4Editor_CoreUObject!UClassRegisterAllCompiledInClasses() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectBase.cpp:805] UE4Editor_CoreUObject!ProcessNewlyLoadedUObjects() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectBase.cpp:989] UE4Editor_CoreUObject!TBaseStaticDelegateInstance<void __cdecl(FName,bool),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:731] UE4Editor_Core!TMulticastDelegate<void cdecl(FName,bool),FDefaultDelegateUserPolicy>::Broadcast() [D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:955] UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Private\Modules\ModuleManager.cpp:519] UE4Editor_Core!FModuleManager::LoadModule() [D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Private\Modules\ModuleManager.cpp:353] UE4Editor_HotReload!FHotReloadModule::DoHotReloadInternal() [D:\Build++UE4\Sync\Engine\Source\Developer\HotReload\Private\HotReload.cpp:799] UE4Editor_HotReload!FHotReloadModule::DoHotReloadFromIDE() [D:\Build++UE4\Sync\Engine\Source\Developer\HotReload\Private\HotReload.cpp:1523] UE4Editor_HotReload!FHotReloadModule::Tick() [D:\Build++UE4\Sync\Engine\Source\Developer\HotReload\Private\HotReload.cpp:1467] UE4Editor_Core!FTicker::Tick() [D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Private\Containers\Ticker.cpp:95] UE4Editor!FEngineLoop::Tick() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5132] UE4Editor!GuardedMain() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:178] UE4Editor!GuardedMainWrapper() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137] UE4Editor!LaunchWindowsStartup() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:273] UE4Editor!WinMain() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:320] UE4Editor!scrt_common_main_seh() [d:\agent_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288] kernel32

yoponchik commented 2 months ago

Fixed in this commit