Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
Votes
0
Found in
2020.3.40f1
2021.3.11f1
2022.1.20f1
2022.2.0b10
2023.1.0a14
2023.2.0a1
Issue ID
UUM-16889
Regression
No
Editor crashes when a large array of doubles is initialized
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.
Comments (2)
-
jhughes2112
Oct 16, 2023 21:48
Letting you know that this happens on a simple table of System.Numerics.Vector3[32768] as well. It isn't as uncommon as you might think to want a table of data in memory. I get a stack overflow whenever I access that table and it kills the Editor to the desktop.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
Resolution Note:
Thank you for reporting a bug to Unity.
We have reviewed the issue carefully, and in this case the team is unable to prioritize fixing this bug. There are a number of reasons we make this decision, including the impact and severity of the issue across our user and customer base, and the possibility that future plans may solve the problem in a different way, or that a workaround for the bug may be available.
Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.
Resolution Note (2023.2.X):
Thank you for reporting a bug to Unity.
We have reviewed the issue carefully, and in this case the team is unable to prioritize fixing this bug. There are a number of reasons we make this decision, including the impact and severity of the issue across our user and customer base, and the possibility that future plans may solve the problem in a different way, or that a workaround for the bug may be available.
Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.