Reproduction steps:
1. Open the user’s attached project
2. Build And Run
Expected result: The build does not crash
Actual result: The build crashes instantly
Reproducible with: 2021.3.12f1, 2021.3.13f1
Not reproducible with: 2020.3.41f1, 2021.3.11f1, 2022.1.22f1, 2022.2.0b14, 2023.1.0a18
Reproduced on: Windows 10 Pro
Notes:
1. Not reproducible when using Mono Scripting Backend
2. Not reproducible when the “Script Debugging” build setting is toggled off
First few lines of the stack trace:
{{0x00007FFA5171FA34 (GameAssembly) [C:\Program Files\Unity\2021.3.12f1_124a83641d18\Data\il2cpp\libil2cpp\vm\Class.cpp:2242] il2cpp::vm::Class::GetVirtualMethod }}
{{0x00007FFA51691864 (GameAssembly) [C:\Program Files\Unity\2021.3.12f1_124a83641d18\Data\il2cpp\libil2cpp\metadata\GenericMetadata.cpp:289] il2cpp::metadata::GenericMetadata::InflateRGCTXLocked }}
{{0x00007FFA516C4C39 (GameAssembly) [C:\Program Files\Unity\2021.3.12f1_124a83641d18\Data\il2cpp\libil2cpp\metadata\GenericMethod.cpp:322] il2cpp::metadata::GenericMethod::InflateRGCTXLocked }}
{{0x00007FFA516C362B (GameAssembly) [C:\Program Files\Unity\2021.3.12f1_124a83641d18\Data\il2cpp\libil2cpp\metadata\GenericMethod.cpp:251] il2cpp::metadata::GenericMethod::CreateMethodLocked }}
0x00007FFA516C481D (GameAssembly) [C:\Program Files\Unity\2021.3.12f1_124a83641d18\Data\il2cpp\libil2cpp\metadata\GenericMethod.cpp:181] il2cpp::metadata::GenericMethod::GetMethod