Search Issue Tracker
Fixed in 12.0.0
Votes
0
Found in [Package]
11.0.0
Issue ID
1307068
Regression
No
[VFX Graph] 'VFXExpressionInverseTRSMatrix used on a not TRS Matrix' exception is thrown when Sample SDF's Size is set to 0
How to reproduce:
1. Create a new HDRP/URP project
2. Import the attached 'Exception.unitypackage' package
3. Open SDFBaker Visual Effect Graph from Exception folder
4. Change any Size (X, Y or Z) value from 5 to 0 of Sample SDF node
Expected result: No errors are thrown to the Console
Actual result: 'InvalidOperationException: VFXExpressionInverseTRSMatrix used on a not TRS Matrix' exception is thrown to the Console
Reproducible with: 2021.2.0a2(11.0.0)
Note:
Error message: 'InvalidOperationException: VFXExpressionInverseTRSMatrix used on a not TRS Matrix
UnityEditor.VFX.VFXExpressionInverseTRSMatrix.Evaluate (UnityEditor.VFX.VFXExpression[] constParents) (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionTransform.cs:212)
UnityEditor.VFX.VFXExpression+Context.Compile (UnityEditor.VFX.VFXExpression expression) (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:162)
UnityEditor.VFX.VFXExpression+Context+<>c__DisplayClass9_0.<Compile>b__0 (UnityEditor.VFX.VFXExpression e) (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:154)
System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
UnityEditor.VFX.VFXExpression+Context.Compile (UnityEditor.VFX.VFXExpression expression) (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:152)
UnityEditor.VFX.VFXExpression+Context+<>c__DisplayClass9_0.<Compile>b__0 (UnityEditor.VFX.VFXExpression e) (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:154)
System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
UnityEditor.VFX.VFXExpression+Context.Compile (UnityEditor.VFX.VFXExpression expression) (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:152)
UnityEditor.VFX.VFXExpression+Context+<>c__DisplayClass9_0.<Compile>b__0 (UnityEditor.VFX.VFXExpression e) (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:154)
System.Linq.Enumerable+SelectArrayIterator`2[TSource,TResult].ToArray () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
UnityEditor.VFX.VFXExpression+Context.Compile (UnityEditor.VFX.VFXExpression expression) (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:152)
UnityEditor.VFX.VFXExpression+Context.Compile () (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:63)
UnityEditor.VFX.VFXExpression+Context.Recompile () (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/Expressions/VFXExpressionContext.cs:82)
UnityEditor.VFX.UI.VFXViewController.RecompileExpressionGraphIfNeeded () (at Library/PackageCache/com.unity.visualeffectgraph@11.0.0/Editor/GraphView/Views/Controller/VFXViewControllerExpressions.cs:33)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()'
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
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
- Previously deleted “DefaultLookDevProfile“ is present when upgrading the Editor version
- [Ubuntu] UI text and buttons are missing spaces in Unity Version Control > New Workspace window
- "Inherit attribute is not supported" warning is shown but attributes are available in VFX Graph Output and Update blocks
Resolution Note (fix version 12.0.0):
Postpone until Ludovic is back