Package error

I get this error in package log (unreal engine 4.27):
UATHelper: Packaging (Windows (64-bit)): LogFileManager: Error: Error writing to file: C:/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/Cooked/WindowsNoEditor/GAdventure/Content/MetaHumans/Emanuel/MaleHair/Hair/Hair_S_AfroFade.uexp (Spazio su disco insufficiente.)
PackagingResults: Error: Error writing to file: C:/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/Cooked/WindowsNoEditor/GAdventure/Content/MetaHumans/Emanuel/MaleHair/Hair/Hair_S_AfroFade.uexp (Spazio su disco insufficiente.)
UATHelper: Packaging (Windows (64-bit)): LogThreadingWindows: Error: Runnable thread TaskGraphThreadNP 0 crashed.
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: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/CoreUObject/Private/UObject/SavePackage/SavePackageUtilities.cpp] [Line: 527]
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Could not save to C:/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/Cooked/WindowsNoEditor/GAdventure/Content/MetaHumans/Emanuel/MaleHair/Hair/Hair_S_AfroFade.uexp!
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdfe1606bc KERNELBASE.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3d80216 UE4Editor-Core.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3d84218 UE4Editor-Core.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3aa242d UE4Editor-Core.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb33cb517 UE4Editor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3379da2 UE4Editor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb337a7af UE4Editor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb33843a7 UE4Editor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb337100b UE4Editor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb338c345 UE4Editor-CoreUObject.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3801507 UE4Editor-Core.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3802860 UE4Editor-Core.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3809aa5 UE4Editor-Core.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3d9ff0b UE4Editor-Core.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffdb3d97050 UE4Editor-Core.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe004026bd KERNEL32.DLL!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: [Callstack] 0x00007ffe00a8dfb8 ntdll.dll!UnknownFunction []
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error:
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Crash in runnable thread TaskGraphThreadNP 0
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: end: stack for UAT
PackagingResults: Error: Runnable thread TaskGraphThreadNP 0 crashed.
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/CoreUObject/Private/UObject/SavePackage/SavePackageUtilities.cpp] [Line: 527]
PackagingResults: Error: Could not save to C:/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/Cooked/WindowsNoEditor/GAdventure/Content/MetaHumans/Emanuel/MaleHair/Hair/Hair_S_AfroFade.uexp!
PackagingResults: Error: [Callstack] 0x00007ffdfe1606bc KERNELBASE.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3d80216 UE4Editor-Core.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3d84218 UE4Editor-Core.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3aa242d UE4Editor-Core.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb33cb517 UE4Editor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3379da2 UE4Editor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb337a7af UE4Editor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb33843a7 UE4Editor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb337100b UE4Editor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb338c345 UE4Editor-CoreUObject.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3801507 UE4Editor-Core.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3802860 UE4Editor-Core.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3809aa5 UE4Editor-Core.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3d9ff0b UE4Editor-Core.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffdb3d97050 UE4Editor-Core.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe004026bd KERNEL32.DLL!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe00a8dfb8 ntdll.dll!UnknownFunction []
PackagingResults: Error: Crash in runnable thread TaskGraphThreadNP 0
PackagingResults: Error: end: stack for UAT
UATHelper: Packaging (Windows (64-bit)): LogFileManager: Error: Error writing to file: C:/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/Cooked/WindowsNoEditor/GAdventure/Content/MetaHumans/Emanuel/MaleHair/Hair/Beard_S_Stubble.uexp (Spazio su disco insufficiente.)
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: Error reentered: Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/CoreUObject/Private/UObject/SavePackage/SavePackageUtilities.cpp] [Line: 527]
UATHelper: Packaging (Windows (64-bit)): Could not save to C:/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/Cooked/WindowsNoEditor/GAdventure/Content/MetaHumans/Emanuel/MaleHair/Hair/Beard_S_Stubble.uexp!
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)): LogWindows: Error: HandleError re-entered.
PackagingResults: Error: Error writing to file: C:/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/Cooked/WindowsNoEditor/GAdventure/Content/MetaHumans/Emanuel/MaleHair/Hair/Beard_S_Stubble.uexp (Spazio su disco insufficiente.)
PackagingResults: Error: Error reentered: Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/CoreUObject/Private/UObject/SavePackage/SavePackageUtilities.cpp] [Line: 527]
PackagingResults: Error: HandleError re-entered.
UATHelper: Packaging (Windows (64-bit)): Took 98,34527s to run UE4Editor-Cmd.exe, ExitCode=3
UATHelper: Packaging (Windows (64-bit)): ERROR: Cook failed.
UATHelper: Packaging (Windows (64-bit)): (see C:\Users\Lenovo\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.27\Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Cook failed.
PackagingResults: Error: Unknown Cook Failure
LogSlate: Window ‘Output Log’ being destroyed
LogSlate: Window ‘Output Log’ being destroyed
LogAssetEditorSubsystem: Opening Asset editor for WidgetBlueprint /Game/MAIN/HUD/Menù.Menù
Cmd: OBJ SAVEPACKAGE PACKAGE=“/Game/MAIN/HUD/Menù” FILE=“…/…/…/…/…/…/Users/Lenovo/Documents/Unreal Projects/GAdventure/Content/MAIN/HUD/Menù.uasset” SILENT=true
LogSavePackage: Moving ‘…/…/…/…/…/…/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/MenùF788A3034E8005C65799D2A0F2D34067.tmp’ to ‘…/…/…/…/…/…/Users/Lenovo/Documents/Unreal Projects/GAdventure/Content/MAIN/HUD/Menù.uasset’
AssetCheck: New page: Asset Save: Menù
LogContentValidation: Display: Validating WidgetBlueprint /Game/MAIN/HUD/Menù.Menù
LogWorld: UWorld::CleanupWorld for World_11, bSessionEnded=true, bCleanupResources=true
LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated
LogWorld: UWorld::CleanupWorld for World_10, bSessionEnded=true, bCleanupResources=true
LogSlate: InvalidateAllWidgets triggered. All widgets were invalidated

How I can solve it?

Hi GFrawing,

What stands out to me is “Spazio su disco insufficiente”

This makes me wonder if you have sufficient space on your disc to package.

If you free up some space do you still see this error? (https://windirstat.net/ is my favorite tool for finding what’s taking up space on my discs)

As @Astrotronic suggests, the error message you provided suggests that there is not enough disk space available on your computer to save the package. It is trying to save a file named “Hair_S_AfroFade.uexp” in the “C:/Users/Lenovo/Documents/Unreal Projects/GAdventure/Saved/Cooked/WindowsNoEditor/GAdventure/Content/MetaHumans/Emanuel/MaleHair/Hair” directory, but it is unable to do so because there is not enough space on the disk.

You can try freeing up some space on your hard drive by deleting unnecessary files or moving them to an external drive. Also, try to lower the size of your textures and models, and use the compression settings for your textures.
Also, you can try reducing the amount of data that your game is trying to save, by removing unnecessary assets and reducing the size of your levels or maps.

It’s also a good practice to periodically clean up your project files and remove any unnecessary files or assets that you’re no longer using. Keep in mind that Unreal Engine saves a lot of files when you cook your project, so you might have to free up some space on your hard drive to avoid this error in the future.

Thanks a lot, I didn’t notice that

Now, however, once the package is done, I enter the game and the only textures present are those of the PG

You’re welcome,

What is ‘the PG’?

Maybe there was some corrupted info from your failed builds. If you delete the “Saved” and “Intermediate” folder from your project, this should clear things that got cached in the build. (You might just want to move intermediate/saved folders the first time instead of deleting just to be sure removing them does not break anything)