How to reproduce:
1. Open the project "IN_23485"
2. In Assets open the Build folder
3. Select "Empty Build Configuration" or "WindowsClassisBuildConfiguration_il2cpp_SHIP" asset
4. In the Inspector press "Build And Run"
Expected result: build doesn’t crash
Actual result: build crashes
Reproducible with: 2022.2.2f1, 2023.1.0a24
Couldn't test with: 2020.3.43f1, 2021.3.16f1 (due to compiler errors)
Reproducible on: Windows 10 Pro
Note: not reproducible building regularly
First lines of the Stack Trace:
0x00007FFB2437CD29 (KERNELBASE) RaiseException
0x00007FFA380C9A29 (GameAssembly) [C:\Program Files\Unity\2022.2.2f1_0616a2fc8abf_x64\Data\il2cpp\external\mono\mono\eglib\goutput.c:171] monoeg_g_logv_nofree
0x00007FFA380C98C8 (GameAssembly) [C:\Program Files\Unity\2022.2.2f1_0616a2fc8abf_x64\Data\il2cpp\external\mono\mono\eglib\goutput.c:187] monoeg_g_log