Search Unity

Question Unity.IL2CPP.Building.BuilderFailedException: LLVM ERROR: out of memory

Discussion in 'Android' started by MohamedErrami, Aug 2, 2021.

  1. MohamedErrami

    MohamedErrami

    Joined:
    Feb 20, 2020
    Posts:
    3
    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 (https://android.googlesource.com/toolchain/clang 40173bab62ec746213857d083c0e8b0abb568790) (https://android.googlesource.com/toolchain/llvm 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(IEnumerable`1 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.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[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 <f5a27061d5634be188a0593af20cb363>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f5a27061d5634be188a0593af20cb363>: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 <f5a27061d5634be188a0593af20cb363>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <f5a27061d5634be188a0593af20cb363>: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&)
     
  2. MohamedErrami

    MohamedErrami

    Joined:
    Feb 20, 2020
    Posts:
    3
    On another PC, same project and same upgrade to unity 2020.3.15 :

    Exception: Unity.IL2CPP.Building.BuilderFailedException: LLVM ERROR: out of memory
    Could not write crash dump file: Unknown error
    0x000000000107B747 (0x0000000000000016 0x000000000013FFF0 0x0000000000000016 0x00007FFFCE7D46B8)
    0x00007FFFCE76ADFB (0x00007FFF00000001 0x00007FFFCFC1B86B 0x0000000000000000 0x000000000390832A), raise() + 0x21B bytes(s)
    0x00007FFFCE76F1FB (0x0000000000000002 0x0000000000000000 0x000000000390832A 0x00007FFFCE747D69), abort() + 0x1B bytes(s)
    0x0000000001031F77 (0x0000000004EAD480 0x0000000004EAD490 0x000000000B387320 0x000000000C148418)
    0x000000000103EA41 (0x000000000C1B7840 0x000000000A6A2BF0 0x000000000C148418 0x0000000000000000)
    0x0000000000C7F957 (0x0000000000000048 0x0000000000D18328 0x000000000AB17728 0x0000000000000000)
    0x0000000000C7FB55 (0x0000000000000004 0x0000000002E83906 0x0000000000000048 0x000000000000000E)
    0x0000000001669AE0 (0x000000000000004F 0x0000000000E5B206 0x0000000000000000 0x0000000004EAD990)
    0x0000000001627869 (0x636F6C5F68636E65 0x745364657A696C61 0x446D5F73676E6972 0x3739383041313546)
    0x0000000001629B8C (0x0000000000000040 0x000000000BBB3010 0x000000000BBBA120 0x000000000B12ECB0)
    0x000000000057C6C8 (0x0000000004EADC10 0x0000000000D04B8E 0x0000000008479728 0x0000000009FEC0B0)
    0x0000000000AF43EE (0x0000000007E8C898 0x0000000005279920 0x000000000523A368 0x000000000000007B)
    0x0000000000D07598 (0x000000000522BF20 0x000000000A6A4860 0x00000000082B7380 0x00000000082B7380)
    0x0000000000D07763 (0x000000000522BF20 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x0000000000D07E9E (0x0000001000000000 0x0000000000000000 0x00007FF4FDE70000 0x0000000008CE7770)
    0x00000000011E09BC (0x0000000000000000 0x0000000001E2BADC 0x0000000000000001 0x0000000005208C80)
    0x0000000002C399C2 (0x0000000000000000 0x0000000009F04998 0x0000000000000001 0x0000000000000000)
    0x0000000001E23EE2 (0x0000000000000000 0x00000000052173E0 0x0000000004EAE5D0 0x0000000004EAE530)
    0x00000000018A84C6 (0x0000000004EAE820 0x00000000018A6395 0x0000000000000246 0x00007FFFCE759D40)
    0x000000000159E526 (0x0000000005038DA0 0x0000000005030000 0x0000000000000000 0x0000000000000018)
    0x00000000015789C5 (0x0000000000000000 0x0000000000000000 0x0000000000000246 0x00007FFFCE759D40)
    0x000000000161DCB1 (0x0000000005203890 0x0000000005038FC0 0x0000000000000000 0x00007FFF96C2B4F0)
    0x0000000000402F8C (0x0000000000000000 0x0000000000000001 0x0000000000000000 0x0000000000000004)
    0x0000000002E865FD (0x0000000000000095 0x00000000052155B0 0x0000000000000000 0x0000000000000000)
    0x00000000004013B5 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x00000000004014E8 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x00007FFFCF9E7034 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    0x00007FFFCFC42651 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
    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 (https://android.googlesource.com/toolchain/clang 40173bab62ec746213857d083c0e8b0abb568790) (https://android.googlesource.com/toolchain/llvm 7a6618d69e7e8111e1d49dc9e7813767c5ca756a) (based on LLVM 8.0.2svn)
    Target: armv7-unknown-linux-android19
    Thread model: posix
    InstalledDir: D:\Unity\Editor\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\windows8\AppData\Local\Temp\Assembly-CSharp14-7ece17.cpp
    clang++.exe: note: diagnostic msg: C:\Users\windows8\AppData\Local\Temp\Assembly-CSharp14-7ece17.sh
    clang++.exe: note: diagnostic msg:

    ********************


    Invocation was: Executable: "D:\Unity\Editor\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:\Unity\Editor\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"D:\Unity\Editor\2020.3.15f2\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"D:\Unity\Editor\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" -I"D:\Unity\Editor\2020.3.15f2\Editor\Data\il2cpp\libil2cpp" -I"D:\Unity\Editor\2020.3.15f2\Editor\Data\il2cpp\external\bdwgc\include" -I"D:\Unity\Editor\2020.3.15f2\Editor\Data\il2cpp\external\xxHash" -I"D:\Unity\Editor\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Include" -I"D:\Unity\Editor\2020.3.15f2\Editor\Data\il2cpp\external\baselib\Platforms\Android\Include" -I"D:\Unity\Editor\2020.3.15f2\Editor\Data\il2cpp\libil2cpp\pch" -I"D:\Illogika\Terragenesis\TerraGenesis-Unity\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:\Illogika\Terragenesis\TerraGenesis-Unity\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput\Assembly-CSharp14.cpp" -o "D:/Illogika/Terragenesis/TerraGenesis-Unity/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/A6522A11B0C79DF0904C83414482BE5B.o"

    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 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.Action`1[T] setupStartInfo) (at <44c3723143904fb88deebc993c7bb491>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[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 <f5a27061d5634be188a0593af20cb363>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <f5a27061d5634be188a0593af20cb363>: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 <f5a27061d5634be188a0593af20cb363>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <f5a27061d5634be188a0593af20cb363>: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&)
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,929
    Can you send the content of the generated source code in D:\Illogika\Terragenesis\TerraGenesis-Unity\Library\Il2cppBuildCache\Android\armeabi-v7a\il2cppOutput\Assembly-CSharp14.cpp? This error in the Android NDK C++ compiler can happen when generated C++ source files get very large, specifically when they have a very large single method.

    We might be able to inspect that file and find the offending method.
     
  4. MohamedErrami

    MohamedErrami

    Joined:
    Feb 20, 2020
    Posts:
    3
    Hello, i found the error, it was a mega dictionary that created the problem of having a too large source file.
     
    JoshPeterson likes this.
  5. awaisiqbal57

    awaisiqbal57

    Joined:
    Oct 12, 2018
    Posts:
    2
    Hello, I am also stuck on this error (LLVM Error: Out of memory).
    Plz someone explain how can I identify that which script or piece of code effecting my build?
     
  6. awaisiqbal57

    awaisiqbal57

    Joined:
    Oct 12, 2018
    Posts:
    2
    I also have script debugging disabled
     

    Attached Files:

  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,929
    Does the error message provide any information about what C++ source file might be causing the error? If so, it is probably worth looking at that file and trying to find a really large single method. Sometimes that can cause this problem. If you can break up that method into smaller methods in your C# code, then that might work around this issue.