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
- “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:
The error is correct. In user's code we can see the data size is bigger than the buffer size.