Hi I am trying to cook my project as a windows .exe file to be able to share my project with a friend, but whenever I try to cook/ship it It seems to always fail and gives me a unknown cook fail with exit code 25. I added my full Log and cook .txt files, I am using unreal engine ver 5.5.4, and any help is greatly appreciated.
Log txt file:
Cook txt file:
Hello there @Mythical_Pixel!
Investigating through your extended logs, specially the cook file, the main error is the following:
LogWindows: Error: begin: stack for UAT
LogWindows: Error: === Critical error: ===
...
[File:Z:\UE_5.5\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectGlobals.cpp] [Line: 2687]
NewObject called with a nullptr class object
Checking with my peers, this means that UE is trying to create an element, but the invoked class is null, most locally due a broken blueprint, a missing asset/reference, or a plugin conflict.
In order to resolve this issue, we can try the following steps:
-
First, validate all your assets from content browser, right-click your main folder, and select “Validate Assets in Folder”. Look for any red error entries, related to either Blueprints or Data Assets.
-
Also, from the same folder, apply “Fix up redirectors in folder”, and check for any deleted assets that could still be referenced.
-
Next, check your game classes, via going to Project Settings > Maps & Modes, and confirming that the folloing fields have valid classes:
- GameMode
- Default Pawn Class
- HUD Class
- Player Controller Class
- Game Instance Class
-
If any is set to a deleted or broken class, set it to a valid one or None.
-
For possible plugin conflicts, your log includes calls to Cesium. Even though it’s a warning, if the plugin is partially enabled or misconfigured, it can cause crashes. As long as it’s not vital to your build, you should be able to disable it from the Plugins menu.
-
Finally, make sure your shader cache is clear for the next cook, via deleting the DerivedDataCache
folder from your project directory.
Hey there brs-sebascova thanks so much for your help and advice sadly I tried all of these and nothing seems to help, I still crash when trying to cook. The Cesium plug in is also sadly vital to my build, is there any other things I can check or any advice where I should look next for a possible solution?