Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2020.2.X
Votes
0
Found in
2018.4
2019.3.10f1
2020.2
Issue ID
1262850
Regression
No
[Collections] Obsolete ArgumentOutOfRangeException errors are thrown when creating NativeArray of size int.MaxValue
Reproduction steps:
1. Open the attached project ("NativeArrays.zip")
2. Open the repro scene ("SampleScene")
3. Enter Play Mode
4. Inspect Console
Expected result: No errors are thrown
Actual result: "ArgumentOutOfRangeException: Length * sizeof(T) cannot exceed 2147483647 bytes" error is thrown, even though "long" values are already supported
Reproducible with: 2018.4.25f1, 2019.4.5f1, 2020.1.0f1, 2020.2.0a18
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0a6
Resolution Note (fix version 2020.2):
Fixed in 2020.2.3f1