Search Issue Tracker
Won't Fix
Won't Fix in 2021.3.X, 2022.3.X, 2023.2.X, 2023.3.X
Votes
0
Found in
2020.3.48f1
2021.3.26f1
2022.3.1f1
2023.1.0b19
2023.2.0a17
2023.3.0a3
Issue ID
UUM-37725
Regression
No
“InvalidOperationException: Not enough space in output buffer (need 24, has 0)” error is thrown when using NativeList.GetVertices()
Reproduction steps:
1. Open the attached “ASDQWE” project
2. Open the “Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode
Expected result: No error is thrown
Actual result: “InvalidOperationException: Not enough space in output buffer (need 24, has 0)” error is thrown
Reproducible with: 2020.3.48f1, 2021.3.26f1, 2022.3.1f1, 2023.1.0b19, 2023.2.0a17
Reproducible on: Intel MacOS 13.3.1
Note: The issue is not reproducible when using NativeArray.GetVertices()
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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
Resolution Note:
There are no fixes planned for this Bug
Resolution Note (2023.3.X):
User code is wrong...
Creating NativeList with initial capacity, but length of NativeList by default is 0. User needs to set Length before using it...
newVertices = new NativeList<Vector3>(data.vertexCount, Allocator.Persistent);
newVertices.Length = data.vertexCount;
Resolution Note (2023.2.X):
User code is wrong...
Creating NativeList with initial capacity, but length of NativeList by default is 0. User needs to set Length before using it...
newVertices = new NativeList<Vector3>(data.vertexCount, Allocator.Persistent);
newVertices.Length = data.vertexCount;
Resolution Note (2022.3.X):
User code is wrong...
Creating NativeList with initial capacity, but length of NativeList by default is 0. User needs to set Length before using it...
newVertices = new NativeList<Vector3>(data.vertexCount, Allocator.Persistent);
newVertices.Length = data.vertexCount;
Resolution Note (2021.3.X):
User code is wrong...
Creating NativeList with initial capacity, but length of NativeList by default is 0. User needs to set Length before using it...
newVertices = new NativeList<Vector3>(data.vertexCount, Allocator.Persistent);
newVertices.Length = data.vertexCount;