Reproduction steps:
1. Create new or open any project
2. Attach “NewBehaviourScript.cs” to any GameObject in the scene
3. Enter the Play mode
Expected result: Editor doesn’t crash
Actual result: Editor crashes
Reproducible with: 2020.3.40f1, 2021.3.11f1, 2022.1.20f1, 2022.2.0b10, 2023.1.0a14
Reproduced on: Windows 10
First lines of the stack trace:
0x00007ff7c50c07d0 (Unity) CachedReader::Read
0x00007ff7c53b0616 (Unity) StreamedBinaryRead::Transfer<dynamic_array<double,0> >
0x00007ff7c53e1c70 (Unity) Transfer_Blittable_ArrayField<StreamedBinaryRead,double>
0x00007ff7c53c7220 (Unity) TransferField_LinearCollection<SafeBinaryRead>
Note: A large array of doubles usually means 50millions+ entries, couldn’t determine the exact array size to crash the editor consistently. Sometimes the editor will crash on recompiling the script containing a large array, for example when editing the script. If the issue is not reproducible, enter the Play mode until the Editor crashes
Note2: Unity currently only supports array < 2GB.