System_shy 2024-07-09 14:08 采纳率: 60%
浏览 35
已结题

UE5.3项目可以正常运行 但是打包失败

使用UE5.3打包程序时 报错无法打包,但是程序是可以正常运行的
以下是报错日志


        with
        [
            _T=FHazardPointerCollection::FHazardRecord
        ]
Total time in Parallel executor: 11.95 seconds
Total execution time: 13.26 seconds
CompilationResultException: Error: OtherCompilationError
   at UnrealBuildTool.ActionGraph.ExecuteActionsAsync(BuildConfiguration BuildConfiguration, List`1 ActionsToExecute, List`1 TargetDescriptors, ILogger Logger, IActionArtifactCache actionArtifactCache) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\ActionGraph.cs:line 417
   at UnrealBuildTool.BuildMode.BuildAsync(TargetMakefile[] Makefiles, List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 801
   at UnrealBuildTool.BuildMode.BuildAsync(List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger, Boolean bSkipPreBuildTargets) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 411
   at UnrealBuildTool.BuildMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\BuildMode.cs:line 252
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 659
WriteFileIfChanged() wrote 0 changed files of 91 requested writes.
Timeline:

[ 0.000]
[ 0.000](+13.272) <unknown>
[13.272]

以下是控制台报错:


```bash
UATHelper: 打包 (Windows):         with
UATHelper: 打包 (Windows):         [
UATHelper: 打包 (Windows):             _T=FHazardPointerCollection::FHazardRecord
UATHelper: 打包 (Windows):         ]
UATHelper: 打包 (Windows): Total time in Parallel executor: 11.95 seconds
UATHelper: 打包 (Windows): Total execution time: 13.26 seconds
UATHelper: 打包 (Windows): Took 13.34s to run dotnet.exe, ExitCode=6
UATHelper: 打包 (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\admin\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE_5.3\UBT-UEbdcytcf-Win64-Development.txt)
UATHelper: 打包 (Windows): AutomationTool executed for 0h 0m 15s
UATHelper: 打包 (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: 打包 (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

```

  • 写回答

3条回答 默认 最新

  • System_shy 2024-07-09 14:34
    关注

    问题已解决,找到UE目录中的UE_5.3\Engine\Source\Runtime\Core\Public\Experimental\Containers\HazardPointer.h
    找到

    FHazardRecord() = default;
    

    改成:

    public:FHazardRecord() = default;
    

    保存就可以了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 7月17日
  • 已采纳回答 7月9日
  • 创建了问题 7月9日

悬赏问题

  • ¥15 java和硬件交互问题
  • ¥15 前台多人编辑时怎么让每个人保存刷新都互不干扰
  • ¥20 如何用Python删除单元格内连续出现的重复词?
  • ¥15 WangEditor嵌入到geeker-admin中,回车没有办法换行
  • ¥30 stm32f103c8t6制作万能红外遥控器
  • ¥15 有人会fastcrud写前端页面吗
  • ¥15 如何解除Uniaccess管控
  • ¥15 微信小程序跳转关联公众号
  • ¥15 Java AES 算法 加密采用24位向量报错如何处理?
  • ¥15 使用X11可以找到托盘句柄,监控到窗口点击事件但是如何在监听的同时获取托盘中应用的上下文菜单句柄