UE5 Failed to create file while packaging

Im getting these errors but i have no clue what they could mean. I tried moving the problem files out of their place and repackaging. That resulted in some files being recreated and others not. I have no clue whats going on.

UATHelper: Packaging (Windows): LogWindows: Error: appError called: Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp] [Line: 123]
UATHelper: Packaging (Windows): Failed to create file: …/…/…/…/…/…/Users/willt/Perforce/Deedls_COMPENDIUM_PP/Project_Pasta/Saved/Shaders/PCD3D_SM6-PCD3D_SM6/ShaderAssetInfo-Global-PCD3D_SM6-PCD3D_SM6.assetinfo.json
PackagingResults: Error: appError called: Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp] [Line: 123]
UATHelper: Packaging (Windows): LogWindows: Error: begin: stack for UAT
UATHelper: Packaging (Windows): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp] [Line: 123]
UATHelper: Packaging (Windows): LogWindows: Error: Failed to create file: …/…/…/…/…/…/Users/willt/Perforce/Deedls_COMPENDIUM_PP/Project_Pasta/Saved/Shaders/PCD3D_SM6-PCD3D_SM6/ShaderAssetInfo-Global-PCD3D_SM6-PCD3D_SM6.assetinfo.json
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbaeec999f UnrealEditor-Core.dll!FFileManagerGeneric::CreateFileWriterInternal() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp:125]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbe1bff033 UnrealEditor-RenderCore.dll!FEditorShaderCodeArchive::SaveToDisk() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:1795]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbe1bfe00f UnrealEditor-RenderCore.dll!FShaderLibrariesCollection::SaveShaderCode() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:2965]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbe1bfe5c2 UnrealEditor-RenderCore.dll!FShaderLibraryCooker::SaveShaderLibraryWithoutChunking() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:3626]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad36c275 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::SaveShaderLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:8187]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad369c09 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::SaveAndCloseGlobalShaderLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:8151]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad328657 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::BeginCookFinishShaderCodeLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:7945]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad370098 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::StartCookByTheBook() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:9242]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad0cf4e2 UnrealEditor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:818]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad0f16a3 UnrealEditor-UnrealEd.dll!UCookCommandlet::Main() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:556]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783ab0ce UnrealEditor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3717]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783a2688 UnrealEditor-Cmd.exe!GuardedMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:154]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783a296a UnrealEditor-Cmd.exe!GuardedMainWrapper() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783a5680 UnrealEditor-Cmd.exe!LaunchWindowsStartup() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783b71b4 UnrealEditor-Cmd.exe!WinMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783b96f2 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffc6f31257d KERNEL32.DLL!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffc6fd4aa58 ntdll.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: end: stack for UAT
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp] [Line: 123]
PackagingResults: Error: Failed to create file: …/…/…/…/…/…/Users/willt/Perforce/Deedls_COMPENDIUM_PP/Project_Pasta/Saved/Shaders/PCD3D_SM6-PCD3D_SM6/ShaderAssetInfo-Global-PCD3D_SM6-PCD3D_SM6.assetinfo.json
PackagingResults: Error: [Callstack] 0x00007ffbaeec999f UnrealEditor-Core.dll!FFileManagerGeneric::CreateFileWriterInternal() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp:125]
PackagingResults: Error: [Callstack] 0x00007ffbe1bff033 UnrealEditor-RenderCore.dll!FEditorShaderCodeArchive::SaveToDisk() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:1795]
PackagingResults: Error: [Callstack] 0x00007ffbe1bfe00f UnrealEditor-RenderCore.dll!FShaderLibrariesCollection::SaveShaderCode() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:2965]
PackagingResults: Error: [Callstack] 0x00007ffbe1bfe5c2 UnrealEditor-RenderCore.dll!FShaderLibraryCooker::SaveShaderLibraryWithoutChunking() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:3626]
PackagingResults: Error: [Callstack] 0x00007ffbad36c275 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::SaveShaderLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:8187]
PackagingResults: Error: [Callstack] 0x00007ffbad369c09 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::SaveAndCloseGlobalShaderLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:8151]
PackagingResults: Error: [Callstack] 0x00007ffbad328657 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::BeginCookFinishShaderCodeLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:7945]
PackagingResults: Error: [Callstack] 0x00007ffbad370098 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::StartCookByTheBook() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:9242]
PackagingResults: Error: [Callstack] 0x00007ffbad0cf4e2 UnrealEditor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:818]
PackagingResults: Error: [Callstack] 0x00007ffbad0f16a3 UnrealEditor-UnrealEd.dll!UCookCommandlet::Main() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:556]
PackagingResults: Error: [Callstack] 0x00007ff6783ab0ce UnrealEditor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3717]
PackagingResults: Error: [Callstack] 0x00007ff6783a2688 UnrealEditor-Cmd.exe!GuardedMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:154]
PackagingResults: Error: [Callstack] 0x00007ff6783a296a UnrealEditor-Cmd.exe!GuardedMainWrapper() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
PackagingResults: Error: [Callstack] 0x00007ff6783a5680 UnrealEditor-Cmd.exe!LaunchWindowsStartup() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
PackagingResults: Error: [Callstack] 0x00007ff6783b71b4 UnrealEditor-Cmd.exe!WinMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282]
PackagingResults: Error: [Callstack] 0x00007ff6783b96f2 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
PackagingResults: Error: [Callstack] 0x00007ffc6f31257d KERNEL32.DLL!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc6fd4aa58 ntdll.dll!UnknownFunction
PackagingResults: Error: end: stack for UAT
UATHelper: Packaging (Windows): Took 12.943705s to run UnrealEditor-Cmd.exe, ExitCode=3
UATHelper: Packaging (Windows): ERROR: Cook failed.
UATHelper: Packaging (Windows): (see C:\Users\willt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 1m 30s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Cook failed.
PackagingResults: Error: Unknown Cook Failure

Jesus.

It doesn’t matter how many times I’ve helped others with these packing problems, or watched other people help others to learn more, I never seem to see the same thing twice.

Alright, first things first:

  1. Fix up redirectors.
  2. Migrate the ENTIRE project into an EMPTY PROJECT.

Report back.

Neither of those worked. It took a few minutes longer to fail this time though so theres that if it means anything at all.

Can you post the updated output log?

Its in the same perforce folder. Only did that so that on the off chance it worked i could easily update everything for the team.

UATHelper: Packaging (Windows): LogWindows: Error: appError called: Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp] [Line: 123]
UATHelper: Packaging (Windows): Failed to create file: …/…/…/…/…/…/Users/willt/Perforce/Deedls_COMPENDIUM_PP/Project_Pasta/Saved/Shaders/PCD3D_SM6-PCD3D_SM6/ShaderAssetInfo-Global-PCD3D_SM6-PCD3D_SM6.assetinfo.json
PackagingResults: Error: appError called: Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp] [Line: 123]
UATHelper: Packaging (Windows): LogWindows: Error: begin: stack for UAT
UATHelper: Packaging (Windows): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp] [Line: 123]
UATHelper: Packaging (Windows): LogWindows: Error: Failed to create file: …/…/…/…/…/…/Users/willt/Perforce/Deedls_COMPENDIUM_PP/Project_Pasta/Saved/Shaders/PCD3D_SM6-PCD3D_SM6/ShaderAssetInfo-Global-PCD3D_SM6-PCD3D_SM6.assetinfo.json
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbaeec999f UnrealEditor-Core.dll!FFileManagerGeneric::CreateFileWriterInternal() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp:125]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbe1bff033 UnrealEditor-RenderCore.dll!FEditorShaderCodeArchive::SaveToDisk() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:1795]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbe1bfe00f UnrealEditor-RenderCore.dll!FShaderLibrariesCollection::SaveShaderCode() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:2965]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbe1bfe5c2 UnrealEditor-RenderCore.dll!FShaderLibraryCooker::SaveShaderLibraryWithoutChunking() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:3626]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad36c275 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::SaveShaderLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:8187]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad369c09 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::SaveAndCloseGlobalShaderLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:8151]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad328657 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::BeginCookFinishShaderCodeLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:7945]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad370098 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::StartCookByTheBook() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:9242]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad0cf4e2 UnrealEditor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:818]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffbad0f16a3 UnrealEditor-UnrealEd.dll!UCookCommandlet::Main() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:556]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783ab0ce UnrealEditor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3717]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783a2688 UnrealEditor-Cmd.exe!GuardedMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:154]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783a296a UnrealEditor-Cmd.exe!GuardedMainWrapper() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783a5680 UnrealEditor-Cmd.exe!LaunchWindowsStartup() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783b71b4 UnrealEditor-Cmd.exe!WinMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff6783b96f2 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffc6f31257d KERNEL32.DLL!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffc6fd4aa58 ntdll.dll!UnknownFunction
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: end: stack for UAT
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp] [Line: 123]
PackagingResults: Error: Failed to create file: …/…/…/…/…/…/Users/willt/Perforce/Deedls_COMPENDIUM_PP/Project_Pasta/Saved/Shaders/PCD3D_SM6-PCD3D_SM6/ShaderAssetInfo-Global-PCD3D_SM6-PCD3D_SM6.assetinfo.json
PackagingResults: Error: [Callstack] 0x00007ffbaeec999f UnrealEditor-Core.dll!FFileManagerGeneric::CreateFileWriterInternal() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\FileManagerGeneric.cpp:125]
PackagingResults: Error: [Callstack] 0x00007ffbe1bff033 UnrealEditor-RenderCore.dll!FEditorShaderCodeArchive::SaveToDisk() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:1795]
PackagingResults: Error: [Callstack] 0x00007ffbe1bfe00f UnrealEditor-RenderCore.dll!FShaderLibrariesCollection::SaveShaderCode() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:2965]
PackagingResults: Error: [Callstack] 0x00007ffbe1bfe5c2 UnrealEditor-RenderCore.dll!FShaderLibraryCooker::SaveShaderLibraryWithoutChunking() [D:\build++UE5\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCodeLibrary.cpp:3626]
PackagingResults: Error: [Callstack] 0x00007ffbad36c275 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::SaveShaderLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:8187]
PackagingResults: Error: [Callstack] 0x00007ffbad369c09 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::SaveAndCloseGlobalShaderLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:8151]
PackagingResults: Error: [Callstack] 0x00007ffbad328657 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::BeginCookFinishShaderCodeLibrary() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:7945]
PackagingResults: Error: [Callstack] 0x00007ffbad370098 UnrealEditor-UnrealEd.dll!UCookOnTheFlyServer::StartCookByTheBook() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\CookOnTheFlyServer.cpp:9242]
PackagingResults: Error: [Callstack] 0x00007ffbad0cf4e2 UnrealEditor-UnrealEd.dll!UCookCommandlet::CookByTheBook() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:818]
PackagingResults: Error: [Callstack] 0x00007ffbad0f16a3 UnrealEditor-UnrealEd.dll!UCookCommandlet::Main() [D:\build++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\Commandlets\CookCommandlet.cpp:556]
PackagingResults: Error: [Callstack] 0x00007ff6783ab0ce UnrealEditor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3717]
PackagingResults: Error: [Callstack] 0x00007ff6783a2688 UnrealEditor-Cmd.exe!GuardedMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:154]
PackagingResults: Error: [Callstack] 0x00007ff6783a296a UnrealEditor-Cmd.exe!GuardedMainWrapper() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
PackagingResults: Error: [Callstack] 0x00007ff6783a5680 UnrealEditor-Cmd.exe!LaunchWindowsStartup() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
PackagingResults: Error: [Callstack] 0x00007ff6783b71b4 UnrealEditor-Cmd.exe!WinMain() [D:\build++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282]
PackagingResults: Error: [Callstack] 0x00007ff6783b96f2 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
PackagingResults: Error: [Callstack] 0x00007ffc6f31257d KERNEL32.DLL!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc6fd4aa58 ntdll.dll!UnknownFunction
PackagingResults: Error: end: stack for UAT
UATHelper: Packaging (Windows): Took 12.943705s to run UnrealEditor-Cmd.exe, ExitCode=3
UATHelper: Packaging (Windows): ERROR: Cook failed.
UATHelper: Packaging (Windows): (see C:\Users\willt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\Log.txt for full exception trace)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 1m 30s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Cook failed.
PackagingResults: Error: Unknown Cook Failure

1 Like

I notice the path …/…/…/…/…/…/Users/willt/Perforce/Deedls_COMPENDIUM_PP/Project_Pasta/Saved/Shaders/PCD3D_SM6-PCD3D_SM6/ShaderAssetInfo-Global-PCD3D_SM6-PCD3D_SM6.assetinfo.json
is quite long, that may be a problem. Do you have long pathnames >256 chars turned on in Windows? Maybe try moving the project to C:/Project_Pasta and try packaging from there?
Also do you have UE installed on D:? I’ve seen reports that may cause issues sometimes.
Good luck!

1 Like

Okay, so you tested previously to make sure that every asset put in the project was packageable?

If not, unless someone else knows exactly what this text means (I do not… I have an idea… but not sure), you need to, one by one, in a FRESH PROJECT try to package each group of assets.

I’m not sure if you/your team made everything.

If you do not find a culprit, then it’s something else.

@IslandPlaya brings up a curious point about the file name length. Worth a shot! (As well as the drive).

Replying to both at once. Its on my D drive. I can try moving it out of the perforce folder to see if that fixes it. Also most assets were made by my team. The only stuff not made by us is stuff thats worked in previous builds. Ill get back to you on whether moving it works.

Alright so moving it somewhere with a shorter filepath didnt work. Ill try the asset group packaging thing. There werent too many new assets added since the last build so hopefully it wont be too hard.

Somehow those errors went away. Now im stuck with this

UATHelper: Packaging (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows): Running: C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “C:\Program Files\Epic Games\UE_5.1\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” CompendiumFixMaybe Win64 DebugGame -Project=“C:\Users\willt\Documents\Unreal Projects\CompendiumFixMaybe\CompendiumFixMaybe.uproject” “C:\Users\willt\Documents\Unreal Projects\CompendiumFixMaybe\CompendiumFixMaybe.uproject” -NoUBTMakefiles -remoteini=“C:\Users\willt\Documents\Unreal Projects\CompendiumFixMaybe” -skipdeploy -Manifest=“C:\Users\willt\Documents\Unre
al Projects\CompendiumFixMaybe\Intermediate\Build\Manifest.xml” -NoHotReload -log=“C:\Users\willt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-CompendiumFixMaybe-Win64-DebugGame.txt”
UATHelper: Packaging (Windows): Log file: C:\Users\willt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-CompendiumFixMaybe-Win64-DebugGame.txt
UATHelper: Packaging (Windows): Expecting to find a type to be declared in a module rules named ‘KawaiiPhysics’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.
UATHelper: Packaging (Windows): Took 0.6015900000000001s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\willt\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.1\UBT-CompendiumFixMaybe-Win64-DebugGame.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 2s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

1 Like

Okay, so the build tool failed.

Under what circumstances did you receive this message in the output log?

I mean, did you isolate the problem assets/files?

Is this a package of the original project or only the problem asset(s)? I’m unclear.

Also:

Is there no more information in this log (or did another pop up)?

Furthermore, I STRONGLY suggest migrating this version into a fresh project and trying again.

This is my entire project migrated into a new project. And that was the whole log. It fails within seconds of starting.

You mentioned when I suggested migrating the first time:

What is it that has changed between now and then?

I honestly have no clue. I just tried it again since i was at the end of my rope and it magically got rid of the other errors this time.

!!!


You’re going to have to role up your sleeves and diagnose this:

  1. Can you package an empty project?

  2. If so, you really do need to go through the assets in your project, MIGRATE them in batches to a fresh, empty project, and keep packaging until you receive the error.

Alright well ill get back to you once i manage to find a culprit. Thanks for all the help so far.

1 Like

Ive narrowed it down to one of my plugins called KawaiiPhysics. Cant exactly disable or remove it since some assets rely on it.

UATHelper: Packaging (Windows): Expecting to find a type to be declared in a module rules named ‘KawaiiPhysics’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.

1 Like

Okay, you can try copying the plugins to the Engine\Plugins\Marketplace folder.

Unreal 5.x requires this, I think to discourage willy-nilly tinkering.

Im getting this now.

UATHelper: Packaging (Windows): Missing precompiled manifest for ‘KawaiiPhysics’, ‘C:\Program Files\Epic Games\UE_5.1\Engine\Plugins\Marketplace\KawaiiPhysics\Intermediate\Build\Win64\UnrealGame\Development\KawaiiPhysics\KawaiiPhysics.precompiled’. This module was most likely not flagged for being included in a precompiled build - set ‘PrecompileForTargets = PrecompileTargetsType.Any;’ in KawaiiPhysics.build.cs to override. If part of a plugin, also check if its ‘Type’ is correct.

Ill try to do what it says but i cant guarantee i wont majorly mess it up lol

Every solution ive found online has done nothing for me. Some people say to disable the plugin but i cant since im using it. Others are saying to just do what it says but i cant because the filepath its giving me doesnt exist and if i go into KawaiiPhysics.build.cs there just isnt a precompilefortargets thing.