Tencent / TAD_Sim

腾讯自动驾驶仿真系统 TAD Sim (Tencent Autonomous Driving Simulation) 单机版是腾讯自动驾驶以建立更加安全和高效的自动驾驶测试工具为目标, 为自动驾驶系统研发和验证而量身定做的跨平台分布式系统.
Other
302 stars 84 forks source link

Display模块Cook Failed #49

Open 1770577032 opened 2 months ago

1770577032 commented 2 months ago

重新用git和git lfs下载工程,编译倒是没有提示错误了,但是display模块提示cook failed

1770577032 commented 2 months ago

nternalUtils.SafeFileExists: SafeFileExists /build/Binaries/Linux/ubuntu18_20/libwind.so.0=True UE4Build.CheckBuildProducts: /build/Binaries/Linux/ubuntu18_20/libwind.so.0 InternalUtils.SafeFileExists: SafeFileExists /build/Binaries/Linux/ubuntu18_20/libxerces-c-3.1.so=True UE4Build.CheckBuildProducts: /build/Binaries/Linux/ubuntu18_20/libxerces-c-3.1.so InternalUtils.SafeFileExists: SafeFileExists /build/Binaries/Linux/ubuntu18_20/libxml2.so.2=True UE4Build.CheckBuildProducts: /build/Binaries/Linux/ubuntu18_20/libxml2.so.2 InternalUtils.SafeFileExists: SafeFileExists /build/Binaries/Linux/ubuntu18_20/libz.so.1=True UE4Build.CheckBuildProducts: /build/Binaries/Linux/ubuntu18_20/libz.so.1 UE4Build.CheckBuildProducts: End Build products *** Project.Build: ** BUILD COMMAND COMPLETED ** InternalUtils.SafeFileExists: SafeFileExists /build/Display.uproject=True Project.Cook: ** COOK COMMAND STARTED ** InternalUtils.SafeFileExists: SafeFileExists /home/ue4/UnrealEngine/Engine/Binaries/Linux/UE4Editor=True CommandUtils.RunCommandlet: Running UE4Editor Cook for project /build/Display.uproject CommandUtils.RunCommandlet: Commandlet log file is /home/ue4/UnrealEngine/Engine/Programs/AutomationTool/Saved/Cook-2024.08.29-06.01.46.txt InternalUtils.SafeFileExists: SafeFileExists /home/ue4/UnrealEngine/Engine/Binaries/Linux/UE4Editor=True CommandUtils.Run: Running: /home/ue4/UnrealEngine/Engine/Binaries/Linux/UE4Editor /build/Display.uproject -run=Cook -TargetPlatform=LinuxNoEditor -fileopenlog -unversioned -abslog=/home/ue4/UnrealEngine/Engine/Programs/AutomationTool/Saved/Cook-2024.08.29-06.01.46.txt -stdout -CrashForUAT -unattended -NoLogTimes -UTF8Output ProcessResult.StdErr: Refusing to run with the root privileges. CommandUtils.Run: Took 0.650595s to run UE4Editor, ExitCode=1 InternalUtils.SafeDeleteFile: SafeDeleteFile /root/Library/Logs/Unreal Engine/LocalBuildLogs/Cook-2024.08.29-06.01.47.txt InternalUtils.SafeCopyFile: SafeCopyFile /home/ue4/UnrealEngine/Engine/Programs/AutomationTool/Saved/Cook-2024.08.29-06.01.46.txt /root/Library/Logs/Unreal Engine/LocalBuildLogs/Cook-2024.08.29-06.01.47.txt InternalUtils.SafeDeleteFile: SafeDeleteFile /home/ue4/UnrealEngine/Engine/Programs/AutomationTool/Saved/Cook-2024.08.29-06.01.46.txt Log.WriteException: ============================================================================== Log.WriteException: ERROR: Cook failed. Log.WriteException: (see /root/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt for full exception trace) Log.WriteException: Log.WriteException: CommandletException: Editor terminated with exit code 1 while running Cook for /build/Display.uproject; see log /root/Library/Logs/Unreal Engine/LocalBuildLogs/Cook-2024.08.29-06.01.47.txt Log.WriteException: at AutomationTool.CommandUtils.RunCommandlet (Tools.DotNETCommon.FileReference ProjectName, System.String UE4Exe, System.String Commandlet, System.String Parameters, System.String& DestLogFile, System.Int32 ErrorLevel) [0x0077d] in <41f8422eac3c450fba1a1856efe27059>:0 Log.WriteException: at AutomationTool.CommandUtils.RunCommandlet (Tools.DotNETCommon.FileReference ProjectName, System.String UE4Exe, System.String Commandlet, System.String Parameters, System.Int32 ErrorLevel) [0x00001] in <41f8422eac3c450fba1a1856efe27059>:0 Log.WriteException: at AutomationTool.CommandUtils.CookCommandlet (Tools.DotNETCommon.FileReference ProjectName, System.String UE4Exe, System.String[] Maps, System.String[] Dirs, System.String InternationalizationPreset, System.String[] CulturesToCook, System.String TargetPlatform, System.String Parameters) [0x0013e] in <41f8422eac3c450fba1a1856efe27059>:0 Log.WriteException: at Project.Cook (AutomationTool.ProjectParams Params) [0x0085d] in :0 Wrapped by AutomationException: Cook failed. Log.WriteException: at Project.Cook (AutomationTool.ProjectParams Params) [0x0089a] in :0 Log.WriteException: at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00076] in :0 Log.WriteException: at BuildCookRun.ExecuteBuild () [0x00040] in :0 Log.WriteException: at AutomationTool.BuildCommand.Execute () [0x00001] in <41f8422eac3c450fba1a1856efe27059>:0 Log.WriteException: at AutomationTool.Automation.Execute (System.Collections.Generic.List1[T] CommandsToExecute, System.Collections.Generic.Dictionary2[TKey,TValue] Commands) [0x0007c] in <41f8422eac3c450fba1a1856efe27059>:0 Log.WriteException: at AutomationTool.Automation.Process (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x00286] in <41f8422eac3c450fba1a1856efe27059>:0 Log.WriteException: at AutomationTool.Program.MainProc (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x00001] in :0 Log.WriteException: at AutomationTool.Program+<>c__DisplayClass1_0.

b__2 () [0x00000] in :0 Log.WriteException: at AutomationTool.InternalUtils.RunSingleInstance (System.Func`1[TResult] Main) [0x000a0] in <41f8422eac3c450fba1a1856efe27059>:0 Log.WriteException: at AutomationTool.Program.Main (System.String[] Arguments) [0x0020a] in :0 Log.WriteException: ============================================================================== Program.Main: AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)

shaoxiaohang commented 2 months ago

ProcessResult.StdErr: Refusing to run with the root privileges.

1770577032 commented 2 months ago

ProcessResult.StdErr: Refusing to run with the root privileges.

Writing manifest to /build/Intermediate/Build/Manifest.xml Target is up to date ERROR: Unhandled exception: System.UnauthorizedAccessException: Access to the path "/build/Intermediate/Build/Linux/B4D820EA/Display/Development/DependencyCache.bin" is denied. at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <98fac219bd4e453693d76fda7bd96ab0>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) at System.IO.File.Open (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0 at UnrealBuildTool.CppDependencyCache.Write () [0x00010] in <2e2c9fef2168419aa59fd2bbd951c3df>:0 at UnrealBuildTool.CppDependencyCache+<>c.b13_0 (UnrealBuildTool.CppDependencyCache Cache) [0x00008] in <2e2c9fef2168419aa59fd2bbd951c3df>:0 at System.Threading.Tasks.Parallel+<>c__DisplayClass44_0`2[TSource,TLocal].b1 (System.Collections.IEnumerator& partitionState, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x0010f] in <98fac219bd4e453693d76fda7bd96ab0>:0 --- End of stack trace from previous location where exception was thrown ---

       at System.Threading.Tasks.Parallel+<>c__DisplayClass44_0`2[TSource,TLocal].<PartitionerForEachWorker>b__1 (System.Collections.IEnumerator& partitionState, System.Int32 timeout, System.Boolean& replicationDelegateYieldedBeforeCompletion) [0x0026e] in <98fac219bd4e453693d76fda7bd96ab0>:0
       at System.Threading.Tasks.TaskReplicator+Replica`1[TState].ExecuteAction (System.Boolean& yieldedBeforeCompletion) [0x00000] in <98fac219bd4e453693d76fda7bd96ab0>:0
       at System.Threading.Tasks.TaskReplicator+Replica.Execute () [0x00023] in <98fac219bd4e453693d76fda7bd96ab0>:0

Took 3.550186s to run mono, ExitCode=6 UnrealBuildTool failed. See log for more details. (/home/ue4/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-Display-Linux-Development.txt) AutomationTool exiting with ExitCode=6 (6) RunUAT ERROR: AutomationTool was unable to run successfully. cp: cannot create regular file '/build/Saved/StagedBuilds/LinuxNoEditor/Display/Binaries/Linux/': No such file or directory ./build.sh: line 37: cd: /build/Saved/StagedBuilds: No such file or directory mv: cannot stat 'LinuxNoEditor': No such file or directory cp: cannot stat '../../NeuralStyle': No such file or directory cp: cannot stat '../../XMLFiles': No such file or directory cp: cannot stat '../../Display.sh': No such file or directory cp: cannot stat '../../Display-cloud.sh': No such file or directory chmod: cannot access './Display/Display.sh': No such file or directory chmod: cannot access './Display/Display-cloud.sh': No such file or directory rm: cannot remove '/build/build/bin/display.tar.gz': Permission denied mkdir: cannot create directory '/build/build': File exists mkdir: cannot create directory '/build/build/bin': File exists mv: cannot stat './Saved/StagedBuilds/Display': No such file or directory rm: cannot remove '/build/build/bin/Display/Display/Binaries/Linux/ubuntu18_20/libcuda.so.1': No such file or directory tar: ./Display: Cannot stat: No such file or directory tar (child): display.tar.gz: Cannot open: Permission denied tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now

1770577032 commented 2 months ago

如果docker里面不在root下执行就会这样