Search Issue Tracker
Active
Under Consideration for 2023.2.X
Won't Fix in 2021.3.X, 2022.3.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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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 (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;