Reproduction steps:
1. Open the attached “ReproCrash” project
Expected result: The project opens
Actual result: Editor crashes
Reproducible with: 2021.3.29f1, 2022.3.6f1, 2023.1.6f1, 2023.2.0b2
Reproducible on: macOS 13.4.1 (c) (M1 Max), Windows 10
Note: On Windows the crash is silent
First few lines of stack trace:
#0 0x0000019799c724 in __pthread_kill
#1 0xb2278001978e1ae8 in abort
#2 0x81778002a6fd10d0 in ves_icall_System_Environment_FailFast
#3 0x000002a6fd66dc in ves_icall_System_Environment_GetCommandLineArgs_raw
#4 0x000002ae68f690 in (wrapper managed-to-native) System.Environment:FailFast (string,System.Exception,string) [
{0x12203f1a8}
+ 0x70] (0x2ae68f620 0x2ae68f6e4) [0x130dc2a80 - Unity Child Domain]
#5 0x000002ae68f5c4 in System.Environment:FailFast (string) [
{0x131e5c430}
+ 0x1c] (0x2ae68f5a8 0x2ae68f5d0) [0x130dc2a80 - Unity Child Domain]