Cooking-Failed in LyraStarterGame

I’m experiencing a failed cook when trying to package a project based off of Lyra.

The Output Log gives me this:

UATHelper: Cooking (Windows): LogOutputDevice: Error: begin: stack for UAT
UATHelper: Cooking (Windows): LogOutputDevice: Error: === Handled ensure: ===
UATHelper: Cooking (Windows): LogOutputDevice: Error:
UATHelper: Cooking (Windows): LogOutputDevice: Error: Ensure condition failed: TypeData.Info.AssetBaseClassLoaded == BaseClass && TypeData.Info.bHasBlueprintClasses == bHasBlueprintClasses && TypeData.Info.bIsEditorOnly == bIsEditorOnly [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\AssetManager.cpp] [Line: 810]
UATHelper: Cooking (Windows): LogOutputDevice: Error: UAssetManager::ScanPathsForPrimaryAssets TypeData parameters did not match for type ‘LyraExperienceDefinition’
UATHelper: Cooking (Windows): LogOutputDevice: Error: Stack:
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1ca103fb UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf66f5b3e UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf671c269 UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf671d0b3 UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf6716a96 UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf66f8fa6 UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf6709b0b UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf670a07b UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf6704b31 UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf05de15c UnrealEditor-LyraGame.dll!ULyraGameFeaturePolicy::InitGameFeatureManager() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\GameFeatures\LyraGameFeaturePolicy.cpp:40]
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf670b505 UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf66fda62 UnrealEditor-GameFeatures.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1c3c4b59 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1ca1776a UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffbf06aef41 UnrealEditor-LyraGame.dll!ULyraAssetManager::StartInitialLoading() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\System\LyraAssetManager.cpp:111]
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1e1a142d UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1a8361de UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1e196510 UnrealEditor-Engine.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffc1a83323a UnrealEditor-UnrealEd.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d25a9ea UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d252688 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Handled ensure: ===
PackagingResults: Error: Ensure condition failed: TypeData.Info.AssetBaseClassLoaded == BaseClass && TypeData.Info.bHasBlueprintClasses == bHasBlueprintClasses && TypeData.Info.bIsEditorOnly == bIsEditorOnly [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\AssetManager.cpp] [Line: 810]
PackagingResults: Error: UAssetManager::ScanPathsForPrimaryAssets TypeData parameters did not match for type ‘LyraExperienceDefinition’
PackagingResults: Error: Stack:
PackagingResults: Error: [Callstack] 0x00007ffc1ca103fb UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf66f5b3e UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf671c269 UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf671d0b3 UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf6716a96 UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf66f8fa6 UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf6709b0b UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf670a07b UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf6704b31 UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf05de15c UnrealEditor-LyraGame.dll!ULyraGameFeaturePolicy::InitGameFeatureManager() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\GameFeatures\LyraGameFeaturePolicy.cpp:40]
PackagingResults: Error: [Callstack] 0x00007ffbf670b505 UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf66fda62 UnrealEditor-GameFeatures.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc1c3c4b59 UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc1ca1776a UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffbf06aef41 UnrealEditor-LyraGame.dll!ULyraAssetManager::StartInitialLoading() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\System\LyraAssetManager.cpp:111]
PackagingResults: Error: [Callstack] 0x00007ffc1e1a142d UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc1a8361de UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc1e196510 UnrealEditor-Engine.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffc1a83323a UnrealEditor-UnrealEd.dll!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff73d25a9ea UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff73d252688 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d25296a UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d255680 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d2671b4 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ff73d2696f2 UnrealEditor-Cmd.exe!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffcc24226ad KERNEL32.DLL!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error: [Callstack] 0x00007ffcc37ea9f8 ntdll.dll!UnknownFunction
UATHelper: Cooking (Windows): LogOutputDevice: Error:
UATHelper: Cooking (Windows): LogOutputDevice: Error: end: stack for UAT
PackagingResults: Error: [Callstack] 0x00007ff73d25296a UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff73d255680 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff73d2671b4 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ff73d2696f2 UnrealEditor-Cmd.exe!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffcc24226ad KERNEL32.DLL!UnknownFunction
PackagingResults: Error: [Callstack] 0x00007ffcc37ea9f8 ntdll.dll!UnknownFunction
PackagingResults: Error: end: stack for UAT

The cook log only gives me this.

LogInit: Display: Warning/Error Summary (Unique only)
LogInit: Display: -----------------------------------
LogInit: Display: LogOutputDevice: Error: begin: stack for UAT
LogInit: Display: LogOutputDevice: Error: === Handled ensure: ===
LogInit: Display: LogOutputDevice: Error:
LogInit: Display: LogOutputDevice: Error: Ensure condition failed: TypeData.Info.AssetBaseClassLoaded == BaseClass && TypeData.Info.bHasBlueprintClasses == bHasBlueprintClasses && TypeData.Info.bIsEditorOnly == bIsEditorOnly [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\AssetManager.cpp] [Line: 810]
LogInit: Display: LogOutputDevice: Error: UAssetManager::ScanPathsForPrimaryAssets TypeData parameters did not match for type ‘LyraExperienceDefinition’
LogInit: Display: LogOutputDevice: Error: Stack:
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc210703fb UnrealEditor-Engine.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05625b3e UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0564c269 UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0564d0b3 UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05646a96 UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05628fa6 UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05639b0b UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0563a07b UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc05634b31 UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffbffaee15c UnrealEditor-LyraGame.dll!ULyraGameFeaturePolicy::InitGameFeatureManager() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\GameFeatures\LyraGameFeaturePolicy.cpp:40]
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0563b505 UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc0562da62 UnrealEditor-GameFeatures.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc20a24b59 UnrealEditor-Engine.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc2107776a UnrealEditor-Engine.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffbffbbef41 UnrealEditor-LyraGame.dll!ULyraAssetManager::StartInitialLoading() [C:\UnrealProjects\Test\SkyShooter\LyraStarterGame\Source\LyraGame\System\LyraAssetManager.cpp:111]
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc2280142d UnrealEditor-Engine.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc604861de UnrealEditor-UnrealEd.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc227f6510 UnrealEditor-Engine.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffc6048323a UnrealEditor-UnrealEd.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d25a9ea UnrealEditor-Cmd.exe!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d252688 UnrealEditor-Cmd.exe!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d25296a UnrealEditor-Cmd.exe!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d255680 UnrealEditor-Cmd.exe!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d2671b4 UnrealEditor-Cmd.exe!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ff73d2696f2 UnrealEditor-Cmd.exe!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffcc24226ad KERNEL32.DLL!UnknownFunction
LogInit: Display: LogOutputDevice: Error: [Callstack] 0x00007ffcc37ea9f8 ntdll.dll!UnknownFunction
LogInit: Display: LogOutputDevice: Error: end: stack for UAT
LogInit: Display: LogOutputDevice: Warning:

When I run a debug, Rider will stop on LyraGameFeaturePolicy.cpp at line 40 “Super::InitGameFeatureManager();” when it is opening the editor. I just have to resume the debug and everything will work like normal until I get to cooking. That pause gives me this:

Any ideas? Thanks!

Hi there,
Have you checked your asset manager before? Looks like the asset manager is missing the correct information about your custom Experience Definition, either the Primary Asst Type is incorrect, or the directory is not declared. Here’s Lyra’s Shooter Core:

1 Like

This was it, there were a few more issues preventing the cook but I was able to hammer them out. Thanks for the lead!

1 Like