Search Issue Tracker

By Design

Votes

0

Found in [Package]

7.0.1

Issue ID

1178298

Regression

No

[Visual Effect Graph] System.InvalidOperationException error is thrown on adding Node to Sub Mesh Mask in Static Mesh

Package: Visual Effect Graph

-

System.InvalidOperationException error is thrown while compiling expression graph on adding Node to Sub Mesh Mask in Static Mesh.

Steps to repro:
1. Create a new project.
2. Windows > Package Manager > Visual Effects Graph > Install.
3. Packages > Visual Effect Graph > Editor > Templates > Open Simple Static Mesh.
4. Add Node to Sub Mesh Mask by dragging from the input node.
5. Operator > Attribute > Age over LifeTime.

Actual Result:
Error is thrown in the console.

Expected Result:
No Error in the console.

Reproducible in:
2019.3.0a12, 2019.3.0a10.

NOTE:
1. Visual Effects is introduced in 2019.3.0a10.
2. Could not test on Mac due to https://fogbugz.unity3d.com/f/cases/1174796/

Environment:
Only on Windows.

Stack trace:
Simple Static Mesh : Exception while compiling expression graph: System.InvalidOperationException: Expression for slot subMeshMask must be evaluable on CPU: UnityEditor.VFX.VFXExpressionCastFloatToUint
at UnityEditor.VFX.VFXStaticMeshOutput.GetExpressionMapper (UnityEditor.VFX.VFXDeviceTarget target) [0x000dc] in F:\Suresh\New Unity Project (9)\Library\PackageCache\com.unity.visualeffectgraph@7.0.1\Editor\Models\Contexts\Implementations\VFXStaticMeshOutput.cs:167
at UnityEditor.VFX.VFXData.CollectAttributes () [0x002ac] in F:\Suresh\New Unity Project (9)\Library\PackageCache\com.unity.visualeffectgraph@7.0.1\Editor\Data\VFXData.cs:322
at UnityEditor.VFX.VFXGraphCompiledData.Compile (UnityEditor.VFX.VFXCompilationMode compilationMode, System.Boolean forceShaderValidation) [0x001c8] in F:\Suresh\New Unity Project (9)\Library\PackageCache\com.unity.visualeffectgraph@7.0.1\Editor\Compiler\VFXGraphCompiledData.cs:814 : at UnityEditor.VFX.VFXStaticMeshOutput.GetExpressionMapper (UnityEditor.VFX.VFXDeviceTarget target) [0x000dc] in F:\Suresh\New Unity Project (9)\Library\PackageCache\com.unity.visualeffectgraph@7.0.1\Editor\Models\Contexts\Implementations\VFXStaticMeshOutput.cs:167
at UnityEditor.VFX.VFXData.CollectAttributes () [0x002ac] in F:\Suresh\New Unity Project (9)\Library\PackageCache\com.unity.visualeffectgraph@7.0.1\Editor\Data\VFXData.cs:322
at UnityEditor.VFX.VFXGraphCompiledData.Compile (UnityEditor.VFX.VFXCompilationMode compilationMode, System.Boolean forceShaderValidation) [0x001c8] in F:\Suresh\New Unity Project (9)\Library\PackageCache\com.unity.visualeffectgraph@7.0.1\Editor\Compiler\VFXGraphCompiledData.cs:814
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()[Visual Effect Graph] System.InvalidOperationException error is thrown on adding Node to Sub Mesh Mask in Static Mesh.

  1. Resolution Note:

    This is suppose to throw a compilation error as you can't link a GPU node to a CPU slot. Clearer notification is is the way.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.