Hey guys, I’ve made a foolish mistake and did not attempt to package my project in the last couple of months. Tons of assets have been added since, and simply migrating my assets to a clean project is not an option for me! When I try packaging my project I get the following error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: begin: stack for UAT
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Fatal error!
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000038
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
PackagingResults: Error: begin: stack for UAT
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb6366d0c8 UE4Editor-RenderCore.dll!FShaderMapContent::GetOutdatedTypes() [D:\Build\++UE4\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderMap.cpp:597]
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Fatal error!
PackagingResults: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000038
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb23bc604f UE4Editor-Engine.dll!FMaterialShaderMap::GetAllOutdatedTypes() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialShader.cpp:1102]
PackagingResults: Error: [Callstack] 0x00007ffb6366d0c8 UE4Editor-RenderCore.dll!FShaderMapContent::GetOutdatedTypes() [D:\Build\++UE4\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderMap.cpp:597]
PackagingResults: Error: [Callstack] 0x00007ffb23bc604f UE4Editor-Engine.dll!FMaterialShaderMap::GetAllOutdatedTypes() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialShader.cpp:1102]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb240c6127 UE4Editor-Engine.dll!GetOutdatedShaderTypes() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp:5014]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb240db6e7 UE4Editor-Engine.dll!RecompileShadersForRemote() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp:5957]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb14572f1d UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::SaveGlobalShaderMapFiles() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:5577]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb14577043 UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::StartCookByTheBook() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:6942]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb143ae33f UE4Editor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:966]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb143d8f4d UE4Editor-UnrealEd.dll!UCookCommandlet::Main() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:663]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff7c59ea02c UE4Editor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3434]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff7c59e0d2c UE4Editor-Cmd.exe!GuardedMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:132]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff7c59e10ba UE4Editor-Cmd.exe!GuardedMainWrapper() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff7c59e40dd UE4Editor-Cmd.exe!LaunchWindowsStartup() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:273]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff7c59f5984 UE4Editor-Cmd.exe!WinMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:320]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ff7c59f78be UE4Editor-Cmd.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb8e617034 KERNEL32.DLL!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffb8f002651 ntdll.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: end: stack for UAT
PackagingResults: Error: [Callstack] 0x00007ffb240c6127 UE4Editor-Engine.dll!GetOutdatedShaderTypes() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp:5014]
PackagingResults: Error: [Callstack] 0x00007ffb240db6e7 UE4Editor-Engine.dll!RecompileShadersForRemote() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp:5957]
PackagingResults: Error: [Callstack] 0x00007ffb14572f1d UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::SaveGlobalShaderMapFiles() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:5577]
PackagingResults: Error: [Callstack] 0x00007ffb14577043 UE4Editor-UnrealEd.dll!UCookOnTheFlyServer::StartCookByTheBook() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:6942]
PackagingResults: Error: [Callstack] 0x00007ffb143ae33f UE4Editor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:966]
PackagingResults: Error: [Callstack] 0x00007ffb143d8f4d UE4Editor-UnrealEd.dll!UCookCommandlet::Main() [D:\Build\++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:663]
PackagingResults: Error: [Callstack] 0x00007ff7c59ea02c UE4Editor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3434]
PackagingResults: Error: [Callstack] 0x00007ff7c59e0d2c UE4Editor-Cmd.exe!GuardedMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:132]
PackagingResults: Error: [Callstack] 0x00007ff7c59e10ba UE4Editor-Cmd.exe!GuardedMainWrapper() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
PackagingResults: Error: [Callstack] 0x00007ff7c59e40dd UE4Editor-Cmd.exe!LaunchWindowsStartup() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:273]
PackagingResults: Error: [Callstack] 0x00007ff7c59f5984 UE4Editor-Cmd.exe!WinMain() [D:\Build\++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:320]
PackagingResults: Error: [Callstack] 0x00007ff7c59f78be UE4Editor-Cmd.exe!__scrt_common_main_seh() [d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
PackagingResults: Error: [Callstack] 0x00007ffb8e617034 KERNEL32.DLL!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffb8f002651 ntdll.dll!UnknownFunction []
PackagingResults: Error: end: stack for UAT
UATHelper: Packaging (Windows (64-bit)): Took 99.4670074s to run UE4Editor-Cmd.exe, ExitCode=3
UATHelper: Packaging (Windows (64-bit)): ERROR: Cook failed.
UATHelper: Packaging (Windows (64-bit)): (see C:\Users\user\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace)
PackagingResults: Error: Cook failed.
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure
There was a couple of errors in my blueprints that I could fix via “buildallBlueprints” command. I also tried to clean my project as much as possible. I dont know what to do anymore. Here is the full log.
When I use the ‘Project Launcher’ and launch without selecting any profiles (which means without cooking, right?) everything is fine. But when I choose to cook I get the above error.
The funny thing is that I finally managed to find a potential investor in my game, and after seeing the videos he demands a playable demo! And I told him ‘yeah! this would be easy just give me a couple of days’! the meeting was two weeks ago! .
p.s: I think that there might be some problems somewhere in one of my dozen materials! but I don’t know how I can find it!