Crash when nativizing blueprint with dependencies

Hello, I recently tried generating native code for some of my blueprints in my project and if a blueprint has a dependency of any kind, it immediately crashes the engine while attempting to nativize the code. I am manually opening a blueprint here, clicking File → Developer → Generate Nativized Code

Edit: Forgot to mention – this is a source build of Unreal Engine 4.25.1

I’m not quite sure where to go from here or if anyone has any idea how to fix this.

Here is the callstack:

Assertion failed: InClass [File:L:/Program Files/Epic Games/UnrealEngine/Engine/Source/Developer/BlueprintCompilerCppBackend/Private/BlueprintCompilerCppBackendGatherDependencies.cpp] [Line: 532]

UE4Editor_Core!AssertFailedImplV() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:100]
UE4Editor_Core!FDebug::CheckVerifyFailedImpl() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:450]
UE4Editor_BlueprintCompilerCppBackend!FGatherConvertedClassDependencies::DependenciesForHeader() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintCompilerCppBackend\Private\BlueprintCompilerCppBackendGatherDependencies.cpp:685]
UE4Editor_BlueprintCompilerCppBackend!FGatherConvertedClassDependencies::FGatherConvertedClassDependencies() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintCompilerCppBackend\Private\BlueprintCompilerCppBackendGatherDependencies.cpp:468]
UE4Editor_BlueprintCompilerCppBackend!FGatherConvertedClassDependencies::Get() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintCompilerCppBackend\Private\BlueprintCompilerCppBackendGatherDependencies.cpp:852]
UE4Editor_BlueprintCompilerCppBackend!FGatherConvertedClassDependencies::GatherAssetsReferencedByConvertedTypes() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintCompilerCppBackend\Private\BlueprintCompilerCppBackendGatherDependencies.cpp:901]
UE4Editor_BlueprintCompilerCppBackend!FGatherConvertedClassDependencies::AllDependencies() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintCompilerCppBackend\Private\BlueprintCompilerCppBackendGatherDependencies.cpp:819]
UE4Editor_BlueprintCompilerCppBackend!FEmitDefaultValueHelper::AddStaticFunctionsForDependencies() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintCompilerCppBackend\Private\BlueprintCompilerCppBackendValueHelper.cpp:1489]
UE4Editor_BlueprintCompilerCppBackend!FBlueprintCompilerCppBackendBase::GenerateCodeFromClass() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintCompilerCppBackend\Private\BlueprintCompilerCppBackendBase.cpp:477]
UE4Editor_KismetCompiler!FKismetCompilerContext::CompileFunctions() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Editor\KismetCompiler\Private\KismetCompiler.cpp:4361]
UE4Editor_Kismet!FBlueprintCompilationManagerImpl::FlushCompilationQueueImpl() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Editor\Kismet\Private\BlueprintCompilationManager.cpp:1299]
UE4Editor_Kismet!FBlueprintCompilationManagerImpl::CompileSynchronouslyImpl() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Editor\Kismet\Private\BlueprintCompilationManager.cpp:263]
UE4Editor_Kismet!FBlueprintCompilationManager::CompileSynchronouslyToCpp() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Editor\Kismet\Private\BlueprintCompilationManager.cpp:3060]
UE4Editor_BlueprintNativeCodeGen!FBlueprintNativeCodeGenUtils::GenerateCppCode() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintNativeCodeGen\Private\BlueprintNativeCodeGenUtils.cpp:459]
UE4Editor_BlueprintNativeCodeGen!FGeneratedCodeData::Save() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintNativeCodeGen\Private\NativeCodeGenerationTool.cpp:159]
UE4Editor_BlueprintNativeCodeGen!SNativeCodeGenerationDialog::OnButtonClicked() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintNativeCodeGen\Private\NativeCodeGenerationTool.cpp:238]
UE4Editor_BlueprintNativeCodeGen!TBaseSPMethodDelegateInstance<0,SNativeCodeGenerationDialog,0,FReply __cdecl(void)>::Execute() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:298]
UE4Editor_Slate!SButton::ExecuteOnClick() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:385]
UE4Editor_Slate!SButton::OnMouseButtonUp() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:304]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_cc5aea9e7377b04ce85c30c65ec3889b> >() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:372]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4675]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5198]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5166]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2133]
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2585]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1809]
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:852]
user32
user32
UE4Editor_ApplicationCore!FWindowsApplication::PumpMessages() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2597]
UE4Editor_Slate!FSlateApplication::TickPlatform() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:1380]
UE4Editor_Slate!FSlateApplication::AddModalWindow() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:1909]
UE4Editor_UnrealEd!UEditorEngine::EditorAddModalWindow() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:4095]
UE4Editor_BlueprintNativeCodeGen!FNativeCodeGenerationTool::Open() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Developer\BlueprintNativeCodeGen\Private\NativeCodeGenerationTool.cpp:375]
UE4Editor_Kismet!FBlueprintEditor::OpenNativeCodeGenerationTool() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Editor\Kismet\Private\BlueprintEditor.cpp:2779]
UE4Editor_Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,0,void __cdecl(void)>::ExecuteIfSafe() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:374]
UE4Editor_Slate!FUICommandList::ExecuteAction() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Commands\UICommandList.cpp:102]
UE4Editor_Slate!SMenuEntryBlock::OnClicked() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1059]
UE4Editor_Slate!SMenuEntryBlock::OnMenuItemButtonClicked() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:1019]
UE4Editor_Slate!TBaseSPMethodDelegateInstance<0,SMenuEntryBlock,0,FReply __cdecl(void)>::Execute() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:298]
UE4Editor_Slate!SButton::ExecuteOnClick() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:385]
UE4Editor_Slate!SButton::OnMouseButtonUp() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Widgets\Input\SButton.cpp:304]
UE4Editor_Slate!SMenuEntryButton::OnMouseButtonUp() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\MultiBox\SMenuEntryBlock.cpp:386]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_cc5aea9e7377b04ce85c30c65ec3889b> >() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:372]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:4675]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5198]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Slate\Private\Framework\Application\SlateApplication.cpp:5166]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2133]
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:2585]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:1809]
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsApplication.cpp:852]
user32
user32
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\ApplicationCore\Private\Windows\WindowsPlatformApplicationMisc.cpp:130]
UE4Editor!FEngineLoop::Tick() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4762]
UE4Editor!GuardedMain() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
UE4Editor!GuardedMainWrapper() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
UE4Editor!WinMain() [L:\Program Files\Epic Games\UnrealEngine\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
UE4Editor!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

the same qusetion , how to solve the problem