Search Issue Tracker
In Progress
Fix In Review for 6000.0.50f1, 6000.1.5f1
Fixed in 6000.2.0b2
Votes
0
Found in
2022.3.62f1
6000.0.48f1
6000.1.2f1
6000.2.0a10
Issue ID
UUM-104687
Regression
No
“ArgumentOutOfRangeException: Length cannot be less than zero.“ error or “NullReferenceException: Object reference not set to an instance of an object“ error is thrown when CoreUnsafeUtils.FixedBufferStringQueue reads out of bounds
Reproduction steps:
1. Open the attached “repro_IN-99424“ project
2. Enter the “Assets/OutdoorsScene.unity“ Scene
3. In the Editor menu, select “Test → Run“
4. Observe the Console
Expected result: No errors appear in the Console
Actual result: “ArgumentOutOfRangeException: Length cannot be less than zero.“ error or “NullReferenceException: Object reference not set to an instance of an object“ error is thrown in the Console
Reproducible with: 2022.3.62f1, 6000.0.48f1, 6000.1.2f1, 6000.2.0a10
Couldn’t test with: 2022.1.0a1-2022.2.0a1 - Crashes on winutils::ExternalCrashHandler::HandleCrash when launching the project
Reproducible on: Windows 10 (22H2), macOS Sequoia 15.3 (M2 Ultra)
Not reproducible on: No other environments tested
Notes:
* There’s a small possibility that after doing the 3rd step, the Editor will crash on memcpy (the reporter was able to reproduce this crash on 6000.0.46f1; CQA was only able to reproduce this crash on 6000.2.0a10)
* “ArgumentOutOfRangeException: Length cannot be less than zero.“ error appears on 2022.3.61f1, 6000.1.2f1 (first “Test → Run”), and 6000.2.0a10
* “NullReferenceException: Object reference not set to an instance of an object“ error appears on 6000.0.48f1 and on 6000.1.2f1 (from the second and ongoing “Test → Run“)
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
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
Resolution Note (fix version 6000.2.0b2):
Thank you for the detailed analysis and sample code to trigger the issue! This will be fixed.