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
- Errors are logged when importing an asset at a path with Firebase
- Entering too big of a number in 2D Renderer Lightmode Tags freezes the Editor
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
Resolution Note:
The error is correct. In user's code we can see the data size is bigger than the buffer size.