Search Issue Tracker
Won't Fix
Votes
0
Found in
5.2.1p1
Issue ID
731020
Regression
No
Editor crashes with a very long multidimensional array
If there is a script that has a very long multidimensional array, Editor crashes on starting the play mode.
For example, the attached project has a long two-dimensional array, which looks like the following:
string [,] test = {
{“x”, “y”, “z”, “w”},
{“x”, “y”, “z”, “w”},
{“x”, “y”, “z”, “w”},
(repeat 4,000 times)
};
Although the system has enough amount of memory for storing the array, it crashes immediately.
Update: This code evaluates down to a large single method doing each string allocation then storing it into the array. The mono JIT generates a method using a fairly large amount of stack space, but with the IL2CPP backend it crashes on the PreLoad thread since it has a 512k stack. Just bumping the stack would likely hide the issue, but it will eventually crash when the method gets even larger.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Add comment