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
- Crash on JobQueue::HasJobGroupIDCompleted when closing the Editor while in Play mode on a specific project
- In "Preferences" section the “SpriteShape” menu item, the details page title “SpriteShape”, and “ControlPoint” entries are displayed as code strings rather than formatted UI strings
- Errors thrown constantly when Virtual Offset Debug is enabled and lighting was baked on AMD machine
- Persistent Memory Leak when reloading domain and using Distance-based Ghost Importance
- HDRP project doesn't render in standalone player when using High stripping
Resolution Note:
The error is correct. In user's code we can see the data size is bigger than the buffer size.