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
- Animator Controller throws MissingReferenceException after undoing Layer Creation
- Full stack trace is always printed when an exception occurs in an IL2CPP build
- Licensing Client fails to launch when opening Unity Hub (licensing client path is not found)
- Licensing Client fails to launch when opening Unity Hub
- Different custom Shader behavior when GPU Resident Drawer is enabled
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;