Hello,
I think got a bug in the samples, that I actually found in one of my projects too (I went back to the samples, and noticed the bug was there too). It is quite annoying when using Mesh deformations.
To reproduce :
Open any of the mesh Deformations demo scene (“mesh Deformations” or “SkinnedCharacter”).
Find a shaderGraph in project and open it (I took one from material overrides, for instance).
Two (or four depending of the scene) errors pop in the console and keep appearing at a scaring pace (you quickly get 2k Collapsed errors after a few seconds).
The only way to stop them is to leave the scene to a non deformation one. Enter the scene again and the errors re-pop. And in the Skinned Character scene, the meshes are bugged. And the only way to have the scenes back to normal is to close the samples and reopen them.
AssertionException: Assertion failure. Value was True
Expected: False
UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) (at <d8312cdadbc04553bb2b6d38bb19d383>:0)
UnityEngine.Assertions.Assert.IsFalse (System.Boolean condition, System.String message) (at <d8312cdadbc04553bb2b6d38bb19d383>:0)
UnityEngine.Assertions.Assert.IsFalse (System.Boolean condition) (at <d8312cdadbc04553bb2b6d38bb19d383>:0)
Unity.Assertions.Assert.IsFalse (System.Boolean condition) (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/Stubs/Unity.Assertions/Assert.cs:51)
Unity.Rendering.FencedBufferPool.RecoverBuffers () (at Library/PackageCache/com.unity.entities.graphics@1.0.0-exp.8/Unity.Entities.Graphics/Deformations/BufferManagers/FencedBufferPool.cs:107)
Unity.Rendering.FencedBufferPool.BeginFrame () (at Library/PackageCache/com.unity.entities.graphics@1.0.0-exp.8/Unity.Entities.Graphics/Deformations/BufferManagers/FencedBufferPool.cs:48)
Unity.Rendering.SkinningBufferManager.LockSkinMatrixBufferForWrite (System.Int32 count) (at Library/PackageCache/com.unity.entities.graphics@1.0.0-exp.8/Unity.Entities.Graphics/Deformations/BufferManagers/SkinningBufferManager.cs:56)
Unity.Rendering.PushSkinMatrixSystem.OnUpdate () (at Library/PackageCache/com.unity.entities.graphics@1.0.0-exp.8/Unity.Entities.Graphics/Deformations/Systems/PushSkinMatrixSystem.cs:61)
Unity.Entities.SystemBase.Update () (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/ComponentSystemGroup.cs:670)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/Stubs/Unity/Debug.cs:19)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/ComponentSystemGroup.cs:675)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/ComponentSystemGroup.cs:628)
Unity.Entities.SystemBase:Update() (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/SystemBase.cs:406)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/ComponentSystemGroup.cs:670)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/ComponentSystemGroup.cs:628)
Unity.Entities.SystemBase:Update() (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/SystemBase.cs:406)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Entities/ScriptBehaviourUpdateOrder.cs:526)