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
- Warnings in the Bug Reporter window are cut off and not truncated when the Bug Reporter window is resized to its minimum size
- Color is incorrectly applied to objects when initialized with non-normalized parameters
- SerializationUtility.GetManagedReferencesWithMissingTypes() don't return null when “Prefab has missing SerializeReference Types“ warning banner is present
- Memory leak when VFX Graph is open and Camera has "Target Texture" enabled
- The Canvas component's warning box is missing an apostrophe when Additional Shader Channels is set to "Normal" and "Tangent" with Render Mode set to "Screen Space - Overlay"
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;