Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a10
2019.1.0a4
Issue ID
1087412
Regression
Yes
ArgumentException: ComputeBuffer.SetData() prevents project upgrade
This is a regression introduced in 2018.3.0a10 and I managed to reproduced this int he current trunk (2019.1.0a4)
Repro steps:
- did Vegetation Studio from the asset store: https://assetstore.unity.com/packages/tools/terrain/vegetation-studio-103389
- open the Demo scene from: Assets\AwesomeTechnologies\VegetationStudioDemo
- click on the VegetationStudio obj in the hierarchy and select "Start Vegetation System"
- notice grass will render in the scene view, if you scroll close enough to the terrain
- press play and notice hte error and that no grass i rendering
Cannot repro with 2018.3.0a9 or older
- reproduced with 2018..30b4 and 2019.1.0a4
Regressed in 2018.3.0a10
On opening trying to upgrade this Asset Store package to the latest Unity Editor, this error prevents it from working (the grass will render int he Editor but not in Play Mode):
ArgumentException: ComputeBuffer.SetData() : Accessing 16384 bytes at offset 0 for Compute Buffer of size 10240 bytes is not possible.
UnityEngine.ComputeBuffer.SetData (System.Array data) (at C:/buildslave/unity/build/Runtime/Export/ComputeShader.bindings.cs:124)
AwesomeTechnologies.VegetationItemIndirectInfo.CreateComputeBuffer (System.Boolean useComputeShaders) (at Assets/AwesomeTechnologies/VegetationStudio/VegetationSystem/VegetationItemIndirectInfo.cs:127)
AwesomeTechnologies.VegetationItemIndirectInfo.UpdateComputeBuffer (System.Boolean useComputeShaders) (at Assets/AwesomeTechnologies/VegetationStudio/VegetationSystem/VegetationItemIndirectInfo.cs:196)
AwesomeTechnologies.VegetationCell.PostProcess (System.Boolean useComputeShaders) (at Assets/AwesomeTechnologies/VegetationStudio/VegetationSystem/VegetationCell.cs:245)
AwesomeTechnologies.VegetationSystem.Preprocess () (at Assets/AwesomeTechnologies/VegetationStudio/VegetationSystem/VegetationSystem_VegetationLoader.cs:89)
AwesomeTechnologies.VegetationSystem.UpdateVegetationInstanceLists () (at Assets/AwesomeTechnologies/VegetationStudio/VegetationSystem/VegetationSystem_VegetationLoader.cs:95)
AwesomeTechnologies.VegetationSystem.ExecuteRenderVegetation (System.Boolean forceRender) (at Assets/AwesomeTechnologies/VegetationStudio/VegetationSystem/VegetationSystem.cs:1835)
AwesomeTechnologies.VegetationSystem.Update () (at Assets/AwesomeTechnologies/VegetationStudio/VegetationSystem/VegetationSystem.cs:1732)
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
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
- WebRequest.Create() function fails with "URI prefix is not recognized" errors when the project is built for Linux Standalone or Windows Dedicated Server
Resolution Note:
The error is correct. In user's code we can see the data size is bigger than the buffer size.