[BUG] crash occurred while building unity build
Closed this issue · 4 comments
Description
When I was in the use of unity android for integration, a unity. IL2CPP. Building. BuilderFailedException error, but the show has been a most successful
Unity.IL2CPP.Building.BuilderFailedException: Build failed with 565 successful nodes and 1 failed ones
log:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] Target: armv7a-unknown-linux-android22
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] Thread model: posix
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] InstalledDir: /Users/one/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] ********************
2024-11-22T13:15:08.609+0800 [QUIET] [system.out]
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] Preprocessed source(s) and associated run script(s) are located at:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /var/folders/y2/qbxm8bzj0qggxx0jvrbb92vc0000gn/T/NumSharp10-5f63f9.cpp
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /var/folders/y2/qbxm8bzj0qggxx0jvrbb92vc0000gn/T/NumSharp10-5f63f9.sh
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: Crash backtrace is located in
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /Users/one/Library/Logs/DiagnosticReports/clang++_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out]
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] ********************
2024-11-22T13:15:08.609+0800 [QUIET] [system.out]
2024-11-22T13:15:08.710+0800 [QUIET] [system.out] Error: Unity.IL2CPP.Building.BuilderFailedException: Build failed with 565 successful nodes and 1 failed ones
2024-11-22T13:15:08.710+0800 [QUIET] [system.out] Annotation: C_Android_arm32 iz17/nm2o_NumSharp10.o
2024-11-22T13:15:08.710+0800 [QUIET] [system.out] Cmdline: "/Users/one/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++" -march=armv7-a -mfloat-abi=softfp -mfpu=neon-fp16 -marm -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__ -D__ANDROID_API__=22 -DANDROID -DHAVE_INTTYPES_H -no-canonical-prefixes -funwind-tables -fstack-protector -fdiagnostics-format=msvc -fomit-frame-pointer -std=c++11 -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -g -O2 -fPIC -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DIL2CPP_ENABLE_WRITE_BARRIERS=1 -DIL2CPP_INCREMENTAL_TIME_SLICE=3 -DHAVE_BDWGC_GC -DNDEBUG -I"." -I"/Users/one/Documents/my_documents/ryobi-robotic-mower-app-android/unityLibrary/src/main/Il2CppOutputProject/Source/il2cppOutput" -I"/Users/one/Documents/my_documents/ryobi-robotic-mower-app-android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp/pch" -I"/Users/one/Documents/my_documents/ryobi-robotic-mower-app-android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/libil2cpp" -I"/Users/one/Documents/my_documents/ryobi-robotic-mower-app-android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/baselib/Include" -I"/Users/one/Documents/my_documents/ryobi-robotic-mower-app-android/unityLibrary/src/main/Il2CppOutputProject/IL2CPP/external/baselib/Platforms/Android/Include" -o "iz17/nm2o_NumSharp10.o" -fcolor-diagnostics -target armv7a-linux-androideabi22 -fstrict-aliasing -fdiagnostics-format=msvc -c -x c++ "/Users/one/Documents/my_documents/ryobi-robotic-mower-app-android/unityLibrary/src/main/Il2CppOutputProject/Source/il2cppOutput/NumSharp10.cpp"
2024-11-22T13:15:08.710+0800 [QUIET] [system.out] ExitCode: 254
2024-11-22T13:15:08.710+0800 [QUIET] [system.out] Stdout:
2024-11-22T13:15:08.710+0800 [QUIET] [system.out] clang++: error: unable to execute command: Killed: 9
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: error: clang frontend command failed due to signal (use -v to see invocation)
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] Target: armv7a-unknown-linux-android22
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] Thread model: posix
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] InstalledDir: /Users/one/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: note: diagnostic msg: PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace, preprocessed source, and associated run script.
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: note: diagnostic msg:
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] ********************
2024-11-22T13:15:08.713+0800 [QUIET] [system.out]
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] Preprocessed source(s) and associated run script(s) are located at:
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /var/folders/y2/qbxm8bzj0qggxx0jvrbb92vc0000gn/T/NumSharp10-5f63f9.cpp
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /var/folders/y2/qbxm8bzj0qggxx0jvrbb92vc0000gn/T/NumSharp10-5f63f9.sh
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: note: diagnostic msg: Crash backtrace is located in
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /Users/one/Library/Logs/DiagnosticReports/clang++_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] clang++: note: diagnostic msg:
2024-11-22T13:15:08.713+0800 [QUIET] [system.out]
2024-11-22T13:15:08.713+0800 [QUIET] [system.out] ********************
2024-11-22T13:15:08.713+0800 [QUIET] [system.out]
2024-11-22T13:15:08.714+0800 [QUIET] [system.out] at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, Il2CppCommandLineArguments il2CppCommandLineArguments, BuildingOptions buildingOptions, Boolean throwExceptions) in /Users/bokken/build/output/unity/il2cpp/il2cpp/Program.cs:line 339
Unity.IL2CPP.Building.BuilderFailedException: Build failed with 565 successful nodes and 1 failed ones
Affected versions
Canary
Canary version
No response
Host OS
Mac
Host OS version
15.0
Affected ABIs
armeabi-v7a, arm64-v8a, x86, x86_64
Build system
ndk-build
Other build system
No response
minSdkVersion
34
Device API level
No response
2024-11-22T13:15:08.710+0800 [QUIET] [system.out] clang++: error: unable to execute command: Killed: 9
This usually means you ran out of memory.
If that's not it, see this bit from the bug template:
If you are using Unity, double check the NDK version you're using. It's probably not in this list because it's not supported. File those bugs with Unity.
Select all NDK versions in which you have observed this bug. NDK versions not listed here are not supported and those bugs will be closed without investigation.
We need to know what version you're using. "Canary" is not enough information. We need to know which canary version.
If you're using a supported version of the NDK (we've had an influx of Unity bugs filed with people not using supported NDKs, please check), we need the artifacts the log asked you to upload:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] Preprocessed source(s) and associated run script(s) are located at:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /var/folders/y2/qbxm8bzj0qggxx0jvrbb92vc0000gn/T/NumSharp10-5f63f9.cpp
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /var/folders/y2/qbxm8bzj0qggxx0jvrbb92vc0000gn/T/NumSharp10-5f63f9.sh
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: Crash backtrace is located in
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /Users/one/Library/Logs/DiagnosticReports/clang++_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg:
Will reopen if we get the data we need.
2024-11-22T13:15:08.710+0800 [QUIET] [system.out] clang++: error: unable to execute command: Killed: 9
This usually means you ran out of memory.
If that's not it, see this bit from the bug template:
If you are using Unity, double check the NDK version you're using. It's probably not in this list because it's not supported. File those bugs with Unity.
Select all NDK versions in which you have observed this bug. NDK versions not listed here are not supported and those bugs will be closed without investigation.We need to know what version you're using. "Canary" is not enough information. We need to know which canary version.
If you're using a supported version of the NDK (we've had an influx of Unity bugs filed with people not using supported NDKs, please check), we need the artifacts the log asked you to upload:
2024-11-22T13:15:08.609+0800 [QUIET] [system.out] PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: 2024-11-22T13:15:08.609+0800 [QUIET] [system.out] Preprocessed source(s) and associated run script(s) are located at: 2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /var/folders/y2/qbxm8bzj0qggxx0jvrbb92vc0000gn/T/NumSharp10-5f63f9.cpp 2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /var/folders/y2/qbxm8bzj0qggxx0jvrbb92vc0000gn/T/NumSharp10-5f63f9.sh 2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: Crash backtrace is located in 2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: /Users/one/Library/Logs/DiagnosticReports/clang++_<YYYY-MM-DD-HHMMSS>_<hostname>.crash 2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg: (choose the .crash file that corresponds to your crash) 2024-11-22T13:15:08.609+0800 [QUIET] [system.out] clang++: note: diagnostic msg:
Will reopen if we get the data we need.
@DanAlbert Thanks for your reply. The ndk version I use is 21.3.6528147, the unity version is 2021.3.11f1, and the Android sdk is 34.
And I found that my computer is not relevant/Users/one/Library/Logs/DiagnosticReports/clang of the error log
I think there may be a reason for the lack of memory, because it takes about 15 minutes to compile every time. However, I found that memory and cpu usage declined for about 3 minutes from compilation to the end of the 15-minute error report, until the error compilation failed. May I ask if this will cause me NumSharp10-5f63f9.cpp error?
this is my ./gradlew clean build log
log.txt
The ndk version I use is 21.3.6528147
That hasn't been supported for years. You'll need to update to something supported before we can help. There's always a pretty good chance that the bug goes away just by updating. New versions include bug fixes.
The ndk version I use is 21.3.6528147
That hasn't been supported for years. You'll need to update to something supported before we can help. There's always a pretty good chance that the bug goes away just by updating. New versions include bug fixes.
Thanks, yes, I upgraded the version and the issue has been resolved