Hello, I am having an issue with the build. If anyone has any knowledge with this, I would be grateful.
I am building my game for android using IL2CPP and am seeing a crash in clang.exe with out of memory. The clang.exe uses around 12GB of RAM, memory usage goes up to around 96% then the build fails. I am using Unity version 2019.3.0f3. I am also using tiles heavily in the game and Scriptable Objects as well. I know this is little to go on, but I’m not sure what else to say that could help.
I have already reported a bug. I am writting here to see if there is however a quick fix for this.
Thanks in advance.
Here is the error I am receiving:
Failed running C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="C:\Users\daian\Documents\Bitbucket\DungeonCrawlTycoon\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="C:\Users\daian\Documents\Bitbucket\DungeonCrawlTycoon\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.3.0f3/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="C:/Program Files/Unity/Hub/Editor/2019.3.0f3/Editor/Data/PlaybackEngines/AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="C:/Program Files/Unity/Hub/Editor/2019.3.0f3/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.3.0f3/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=C:/Users/daian/Documents/Bitbucket/DungeonCrawlTycoon/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=C:/Users/daian/Documents/Bitbucket/DungeonCrawlTycoon/Temp/StagingArea/Il2Cpp/il2cppOutput
stdout:
Building libil2cpp.so with AndroidToolChain
Output directory: C:\Users\daian\Documents\Bitbucket\DungeonCrawlTycoon\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
Cache directory: C:\Users\daian\Documents\Bitbucket\DungeonCrawlTycoon\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: LLVM ERROR: out of memory
Wrote crash dump file "C:\Users\daian\AppData\Local\Temp\clang++.exe-e15b47.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 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0xc7b747 (C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc7b747)
#1 0x000000000107b747
#2 0x000000000107b747 (C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc7b747)
#3 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0xc31f77 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6f894e
#4 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6fdff5 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6fe270
#5 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x7ca45a C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x7cb1af
#6 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6f43ee C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x907598
#7 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x907763 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x907e9e
#8 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0xde09bc C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x28399c2
#9 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1a23ee2 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x14a84c6
#10 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x119e526 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x11789c5
#11 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x121dcb1 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x2f8c
#12 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x2a865fd C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x13b5
#13 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x14e8 (C:\WINDOWS\System32\msvcrt.dll+0x2ae7b)
#14 0x00007ffb0457ae7b
#15 0x00007ffb0457ae7b (C:\WINDOWS\System32\msvcrt.dll+0x2ae7b)
0x000000000107B747 (0x0000000000000016 0x0000000025CF8000 0x0000000000000016 0x00007FFB045E46B8)
0x00007FFB0457AE7B (0x0000000000000001 0x00007FFB05786653 0x0000000000000000 0x000000000390832A), raise() + 0x21B bytes(s)
0x00007FFB0457F28B (0x0000000000000002 0x0000000000000000 0x000000000390832A 0x00007FFB04557DA9), abort() + 0x1B bytes(s)
0x0000000001031F77 (0x000000001F4E2D58 0x00000003B81CAFB8 0x00000003B81CAFB8 0x00000000034A7400)
0x0000000000AF894E (0x000000001243D5E0 0x000002DD0577FC11 0x0000000004EADA60 0x00000003A38A6020)
0x0000000000AFDFF5 (0x0000000000004E83 0x0000000012119760 0x00000002515737D0 0x00007FFB04569DA0)
0x0000000000AFE270 (0x0000000002560296 0x00000000000000E0 0x0000000000000000 0x0000000004EB0000)
0x0000000000BCA45A (0x000000000C7E43D0 0x0000000000000039 0x0000000004EADBB0 0x000000000AD53890)
0x0000000000BCB1AF (0x0000000004EADC10 0x0000000000D04AF5 0x000000000C599048 0x000000000AD53890)
0x0000000000AF43EE (0x000000000A2F54F8 0x000000000C9052C0 0x00000000098CDAE8 0x000000000000006E)
0x0000000000D07598 (0x00000000098DB000 0x000000000BAD94A0 0x00000000098B88D0 0x00000000098B88D0)
0x0000000000D07763 (0x00000000098DB000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x0000000000D07E9E (0x0000001000000000 0x0000000000000000 0x0000000004EAE030 0x0000000004EAE3B0)
0x00000000011E09BC (0x0000000000000000 0x0000000001E2BADC 0x0000000000000001 0x0000000004EAE340)
0x0000000002C399C2 (0x0000000000000000 0x000000000D219400 0x0000000000000001 0x0000000000000000)
0x0000000001E23EE2 (0x0000000004EB0000 0x00000000098A8C90 0x0000000004EAE5D0 0x0000000004EAE530)
0x00000000018A84C6 (0x0000000004EAE820 0x00000000018A6395 0x0000000004EAE820 0x00007FFB04569DA0)
0x000000000159E526 (0x0000000004EAE6C0 0x0000000A00000008 0x0000000000000000 0x000014F4000014E7)
0x00000000015789C5 (0x00000000080F9F30 0x0000000000000001 0x00000000098A6C20 0x00007FFB04569DA0)
0x000000000161DCB1 (0x00000000098A4DA0 0x00000000080F9190 0x0000000000000039 0x000000000102D8B9)
0x0000000000402F8C (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x000000000000004C)
0x0000000002E865FD (0x0000000000000089 0x00000000098B6050 0x0000000000000000 0x0000000000000000)
0x00000000004013B5 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00000000004014E8 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFB03E87BD4 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFB057ACED1 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
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: C:\Program Files\Unity\Hub\Editor\2019.3.0f3\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\daian\AppData\Local\Temp\Assembly-CSharp-884182.cpp
clang++.exe: note: diagnostic msg: C:\Users\daian\AppData\Local\Temp\Assembly-CSharp-884182.sh
clang++.exe: note: diagnostic msg:
********************
Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2019.3.0f3\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 -DLINUX -DANDROID -DPLATFORM_ANDROID -D__linux__ -D__STDC_FORMAT_MACROS -I"C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\libil2cpp\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\il2cpp\external\xxHash" -I"C:\Users\daian\Documents\Bitbucket\DungeonCrawlTycoon\Temp\StagingArea\Il2Cpp\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 "C:\Users\daian\Documents\Bitbucket\DungeonCrawlTycoon\Temp\StagingArea\Il2Cpp\il2cppOutput\Assembly-CSharp.cpp" -o "C:/Users/daian/Documents/Bitbucket/DungeonCrawlTycoon/Library/il2cpp_android_armeabi-v7a/il2cpp_cache/B175D48562CD48B28DFC2C289FC4A8C7.o"
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
at il2cpp.Program.Main(String[] args)
stderr:
Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: LLVM ERROR: out of memory
Wrote crash dump file "C:\Users\daian\AppData\Local\Temp\clang++.exe-e15b47.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 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0xc7b747 (C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc7b747)
#1 0x000000000107b747
#2 0x000000000107b747 (C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0xc7b747)
#3 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0xc31f77 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6f894e
#4 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6fdff5 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6fe270
#5 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x7ca45a C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x7cb1af
#6 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6f43ee C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x907598
#7 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x907763 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x907e9e
#8 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0xde09bc C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x28399c2
#9 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1a23ee2 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x14a84c6
#10 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x119e526 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x11789c5
#11 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x121dcb1 C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x2f8c
#12 0x00007ffb0457ae7b C:\Program Files\Unity\Hub\Editor\2019.3.0f3\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\ll<message truncated>
I set 130 gigs - and after 6 hours of building unity freezes - my explorer looks like this (sorry screen contains in czech language) but oyu can claerly see, taht uniy eats over 124 gigs of memory… I assume, that it is not normal beahve
Can you paste the case number here please? It might be that some script in your project creates huge cpp files.
The cpp files are generated here - C:/Users/daian/Documents/Bitbucket/DungeonCrawlTycoon/Temp/StagingArea/Il2Cpp/il2cppOutput check if there are any huge ones, that might hint you what the problem is.
Ok I tryed another build - Iam attaching screenshot of cache direcotry (it does not look like that there are some huge files) - total cache directory size is 511 MB.
Iam also including my build log
Still, I think you should create a bug report with repro attached, since otherwise it’s only guesses on what’s happening.
You pasted a screenshot with object files, what about cpp files, are there any huge ones?
P.S as you saw, the bug happens in Android’s native compiler which is a part of Android NDK, so we can only workaround the problem here, the fix (if there’s really a bug) must come from google.
There should be cpp files in E:/Dev/AoLArena/Unity/Temp/StagingArea/Il2Cpp/il2cppOutput right after the build, unless you’re closing Unity, then the whole folder is deleted.
Preprocessed version was placed here - C:\Users\daian\AppData\Local\Temp\Assembly-CSharp-884182.cpp, try opening it, and see if there’s a huge method inside, it might be the reason for compiler to crash.
If that’s the case, you might need to split the method into smaller ones
YES! problem solved - there was arrays with hundres of elements and il2cpp was unable to compile it… I moved data to text file, and Iam loading it from it and build passed… Thanks for oyur help!
I had the same issue after switching to IL2CPP and it was driving me crazy. Thank you for finding the solution!
The same issue with some large arrays causing the compiler to eat up all my memory and eventually crash.
Hello, when try build Android build IL2CPP (netstandart 2.0) for ARM64 architectur an error occurse. (Unity 2021.2.0b4)
Assembly for mono and windows works properly.
There are no huge arrays or large static objects in the code.
I tried different configuration options with IL2CPP,
I ask for help with debugging, where should I pay attention?