When I try to package my project with nativization set to Inclusive it fails with the following call stack in my output log
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: begin: stack for UAT
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: === Critical error: ===
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error:
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: Fatal error!
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error:
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000002d
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error:
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: ucrtbase.dll!0x0000000021DC015C
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: ucrtbase.dll!0x0000000021DACFD2
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: ucrtbase.dll!0x0000000021DAC853
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-Core.dll!FString::Printf__VA() [d:\build\++ue4+release-4.16+compile\sync\engine\source\runtime\core\private\containers\string.cpp:1181]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-BlueprintCompilerCppBackend.dll!FString::Printf<wchar_t const * __ptr64,wchar_t const * __ptr64,wchar_t const * __ptr64,wchar_t const * __ptr64,wchar_t const * __ptr64>() [d:\build\++ue4+release-4.16+compile\sync\engine\source\runtime\core\public\containers\unrealstring.h:1366]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-BlueprintCompilerCppBackend.dll!FBackendHelperUMG::EmitWidgetInitializationFunctions() [d:\build\++ue4+release-4.16+compile\sync\engine\source\developer\blueprintcompilercppbackend\private\blueprintcompilercppbackendumg.cpp:97]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-BlueprintCompilerCppBackend.dll!FEmitDefaultValueHelper::GenerateCustomDynamicClassInitialization() [d:\build\++ue4+release-4.16+compile\sync\engine\source\developer\blueprintcompilercppbackend\private\blueprintcompilercppbackendvaluehelper.cpp:1622]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-BlueprintCompilerCppBackend.dll!FBlueprintCompilerCppBackendBase::GenerateCodeFromClass() [d:\build\++ue4+release-4.16+compile\sync\engine\source\developer\blueprintcompilercppbackend\private\blueprintcompilercppbackendbase.cpp:427]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-KismetCompiler.dll!FKismetCompilerContext::CompileFunctions() [d:\build\++ue4+release-4.16+compile\sync\engine\source\editor\kismetcompiler\private\kismetcompiler.cpp:4047]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-UMGEditor.dll!FUMGEditorModule::Compile() [d:\build\++ue4+release-4.16+compile\sync\engine\source\editor\umgeditor\private\umgeditormodule.cpp:160]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-KismetCompiler.dll!FKismet2CompilerModule::CompileBlueprintInner() [d:\build\++ue4+release-4.16+compile\sync\engine\source\editor\kismetcompiler\private\kismetcompilermodule.cpp:119]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-KismetCompiler.dll!FKismet2CompilerModule::CompileBlueprint() [d:\build\++ue4+release-4.16+compile\sync\engine\source\editor\kismetcompiler\private\kismetcompilermodule.cpp:247]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-BlueprintNativeCodeGen.dll!FBlueprintNativeCodeGenUtils::GenerateCppCode() [d:\build\++ue4+release-4.16+compile\sync\engine\source\developer\blueprintnativecodegen\private\blueprintnativecodegenutils.cpp:384]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-BlueprintNativeCodeGen.dll!FBlueprintNativeCodeGenModule::GenerateSingleAsset() [d:\build\++ue4+release-4.16+compile\sync\engine\source\developer\blueprintnativecodegen\private\blueprintnativecodegenmodule.cpp:462]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-BlueprintNativeCodeGen.dll!FBlueprintNativeCodeGenModule::GenerateFullyConvertedClasses() [d:\build\++ue4+release-4.16+compile\sync\engine\source\developer\blueprintnativecodegen\private\blueprintnativecodegenmodule.cpp:364]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::CookByTheBookFinished() [d:\build\++ue4+release-4.16+compile\sync\engine\source\editor\unrealed\private\cookontheflyserver.cpp:6206]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::TickCookOnTheSide() [d:\build\++ue4+release-4.16+compile\sync\engine\source\editor\unrealed\private\cookontheflyserver.cpp:2192]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [d:\build\++ue4+release-4.16+compile\sync\engine\source\editor\unrealed\private\commandlets\cookcommandlet.cpp:926]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-UnrealEd.dll!UCookCommandlet::Main() [d:\build\++ue4+release-4.16+compile\sync\engine\source\editor\unrealed\private\commandlets\cookcommandlet.cpp:589]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-Cmd.exe!FEngineLoop::PreInit() [d:\build\++ue4+release-4.16+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2070]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-Cmd.exe!GuardedMain() [d:\build\++ue4+release-4.16+compile\sync\engine\source\runtime\launch\private\launch.cpp:127]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-Cmd.exe!GuardedMainWrapper() [d:\build\++ue4+release-4.16+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-Cmd.exe!WinMain() [d:\build\++ue4+release-4.16+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: UE4Editor-Cmd.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: KERNEL32.DLL!0x0000000022AC8364
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: ntdll.dll!0x00000000253F70D1
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: ntdll.dll!0x00000000253F70D1
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error:
UATHelper: Packaging (Windows (32-bit)): Cook: LogWindows:Error: end: stack for UAT
Making a guess (based on the fact that “UMGEditor.dll” shows up in there) I excluded all my widget blueprints and that did allow the project to package. I’m not entirely sure which widgets in my project are causing this but I was able to find one (excluding just that one did not fix it). I tried removing everything from that widget (nodes, everything in the designer) and it still failed packaging but doesn’t fail if I migrate it to another project and package. Is there anything else I can do to help track down this problem?