# Packaging Failed! UE5.1

**URL:** <https://forums.unrealengine.com/t/packaging-failed-ue5-1/1239561>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, UE5, bug-report, question, Blueprint\
**Created:** [July 25, 2023, 11:54am UTC](https://forums.unrealengine.com/t/packaging-failed-ue5-1/1239561 "2023-07-25T11:54:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![imch123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imch123](https://forums.unrealengine.com/u/imch123)\
**Post date:** [July 25, 2023, 11:54am UTC](https://forums.unrealengine.com/t/packaging-failed-ue5-1/1239561/1 "2023-07-25T11:54:19Z")

</div>

I have been trying to package my game but i am getting error message all the time. I have tried to reinstall the UE5 but i get same issue with packaging my game . Can someone please help me to fix this problem ?  
I am using PC windows 11. RTX 3090. 64 GB ram.

Registering build platform: UnrealBuildTool.AndroidPlatformFactory  
Note: Android toolchain NDK r25b recommended  
Registering build platform: Android - buildable: False  
Registering build platform: UnrealBuildTool.IOSPlatformFactory  
Registering build platform: IOS - buildable: False  
Registering build platform: UnrealBuildTool.LinuxPlatformFactory  
Registering build platform: Linux - buildable: False  
Registering build platform: LinuxArm64 - buildable: False  
Registering build platform: UnrealBuildTool.MacPlatformFactory  
Registering build platform: UnrealBuildTool.TVOSPlatformFactory  
Registering build platform: UnrealBuildTool.WindowsPlatformFactory  
Registering build platform: Win64 - buildable: False  
Registering build platform: UnrealBuildTool.HoloLensPlatformFactory  
Cleaning ue5\_1 binaries…  
Creating project rules assembly for D:\ue5\_1\ue5\_1.uproject…  
Skipping D:\UE\_5.1\Engine\Intermediate\Build\BuildRules\UE5Rules.dll: File is installed  
Skipping D:\UE\_5.1\Engine\Intermediate\Build\BuildRules\UE5ProgramRules.dll: File is installed  
Found 0 Plugins:  
Found 0 Modules:  
Compiling D:\ue5\_1\Intermediate\Build\BuildRules\ue5\_1ModuleRules.dll: UnrealBuildTool.dll is newer  
Found Visual Studio installation: D:\install visual studio (Product=Microsoft.VisualStudio.Product.Community, Version=17.6.33829.357)  
Visual Studio 2022 is installed, but is missing the C++ toolchain. Please verify that the “MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)” component is selected in the Visual Studio 2022 installation options.  
Find paths to clean took 1.956103s  
CleanMode.Clean() took 1.9569202s  
Visual Studio 2019 x64 must be installed in order to build this target.  
BuildException: Visual Studio 2019 x64 must be installed in order to build this target.  
at UnrealBuildTool.VCEnvironmentParameters…ctor(WindowsCompiler Compiler, WindowsCompiler ToolChain, UnrealTargetPlatform Platform, WindowsArchitecture Architecture, String CompilerVersion, String WindowsSdkVersion, String SuppliedSdkDirectoryForVersion, Boolean bUseCPPWinRT, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCEnvironment.cs:line 467  
at UnrealBuildTool.VCEnvironment.Create(WindowsCompiler Compiler, WindowsCompiler ToolChain, UnrealTargetPlatform Platform, WindowsArchitecture Architecture, String CompilerVersion, String WindowsSdkVersion, String SuppliedSdkDirectoryForVersion, Boolean bUseCPPWinRT, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCEnvironment.cs:line 389  
at UnrealBuildTool.WindowsPlatform.CreateVCEnvironment(TargetRules Target) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 878  
at UnrealBuildTool.WindowsPlatform.ValidateTarget(TargetRules Target) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 956  
at UnrealBuildTool.RulesAssembly.CreateTargetRulesInstance(String TypeName, TargetInfo TargetInfo, ILogger Logger, Boolean IsTestTarget) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 663  
at UnrealBuildTool.RulesAssembly.CreateTargetRules(String TargetName, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, String Architecture, FileReference ProjectFile, CommandLineArguments Arguments, ILogger Logger, Boolean IsTestTarget) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 734  
at UnrealBuildTool.CleanMode.Clean(List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\CleanMode.cs:line 130  
at UnrealBuildTool.CleanMode.Execute(CommandLineArguments Arguments, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\CleanMode.cs:line 55  
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 648  
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.  
Timeline:

[0.000]  
[0.000](https://github.com/getnamo/MachineLearningRemote-Unreal/issues/+2.344)  
[2.344]

---

<div class="post-metadata">

**Author:** ![catz111](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/catz111/32/618520_2.png) [@catz111](https://forums.unrealengine.com/u/catz111)\
**Post date:** [July 25, 2023, 12:02pm UTC](https://forums.unrealengine.com/t/packaging-failed-ue5-1/1239561/2 "2023-07-25T12:02:46Z")

</div>

I have the same problem ☹ but there are awso “errors” shown on the log in red if you examine it… I think that must be the problem and those errors need to be fixed first befor packaging.

On your side the problem may be different. I heard you need the Visual studio installed to work and you have some error there:

Visual Studio 2022 is installed, but is missing the C++ toolchain. Please verify that the “MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)” component is selected in the Visual Studio 2022 installation options.

Maybe you have to fix this one as well…

and here again -

> [@imch123](#):
>
> Visual Studio 2019 x64 must be installed in order to build this target.

---

<div class="post-metadata">

**Author:** ![imch123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imch123](https://forums.unrealengine.com/u/imch123)\
**Post date:** [July 25, 2023, 9:37pm UTC](https://forums.unrealengine.com/t/packaging-failed-ue5-1/1239561/3 "2023-07-25T21:37:09Z")

</div>

Thank you catz111. it worked. i have installed missing C++toolchain and was able to package the game but now i got another issuse. When i try to open the game it crashes before launching with this error "Assertion failed: Texture-\>LevelIndex != INDEX\_NONE [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Streaming\TextureStreamingBuild.cpp] [Line: 662]

Any idea to fix this problem ? someone mentioned in forum to switch directX 12. but i have already Directx 12 on my pc. Help will be much appricated.

---

<div class="post-metadata">

**Author:** ![catz111](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/catz111/32/618520_2.png) [@catz111](https://forums.unrealengine.com/u/catz111)\
**Post date:** [July 25, 2023, 11:17pm UTC](https://forums.unrealengine.com/t/packaging-failed-ue5-1/1239561/4 "2023-07-25T23:17:15Z")

</div>

No idea but you can try search for this error looks like others have it as well…

Here some basic info what this “Assertion failed” is. Just search deeper how people fix it and try your luck…

> **[Assertion Failed Dialog Box - Visual Studio (Windows)](https://learn.microsoft.com/en-us/visualstudio/debugger/assertion-failed-dialog-box?view=vs-2022)**
>
> Learn about the Assertion Failed dialog box, which is a dialog box that you might encounter in the debugging user interface of Visual Studio.

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [July 26, 2023, 10:30am UTC](https://forums.unrealengine.com/t/packaging-failed-ue5-1/1239561/5 "2023-07-26T10:30:09Z")

</div>

Hello there @imch123

I’m a bit late to the error party. But, to add to what catz mentioned, I would check out this [post](https://forums.unrealengine.com/t/ue5-dedicated-server-error-assertion-failed-index-index-none/516571) as well. I hope that this is helpful. If not, post back here and we can look into other options.

---

<div class="post-metadata">

**Author:** ![imch123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imch123](https://forums.unrealengine.com/u/imch123)\
**Post date:** [August 8, 2023, 2:01am UTC](https://forums.unrealengine.com/t/packaging-failed-ue5-1/1239561/6 "2023-08-08T02:01:46Z")

</div>

Thank you all for your suggestions. Problem solved . i had to changed Streaming Pool Size. then i packaged succesfully.
