Hello,
i’m blocked on this error for some days now and can’t find a solution. Really need help.
The project work and build perfectly on unity 2018.4.24. For ANR issues we decided to pass to Unity 2020.3.15.
But when building i have the error out of memory :
Exception: Unity.IL2CPP.Building.BuilderFailedException: LLVM ERROR: out of memory
Wrote crash dump file “C:\Users\merrami\AppData\Local\Temp\clang++.exe-961a12.dmp”
LLVMSymbolizer: error reading file: PDB Error: DIA is not installed on the system
LLVMSymbolizer: error reading file: PDB Error: DIA is not installed on the system
LLVMSymbolizer: error reading file: PDB Error: DIA is not installed on the system
#0 0x000000000107b747 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc7b747)
#1 0x00007fffbf7eadfb (C:\WINDOWS\System32\msvcrt.dll+0x2adfb)
#2 0x00007fffbf7ef1fb (C:\WINDOWS\System32\msvcrt.dll+0x2f1fb)
#3 0x0000000001031f77 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc31f77)
#4 0x0000000001031f95 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc31f95)
#5 0x0000000002e838fe (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2a838fe)
#6 0x0000000002b87d56 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2787d56)
#7 0x0000000001669fda (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1269fda)
#8 0x0000000001627869 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1227869)
#9 0x0000000001629b8c (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1229b8c)
#10 0x000000000057c6c8 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x17c6c8)
#11 0x0000000000af43ee (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x6f43ee)
#12 0x0000000000d07598 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x907598)
#13 0x0000000000d07763 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x907763)
#14 0x0000000000d07e9e (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x907e9e)
#15 0x00000000011e09bc (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xde09bc)
#16 0x0000000002c399c2 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x28399c2)
#17 0x0000000001e23ee2 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x1a23ee2)
#18 0x00000000018a84c6 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14a84c6)
#19 0x000000000159e526 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x119e526)
#20 0x00000000015789c5 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x11789c5)
#21 0x000000000161dcb1 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x121dcb1)
#22 0x0000000000402f8c (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2f8c)
#23 0x0000000002e865fd (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x2a865fd)
#24 0x00000000004013b5 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x13b5)
#25 0x00000000004014e8 (D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x14e8)
#26 0x00007fffbddc7034 (C:\WINDOWS\System32\KERNEL32.DLL+0x17034)
#27 0x00007fffbfc42651 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x52651)
clang++.exe: error: clang frontend command failed due to signal (use -v to see invocation)
Android (5058415 based on r339409) clang version 8.0.2 (toolchain/clang - Git at Google 40173bab62ec746213857d083c0e8b0abb568790) (toolchain/llvm - Git at Google 7a6618d69e7e8111e1d49dc9e7813767c5ca756a) (based on LLVM 8.0.2svn)
Target: armv7-unknown-linux-android19
Thread model: posix
InstalledDir: D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin
clang++.exe: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang++.exe: note: diagnostic msg:
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++.exe: note: diagnostic msg: C:\Users\merrami\AppData\Local\Temp\Assembly-CSharp20-83dee0.cpp
clang++.exe: note: diagnostic msg: C:\Users\merrami\AppData\Local\Temp\Assembly-CSharp20-83dee0.sh
clang++.exe: note: diagnostic msg:
Invocation was: Executable: “D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++”
Arguments: -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"D:\Projects\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"D:\Projects\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" -I"D:\Projects\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" -I"D:\Projects\2020.3.15f2\Editor\Data\il2cpp\external\bdwgc\include" -I"D:\Projects\2020.3.15f2\Editor\Data\il2cpp\external\xxHash" -I"D:\Projects\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Include" -I"D:\Projects\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Platforms\Android\Include" -I"D:\Projects\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\pch" -I"D:\Terragenesis\TerraGenesis-Unity2020\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput" -I"." -c -g -DNDEBUG -fexceptions -fno-limit-debug-info -fdata-sections -ffunction-sections -Wa,–noexecstack -fno-rtti -std=c++11 -fno-strict-aliasing -fvisibility=hidden -fvisibility-inlines-hidden -fno-strict-overflow -fno-addrsig -fPIC -Os -stdlib=libc++ -target armv7-linux-androideabi19 -D__ANDROID_API__=19 -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -Wno-unused-value “D:\Terragenesis\TerraGenesis-Unity2020\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput\Assembly-CSharp20.cpp” -o “D:/Terragenesis/TerraGenesis-Unity2020/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/006F2F8A80EC139EA9C37857BCFBAF9E.o”
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector) at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics) at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection
1 matchedAssemblyMethodSourceFiles)
at il2cpp.Program.DoRun(String[ ] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0) UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List
1[T] arguments, System.Action1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0) UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <44c3723143904fb88deebc993c7bb491>:0) UnityEditorInternal.IL2CPPBuilder.Run () (at <44c3723143904fb88deebc993c7bb491>:0) UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action
1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <44c3723143904fb88deebc993c7bb491>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)