Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: #1936

Closed
PvR33 opened this issue Sep 18, 2023 · 12 comments
Closed

[Bug]: #1936

PvR33 opened this issue Sep 18, 2023 · 12 comments
Labels

Comments

@PvR33
Copy link

PvR33 commented Sep 18, 2023

Description

Building Library\Bee\artifacts\Android\d8kzr\ziau_-firstpass.o failed with output:
LLVM ERROR: out of memory

Stack dump:
0.	Program arguments: C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin\clang++.exe -cc1 -triple aarch64-unknown-linux-android22 -emit-obj -mnoexecstack -disable-free -disable-llvm-verifier -discard-value-names -main-file-name Assembly-CSharp-firstpass.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu generic -target-feature +neon -target-abi aapcs -mllvm -aarch64-fix-cortex-a53-835769=1 -fallow-half-arguments-and-returns -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -ffunction-sections -fdata-sections -coverage-notes-file C:\Game\MyGame\Library/Bee/artifacts/Android/d8kzr/ziau_-firstpass.gcno -resource-dir C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64\lib64\clang\9.0.8 -D __ANDROID_API__=22 -D ANDROID -D HAVE_INTTYPES_H -D BASELIB_INLINE_NAMESPACE=il2cpp_baselib -D IL2CPP_MONO_DEBUGGER_DISABLED -D RUNTIME_IL2CPP -D TARGET_ARM64 -D IL2CPP_ENABLE_WRITE_BARRIERS=1 -D IL2CPP_INCREMENTAL_TIME_SLICE=3 -D HAVE_BDWGC_GC -D NDEBUG -I . -I C:/Game/MyGame/Library/Bee/artifacts/Android/il2cppOutput/cpp -I C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/il2cpp/libil2cpp/pch -I C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/il2cpp/libil2cpp -I C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/il2cpp/external/baselib/Include -I C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/il2cpp/external/baselib/Platforms/Android/Include -internal-isystem C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/include/c++/v1 -internal-isystem C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/local/include -internal-isystem C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64\lib64\clang\9.0.8\include -internal-externc-isystem C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/include/aarch64-linux-android -internal-externc-isystem C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/include -internal-externc-isystem C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin/../sysroot/usr/include -Os -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 -std=c++11 -fdeprecated-macro -fdebug-compilation-dir E:\Rope Hero\Old gangstart city -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fwrapv -stack-protector 1 -fno-rtti -fno-signed-char -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fdiagnostics-format msvc -fcolor-diagnostics -fdiagnostics-absolute-paths -vectorize-loops -vectorize-slp -o Library/Bee/artifacts/Android/d8kzr/ziau_-firstpass.o -x c++ C:/Game/MyGame/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp-firstpass.cpp 
1.	<eof> parser at end of file
2.	Code generation
3.	Running pass 'Function Pass Manager' on module 'C:/Game/MyGame/Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp-firstpass.cpp'.
4.	Running pass 'Live DEBUG_VALUE analysis' on function '@PreWarm__cctor_m8C132D47B22FEB94A6D79F4424A1DE83F15C86CB'
 #0 0x00007ff69a52fca6 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x4efca6 (C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4efca6)
 #1 0x00007ff69a52fca6 
 #2 0x00007ff69a52fca6 (C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe+0x4efca6)
 #3 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x4b5824 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1701b
 #4 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x64d1d1 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6546f3
 #5 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6548b6 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1560e8a
 #6 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6ea8c2 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x20303b
 #7 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x203383 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x2039d5
 #8 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0xffd5ff C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x13182e2
 #9 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x22413f3 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1284a60
#10 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x5beb7f C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x60a8f6
#11 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x6576 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x43fa
#12 0x00007ffd8f931881 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x1395 C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe 0x14c8
#13 0x00007ffd8f931881 (C:\WINDOWS\System32\ucrtbase.dll+0x71881)
#14 0x00007ffd8f932851 (C:\WINDOWS\System32\ucrtbase.dll+0x72851)
0x00007FF69A52FCA6 (0x0000A674FE6FA24F 0x00000050F95FB7F4 0x0000000000000016 0x00007FF69A52FCA0)
0x00007FFD8F931881 (0x00007FF69DFD2701 0x0000005000000000 0x0000000000000000 0x00000050F95FB890), raise() + 0x1E1 bytes(s)
0x00007FFD8F932851 (0x0000021500000003 0x00007FF600000003 0x00000050F95FB8B0 0x0000000000000007), abort() + 0x31 bytes(s)
0x00007FF69A4F5824 (0x0000000000000080 0x000002156D4F1588 0x0000021500000000 0x000002154E3F0F00)
0x00007FF69A05701B (0x0000000000000028 0x0000021555DF5C50 0x0000000000000000 0x0000000000000000)
0x00007FF69A68D1D1 (0x00000215591174E8 0x00007FF69A68D80A 0x00000050F95FBA70 0x00007FFD8F8CF05B)
0x00007FF69A6946F3 (0x0000000000000000 0x0000000000000028 0x000002155B926670 0x00007FF69C490000)
0x00007FF69A6948B6 (0x00000000000083A2 0x0000000000000000 0x00000000000083A2 0x00000215F40803FF)
0x00007FF69B5A0E8A (0x000002156EF18960 0x0000000000800000 0x00000050F95FC380 0x0000021545000441)
0x00007FF69A72A8C2 (0x0000000000000000 0x0000000000000008 0x00007FF69DFD6014 0x00007FF69A240683)
0x00007FF69A24303B (0x0000000000000000 0x0000000000000000 0x00007FF69DFD6014 0x0000021550F02478)
0x00007FF69A243383 (0x0000001000000000 0x0000021500000000 0x0000021551C3F100 0x00007FF600000028)
0x00007FF69A2439D5 (0x0000000000000050 0x000002154E3F0000 0x000002154E3F02B4 0x00007FF69A659BE7)
0x00007FF69B03D5FF (0x00000050F95FD878 0x00000050F95FD7B0 0x00000050F95FD878 0x0000021552093498)
0x00007FF69B3582E2 (0x00000050F95FD9A8 0x00007FF69A5FC77A 0x000002154E2D3C00 0x000000000000006C)
0x00007FF69C2813F3 (0x00007FF69D8FF16B 0x000000000000001A 0x00007FF69D8FF16B 0x000000000000001A)
0x00007FF69B2C4A60 (0x000002154E2A2EE0 0x000002154E22CA20 0x000002154E231980 0x00007FF69A6495CA)
0x00007FF69A5FEB7F (0x00007FF69D87296A 0x0000000000000000 0x000002154E269301 0x000000000000009E)
0x00007FF69A64A8F6 (0x000000000000026B 0x000000000000026B 0x000000000000026B 0x000002154E220000)
0x00007FF69A046576 (0x00000050F95FE550 0x00000050F95FE2C0 0x00000050F95FE2F0 0x000002154E225090)
0x00007FF69A0443FA (0x0000000000000081 0x0000000000000000 0x00007FFD91F0B0B0 0x0000000000000000)
0x00007FF69A041395 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF69A0414C8 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFD91F07344 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFD921E26B1 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Android (6454773 based on r365631c2) clang version 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f) (based on LLVM 9.0.8svn)
Target: aarch64-unknown-linux-android22
Thread model: posix
InstalledDir: C:/Program Files/Unity/Hub/Editor/2021.3.15f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/windows-x86_64/bin
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.
clang++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++: note: diagnostic msg: C:\Users\pc\AppData\Local\Temp\Assembly-CSharp-firstpass-1b4d94.cpp
clang++: note: diagnostic msg: C:\Users\pc\AppData\Local\Temp\Assembly-CSharp-firstpass-1b4d94.sh
clang++: note: diagnostic msg: 

********************
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Upstream bug

No response

Commit to cherry-pick

No response

Affected versions

Canary

Canary version

I'm not sure which ndk version i used it is inbuilt 2021.2.15f1's NDK. -> Pkg.Desc = Android. -> NDK Pkg.Revision = 21.3.6528147

Host OS

Windows

Host OS version

10

Affected ABIs

arm64-v8a

@PvR33 PvR33 added the bug label Sep 18, 2023
@appujee
Copy link
Collaborator

appujee commented Sep 18, 2023

can you share the preprocessed file (using --save-temps) that caused the error?

@appujee
Copy link
Collaborator

appujee commented Sep 18, 2023

this version of ndk isn't supported anymore. please reopen if it occurs with with r26 (https://developer.android.com/ndk/downloads)

@appujee appujee closed this as completed Sep 18, 2023
@enh-google
Copy link
Collaborator

LLVM ERROR: out of memory

(and the issue here might be as simple as what it's claiming :-) )

@DanAlbert
Copy link
Member

r26 will not be out until tomorrow...

Correct though. There will not be more releases of r25. Try again with r26 when it's available (or try the release candidate today if you want to know sooner).

@DanAlbert DanAlbert closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2023
@DanAlbert
Copy link
Member

If it does still repro with r26, and it's the a trivial OOM like the error message says, we need the things the template and the error message asked for:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: ...

@PvR33
Copy link
Author

PvR33 commented Sep 19, 2023

If it does still repro with r26, and it's the a trivial OOM like the error message says, we need the things the template and the error message asked for:

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: ...

those file are unspported when i try to upload it.

@PvR33
Copy link
Author

PvR33 commented Sep 19, 2023

this version of ndk isn't supported anymore. please reopen if it occurs with with r26 (https://developer.android.com/ndk/downloads)
Unity Says This NDK are not supported!!

@pirama-arumuga-nainar
Copy link
Collaborator

those file are unspported when i try to upload it.

Github allows zip files - Just compress the two files into a .zip.

@PvR33
Copy link
Author

PvR33 commented Sep 19, 2023

LLVM ERROR: out of memory

(and the issue here might be as simple as what it's claiming :-) )

do you have any solution for that?!

@PvR33
Copy link
Author

PvR33 commented Sep 19, 2023

those file are unspported when i try to upload it.

Github allows zip files - Just compress the two files into a .zip.

ok

@PvR33
Copy link
Author

PvR33 commented Sep 19, 2023

those file are unspported when i try to upload it.

Github allows zip files - Just compress the two files into a .zip.

Temp.zip

@appujee
Copy link
Collaborator

appujee commented Sep 19, 2023

Do you mind providing preprocessed files (pass --save-temps to the compiler and it will generate a .ii file) . The .cpp file was generated with -frewrite-includes, some macros are still not working on my linux machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants