Reproduction steps:
1. Open the attached user's project
2. Build and run it with IL2CPP
Expected result: The build finishes and launches
Actual result: The build finishes, but crashes during launch
Reproducible with: 2021.2.0b16, 2021.3.3f1
Not reproducible with: 2019.4.39f1, 2020.3.35f1, 2021.2.0b15, 2022.1.0a1, 2022.2.0a15
Reproducible on: macOS 12.3.1 (Intel)
Stacktrace:
#0 GetStacktrace(int)
#1 DebugStringToFile(DebugStringToFileData const&)
#2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
#3 DebugLogHandler_Internal_Log_mCDF82FF0477166C9DDB0ECEDB48EE4BCBBDB4F79
#4 DebugLogHandler_LogFormat_m216B169EF9B669F2ED4C59F6B9F326D4EBBDF821
#5 InterfaceActionInvoker4<int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*, String_t*, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918*>::Invoke(unsigned short, Il2CppClass*, Il2CppObject*, int, Object_tC12DECB6760A7F2CBF65D9DCF18D044C2D97152C*, String_t*, ObjectU5BU5D_t8061030B0A12A55D5AD8652A20C922FE99450918*)