How do you determine file order for content cooking?

Hey everyone,

I’m getting ready to publish a game on Steam, but I am getting a Critical Error after a package is being cooked.

The error is thrown after the same line every time so I was wondering if there was a way to determine which package was the culprit.

This is the last snippet I get before the cooking process fails.

UATHelper: Cooking (Windows):   LogCook: Display: Cooked packages 1400 Packages Remain 9403 Total 10803
UATHelper: Cooking (Windows):   LogWindows: Error: begin: stack for UAT
UATHelper: Cooking (Windows):   LogWindows: Error: === Critical error: ===
UATHelper: Cooking (Windows):   LogWindows: Error:
UATHelper: Cooking (Windows):   LogWindows: Error: Fatal error!
UATHelper: Cooking (Windows):   LogWindows: Error:
UATHelper: Cooking (Windows):   LogWindows: Error:
UATHelper: Cooking (Windows):   LogWindows: Error: end: stack for UAT
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Fatal error!

It fails at the same package (1400) every time and I just added a some new textures and meshes so I know for a fact one of them is the reason for the issue, but I’d rather delete one file than rip every thing out and start over.

I looked at the file open order in my Build/WindowsNoEditor directory, but I was directed to a DDC Texture. I don’t know of a way to figure out which one it is in the editor so I deleted it figuring it would be regenerated anyway, but it didn’t fix the issue.

Here is the file I deleted:

../UnrealEngine/Common/DerivedDataCache/4/6/7/MATSM_F1CC9C7A48F5422EB67E3ADC82465189_PCD3D_SM4_7__BC5N_NOCCBN_NOIRIS_DEV_SL___029DBB294C946465B7FAC2F7E21F9E3411CDCC35.udd" 15832

I wasn’t sure if the file open order considered all packages or if it was generated on the fly.

My initial assumption was that this list was generated on the fly, but I just didn’t consider the numbers at the end of each line so I’m guessing the DDC file I deleted was for package number 15832 instead of package number 1400.

I checked to see which packages were being processed at lines 1400 and 1401, but I found engine assets that I haven’t modified at all.

"../../../Engine/Shaders/Private/PaniniProjection.ush" 1400
"../../../Engine/Shaders/Private/PostProcessCommon.ush" 1401

So now I’m not sure if it’s a bug or if I changed something without knowing it.

I’ve also tried cleaning the project (deleting Intermediate/Saved/Binaries/.vs/.sln/Build), but that didn’t resolve the issue.

Any help is really appreciated. If I figure it out, I’ll post my results just in case anyone runs into a similar issue.

Thank you!

I was wondering if anyone could explain what this line means.

ProcessResult.StdOut:   LogCook: Display: Unable to read previous cook inisettings for platform WindowsNoEditor invalidating cook

Is this a potential cause for my issue?

I still have no idea what the issue is. I ripped out all of the assets I just imported and nothing changed so I’m starting to think that this is a bug.