Building Library\Bee\artifacts\WebGL\GameAssembly\release_WebGL_wasm\v8zj7mpw72di.o Failed
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Unity Editor 6000.3.12f1, Building Enable Exceptions with Full Stack Trace
Help me with this error, it told me to report the issue here.
This is the stack trace:
```
Stack dump:
0. Program arguments: D:/Unity/6000.3.12f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\\clang++.exe -target wasm32-unknown-emscripten -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=D:\\Unity\\6000.3.12f1\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\Emscripten\\emscripten\\cache\\sysroot -Xclang -iwithsysroot/include\\fakesdl -Xclang -iwithsysroot/include\\compat -Wno-c++11-extensions -Wno-nonportable-include-path -Werror=expansion-to-defined -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++17 -Wno-#warnings -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 -Wno-unknown-warning-option -Wno-undef-prefix -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I. "-ID://Library/Bee/artifacts/WebGL/il2cppOutput/cpp" -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/libil2cpp/pch -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/libil2cpp -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/external/baselib/Include -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/Assembly-CSharp__14.cpp" -o Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/v8zj7mpw72di.o
1. parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/Assembly-CSharp__14.cpp'.
4. Running pass 'Slot index numbering' on function '@TilesSet__cctor_mC555E2FE66D425D7EA521EFB50FB30617D1BC731'
Exception Code: 0xC0000005
#0 0x00007ff6e249237c (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x66237c)
#1 0x00007ff6e246bd27 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x63bd27)
#2 0x00007ff6e26eded3 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x8bded3)
#3 0x00007ff6e26ee0f3 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x8be0f3)
#4 0x00007ff6e26ee324 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x8be324)
#5 0x00007ff6e26edbd0 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x8bdbd0)
#6 0x00007ff6e2cdd902 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0xead902)
#7 0x00007ff6e2cdc97c (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0xeac97c)
#8 0x00007ff6e2cdd1bf (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0xead1bf)
#9 0x00007ff6e527bcb9 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x344bcb9)
#10 0x00007ff6e3e75944 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2045944)
#11 0x00007ff6e334cf37 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x151cf37)
#12 0x00007ff6e527a2c8 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x344a2c8)
#13 0x00007ff6e334ca2b (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x151ca2b)
#14 0x00007ff6e3315c30 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x14e5c30)
#15 0x00007ff6e33b3ad9 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x1583ad9)
#16 0x00007ff6e1eadce0 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x7dce0)
#17 0x00007ff6e1ea7b47 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x77b47)
#18 0x00007ff6e32229f1 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x13f29f1)
#19 0x00007ff6e2a9c9ca (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0xc6c9ca)
#20 0x00007ff6e3223010 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x13f3010)
#21 0x00007ff6e319a4e7 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x136a4e7)
#22 0x00007ff6e319a861 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x136a861)
#23 0x00007ff6e317d72b (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x134d72b)
#24 0x00007ff6e1eaab34 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x7ab34)
#25 0x00007ff6e1eb7d74 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x87d74)
#26 0x00007ff6e4cbd3e8 (D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2e8d3e8)
#27 0x00007ff82899e8d7 (C:\WINDOWS\System32\KERNEL32.DLL+0x2e8d7)
#28 0x00007ff829c4c3fc (C:\WINDOWS\SYSTEM32\ntdll.dll+0x8c3fc)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 17.0.0 (https://github-com-cache.bf.unity3d.com/Unity-Technologies/llvm-project 7c3f21cd3094c188678906d0459cda3b715e1963)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm
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\MSI-PC\AppData\Local\Temp\Assembly-CSharp__14-beb598.cpp
clang++: note: diagnostic msg: C:\Users\MSI-PC\AppData\Local\Temp\Assembly-CSharp__14-beb598.sh
clang++: note: diagnostic msg:
[Assembly-CSharp__14-beb598.sh](https://github.com/user-attachments/files/27158389/Assembly-CSharp__14-beb598.sh)
********************
emcc: error: 'D:/Unity/6000.3.12f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\clang++.exe -target wasm32-unknown-emscripten -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -DEMSCRIPTEN --sysroot=D:\Unity\6000.3.12f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot -Xclang -iwithsysroot/include\fakesdl -Xclang -iwithsysroot/include\compat -Wno-c++11-extensions -Wno-nonportable-include-path -Werror=expansion-to-defined -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++17 -Wno-#warnings -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 -Wno-unknown-warning-option -Wno-undef-prefix -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I. "-ID://Library/Bee/artifacts/WebGL/il2cppOutput/cpp" -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/libil2cpp/pch -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/libil2cpp -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/external/baselib/Include -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include -ID:/Unity/6000.3.12f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "
/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/Assembly-CSharp__14.cpp" -o Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/v8zj7mpw72di.o' failed (returned 1)
UnityEditor.EditorApplication:Internal_CallDelayFunctions ()
```
Contributor guide
Research direction
Start with the attached Assembly-CSharp__14-beb598.sh script and preprocessed Assembly-CSharp__14-beb598.cpp, then reproduce the clang++ crash in the Slot index numbering pass. Focus on the TilesSet__cctor_mC555E2FE66D425D7EA521EFB50FB30617D1BC731 function; done means establishing a minimal reproducible compiler failure and a validated LLVM regression test or confirmed cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, unity, wasm
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100