Windows project packege error

Hi! I have a problem in packeging my project. Here is the error:
UATHelper: Packaging (Windows): ERROR: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
UATHelper: Packaging (Windows): at System.IO.BinaryReader.InternalRead(Int32 numBytes)
UATHelper: Packaging (Windows): at GroupIconResource.FromIco(String FileName) in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\Win\WinResources.cs:line 57
UATHelper: Packaging (Windows): at Win64Platform.StageBootstrapExecutable(DeploymentContext SC, String ExeName, FileReference TargetFile, StagedFileReference StagedRelativeTargetPath, String StagedArguments) in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 351
UATHelper: Packaging (Windows): at Win64Platform.GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC) in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 303
UATHelper: Packaging (Windows): at AutomationScripts.Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC) in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 833
UATHelper: Packaging (Windows): at AutomationScripts.Project.CopyBuildToStagingDirectory(ProjectParams Params) in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 4577
UATHelper: Packaging (Windows): at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 207
UATHelper: Packaging (Windows): at BuildCookRun.ExecuteBuild() in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41
UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.Execute() in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 344
UATHelper: Packaging (Windows): at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 254
UATHelper: Packaging (Windows): at AutomationTool.Automation.Process(ParsedCommandLine AutomationToolCommandLine, StartupTraceListener StartupListener, HashSet1 ScriptModuleAssemblies) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 153 UATHelper: Packaging (Windows): (see C:\Users\kolga\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE+UE_5.0\Log.txt for full exception trace) PackagingResults: Error: System.IO.EndOfStreamException: Unable to read beyond the end of the stream. UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 46s UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown) UATHelper: Packaging (Windows): BUILD FAILED UATHelper: Packaging (Windows): ERROR: System.IO.EndOfStreamException: Unable to read beyond the end of the stream. UATHelper: Packaging (Windows): at System.IO.BinaryReader.InternalRead(Int32 numBytes) UATHelper: Packaging (Windows): at GroupIconResource.FromIco(String FileName) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Win\WinResources.cs:line 57 UATHelper: Packaging (Windows): at Win64Platform.StageBootstrapExecutable(DeploymentContext SC, String ExeName, FileReference TargetFile, StagedFileReference StagedRelativeTargetPath, String StagedArguments) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 351 UATHelper: Packaging (Windows): at Win64Platform.GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Win\WinPlatform.Automation.cs:line 303 UATHelper: Packaging (Windows): at AutomationScripts.Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 833 UATHelper: Packaging (Windows): at AutomationScripts.Project.CopyBuildToStagingDirectory(ProjectParams Params) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\CopyBuildToStagingDirectory.Automation.cs:line 4577 UATHelper: Packaging (Windows): at BuildCookRun.DoBuildCookRun(ProjectParams Params) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 207 UATHelper: Packaging (Windows): at BuildCookRun.ExecuteBuild() in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 41 UATHelper: Packaging (Windows): at AutomationTool.BuildCommand.Execute() in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 344 UATHelper: Packaging (Windows): at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\build\++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 254 UATHelper: Packaging (Windows): at AutomationTool.Automation.Process(ParsedCommandLine AutomationToolCommandLine, StartupTraceListener StartupListener, HashSet1 ScriptModuleAssemblies) in D:\build++UE5\Sync\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 153
UATHelper: Packaging (Windows): (see C:\Users\kolga\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE+UE_5.0\Log.txt for full exception trace)
PackagingResults: Error: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 46s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

Hey, try this:

  • Double-check that all the file paths in your project are correct and that all the files exist where they are supposed to be. Sometimes this error can be caused by a missing or corrupt file.
  • Cleaning your project can sometimes fix errors like this. In Unreal Editor, go to File → Refresh Visual Studio Project. Then, close Unreal Editor and Visual Studio, and delete the intermediate and Saved folders in your project directory. After that, open your project and try packaging again.
  • If the problem persists, it might be worth trying to package your project using a different version of Unreal Engine. Sometimes, issues like this are caused by a bug in a specific version of the engine.
  • The log file mentioned in the error message (C:\Users\kolga\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE+UE_5.0\Log.txt) might contain more information about what went wrong during the packaging process. Open the log file and look for any error messages or stack traces that might give you a clue about what’s causing the issue.
1 Like