BuildGame时报错Failed to load premade asset registry

LogAssetRegistry: Error: Failed to load premade asset registry. LoadResult == 1.

通过horde进行Build Game的时候出现这个报错,但是最后结果显示的是​BUILD SUCCESSFUL。incremental。

这个错误最近是偶现的,之前通过重置HordeAgent的workspace解决过。但是由于Build时间太长,我们进行Game打包的Agent的workspace是incremental,所以不会自动重置,想通过尽量复用产物来加速。

不过Job还是因为这个Error被标记为失败了

想问一下这个报错是怎么产生?为什么会有这个错误?这个错误到底是否真的影响Build的结果?如何解决这个错误?​

[Attachment Removed]

重现步骤[Attachment Removed]

您好, LoadResult == 1 = ELoadResult::NotFound 看代码 AssetRegistry.cpp

UE_CLOG(FPlatformProperties::RequiresCookedData() && (IsRunningGame() || IsRunningDedicatedServer()),

LogAssetRegistry, Error, TEXT(“Failed to load premade asset registry. LoadResult == %d.”), static_cast<int32>(LoadResult));

这个错误是运行游戏时出现,不是cook的时候出现的,所以我对出现这个错误有点奇怪

是在UAT里面还启动了测试程序吗?

[Attachment Removed]

不好意思没有说清楚,我们使用了AS,是在生成jitted之后再次编译Game的时候出现的:Running: E:\HordeAgent\Sandbox\Project\Sync\Project\Binaries\Win64\Project-Win64-Test.exe -nullrhi -nosplash -as-generate-precompiled-data -as-exit-on-error -SkipZenStore -LogCmds=“global Error” -culture=en

在这个环节有概率出现LogAssetRegistry: Error: Failed to load premade asset registry. LoadResult == 1.

这个步骤是在cook之后,我们现在没有用Incremental cook

[Attachment Removed]

抱歉,这两周高强度出差刚回来

AssetRegistry.bin 是否在pak中呢? AssetRegistry.bin 缺失对于加载其实没有什么影响,uasset中都序列化了需要的资产,

但是对于一些需要使用Asset Manager查找的功能会出问题,或者 GetAssetsByClass / GetAssetsByPath / GetAssetsByTags 这类运行时查询返回空集

由于我没有使用过AS,在生成as的precompiled-data之后,游戏是否可以正常运行?以及log中是否还有出现这句log

我建议的排查方向是看 AssetRegistry.bin是否生成、然后是否被打包到pak中

[Attachment Removed]

好的 感谢,我们现临时将这个error改成了Display,这个阶段只是生成了as相关pre Compile的东西,实际测下来没有发现什么异常,不过暂时没有时间去深究具体的情况。目前我们掌握的所有情况大概是这些,谢谢

[Attachment Removed]