Error while generating .exe using city sample

When I try to generate a .exe of my game, this error appears while cooking:

UATHelper: Empaquetado (Windows): LogCook: Display: Cooked packages 2066 Packages Remain 29396 Total 31462
UATHelper: Empaquetado (Windows): LogTexture: Display: Creación de texturas: /Game/CitySample/Prop/BLDG/Kit_LightSign/Texture/signBank/T_signBank_N.T_signBank_N (TFO_BC5, 2048X2048 X1X1X1) (Memoria requerida aproximada: 471.562488 MB), EncodeSpeed: Final
UATHelper: Empaquetado (Windows): LogTexture: Display: Creación de texturas: /Game/CitySample/Prop/BLDG/Kit_LightSign/Texture/signBank/T_signBank_CE.T_signBank_CE (TFO_AutoDXT, 2048X2048 X1X1X1) (Memoria requerida aproximada: 305.145823 MB), EncodeSpeed: Final
UATHelper: Empaquetado (Windows): LogTexture: Display: Creación de texturas: /Game/CitySample/Prop/BLDG/Kit_LightSign/Texture/signBank/T_signBank_AOMRD.T_signBank_AOMRD (TFO_BC7, 2048X2048 X1X1X1) (Memoria requerida aproximada: 288.062484 MB), EncodeSpeed: Final
UATHelper: Empaquetado (Windows): LogWindows: Error: begin: stack for UAT
UATHelper: Empaquetado (Windows): LogWindows: Error: === Critical error: ===
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
UATHelper: Empaquetado (Windows): LogWindows: Error:
UATHelper: Empaquetado (Windows): LogWindows: Error: Fatal error!
UATHelper: Empaquetado (Windows): LogWindows: Error:
UATHelper: Empaquetado (Windows): LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000008
UATHelper: Empaquetado (Windows): LogWindows: Error:
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x000001ec3194bf33 UnrealEditor-RigVM.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x000001ec3192f0fb UnrealEditor-RigVM.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x000001ec319533c8 UnrealEditor-RigVM.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x000001ec31953044 UnrealEditor-RigVM.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x000001ec2d845b98 UnrealEditor-RigVMDeveloper.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x000001ec2c875396 UnrealEditor-ControlRigDeveloper.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffc7d9323af UnrealEditor-CoreUObject.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffc7db08523 UnrealEditor-CoreUObject.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffc7daeea08 UnrealEditor-CoreUObject.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffc7db1c9a0 UnrealEditor-CoreUObject.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffc7db1accd UnrealEditor-CoreUObject.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffc7db1b2c0 UnrealEditor-CoreUObject.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffbfd90ff61 UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffbfd91020c UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffbfd923aef UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffbfd94f271 UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffbfd94e704 UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffbfd62dd50 UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffbfd5ef6fd UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffbfd60aeb0 UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ff782ab80dd UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ff782aae146 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ff782aae42a UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ff782ab18a4 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ff782ac70c4 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ff782ac96e6 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error: [Callstack] 0x00007ffcfc55e8d7 KERNEL32.DLL!UnknownFunction
UATHelper: Empaquetado (Windows): LogWindows: Error:
UATHelper: Empaquetado (Windows): LogWindows: Error: end: stack for UAT
PackagingResults: Error: Fatal error!
PackagingResults: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000008
PackagingResults: Error: [Callstack] 0x000001ec3194bf33 UnrealEditor-RigVM.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x000001ec3192f0fb UnrealEditor-RigVM.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x000001ec319533c8 UnrealEditor-RigVM.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x000001ec31953044 UnrealEditor-RigVM.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x000001ec2d845b98 UnrealEditor-RigVMDeveloper.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x000001ec2c875396 UnrealEditor-ControlRigDeveloper.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc7d9323af UnrealEditor-CoreUObject.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc7db08523 UnrealEditor-CoreUObject.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc7daeea08 UnrealEditor-CoreUObject.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc7db1c9a0 UnrealEditor-CoreUObject.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc7db1accd UnrealEditor-CoreUObject.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc7db1b2c0 UnrealEditor-CoreUObject.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbfd90ff61 UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbfd91020c UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbfd923aef UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbfd94f271 UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbfd94e704 UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbfd62dd50 UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbfd5ef6fd UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbfd60aeb0 UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff782ab80dd UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff782aae146 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff782aae42a UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff782ab18a4 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff782ac70c4 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff782ac96e6 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffcfc55e8d7 KERNEL32.DLL!UnknownFunction
PackagingResults: Error: end: stack for UAT
UATHelper: Empaquetado (Windows): Took 51,28s to run UnrealEditor-Cmd.exe, ExitCode=3
UATHelper: Empaquetado (Windows): Cook failed.
UATHelper: Empaquetado (Windows): (see C:\Users\thory\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\Log.txt for full exception trace)
UATHelper: Empaquetado (Windows): AutomationTool executed for 0h 0m 54s
UATHelper: Empaquetado (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Empaquetado (Windows): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure

I don’t know what is making it and i need urgent help

Hello there @AnaGarcia!

Checking through your extended log, the main error refers to a conflict with the RigVM and ControlRig systems present in City Sample:

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000008 in UnrealEditor-RigVM.dll

Both elements are used in the map, which is already on itself, a heavy resource asset. The best approach to succesfully pack your build would be to either disable the plugins, or removing conflicting elements present in the map.

First of all, please go to Edit > Plugins, search for ControlRigDeveloper and RigVMDeveloper, disable them, and restart UE. Next, isolate the map section or level you are cooking, and temporary remove any skeletal meshes or control rig from the scene (replace them with placeholders if possible).

Another thing to implement, would be to clear your project’s cache, via deleting Binaries, Intermediate, and Saved folders from your project directory. After that, regenerate your project files from VS, and try packaging again.

After doing that, and managing to be cooking for almost all the time and not exploding while cooking, this happened:

UATHelper: Empaquetado (Windows): LogInit: Display: NOTE: Only first 50 warnings displayed.
UATHelper: Empaquetado (Windows): LogInit: Display:
UATHelper: Empaquetado (Windows): LogInit: Display: Failure - 420 error(s), 14247 warning(s)
UATHelper: Empaquetado (Windows): LogInit: Display:
UATHelper: Empaquetado (Windows): Execution of commandlet took: 43m 3s (2583.27 seconds)
UATHelper: Empaquetado (Windows): LogStudioTelemetry: Display: Shutdown StudioTelemetry Module
UATHelper: Empaquetado (Windows): Took 2.594,86s to run UnrealEditor-Cmd.exe, ExitCode=1
UATHelper: Empaquetado (Windows): Cook failed.
UATHelper: Empaquetado (Windows): (see C:\Users\thory\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\Log.txt for full exception trace)
UATHelper: Empaquetado (Windows): AutomationTool executed for 0h 43m 51s
UATHelper: Empaquetado (Windows): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Empaquetado (Windows): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure

Hello again!

Awesome, progress has been made! This confirms that the original problem with RigVM.dll was fixed, and now there’s a new issue. The key lines from your log are as follows:

Failure - 420 error(s), 14247 warning(s)
ExitCode=25 (Error_UnknownCookFailure)

This means that the engine was able to cook almost everything, but failed at the end due the ammount of warnings and errors received. These are most likely the silent type, stuff that won’t outright destroy a project, but with such a number of them, it was not possible to complete the process.

Now, the log directs you to review a detailed extract that can be found at:

C:\Users\thory\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\Log.txt

So, the next step here is to open this log, and look for the warnings. You are looking for anything that refers to LogCook, Missing asset, Failed to compile/cook, etc.. Then, try to fix as many as you can. Most of them should be tied to problematic assets from City sample, which can be re-imported, re-compiled, replaced, or deleted. Check for blueprint issues as well, any missing classes or references.

Still, this could be a tremendous task, as City Sample is massive to work with. I would suggest reducing the content scope to help with the issue, for example:

  • Delete any map levels not in use for your build

  • Remove the vehicle systems, if you are not using them

  • Same with the MetaHuman characters in scene

  • Also, get rid of any materials and textures not in use

  • And as stated in my previous post, if possible, isolate your cook only to the level you are working with

If the issue persists, there could be an alternative approach. Instead of using the entirety of the Sample, create a new project, and migrate only the specific elements you need from City. This could avoid a great number of errors, if properly setup. Hope this helps!