Search Issue Tracker

Fixed in 6.9.X

Votes

0

Found in [Package]

7.0.0

Issue ID

1163483

Regression

No

[SubGraphs] Certain parameters throw 'unexpected type' exceptions when used in subgraphs.

Package: Visual Effect Graph

-

Repro steps:
1. Import the attached package
2. Open the ParamterIssue.vfx and/or the ParameterSubGraphIssue subgraph
3. Observe the console errors:

'Exception: Unexpected type of expression UnityEditor.VFX.VFXExpressionTRSToMatrixvalueTypeMatrix4x4'

Note:
- the affected parameters are: Camera, Oriented box, and Transform
- adding a Texture2DArray to blackboard in the repro case throws additional errors:
Trying to get the value from expressions threw.Unexpected type of expression UnityEditor.VFX.VFXTexture2DValue In anchor : b from node :Multiply (Vector3)
(this is odd, because the Texture2DArray is at this point not connected to anything)

- while switching between the vfx and the subgraph, got a crash once. Couldn't repro, adding for thoroughness:

========== OUTPUTTING STACK TRACE ==================

0x00007FF7855768E7 (Unity) VFXMemorySerializer::StoreObjects
0x00007FF785576B7A (Unity) VFXMemorySerializerBindings::StoreObjectsToByteArray
0x00007FF785727CFB (Unity) VFXMemorySerializer_CUSTOM_StoreObjectsToByteArray
0x0000019E0FA474C7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.Experimental.VFX.VFXMemorySerializer:StoreObjectsToByteArray (UnityEngine.ScriptableObject[],UnityEngine.CompressionLevel)
0x0000019E0FA478E8 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_object_object_int (object,intptr,intptr,intptr)
0x00007FFBE0F4C11B (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\mini\mini-runtime.c:2809] mono_jit_runtime_invoke
0x00007FFBE0ED2282 (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\metadata\object.c:2921] do_runtime_invoke
0x00007FFBE0EDB452 (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\metadata\object.c:3073] mono_runtime_invoke_checked
0x00007FFBE0EDBBE9 (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\metadata\object.c:5264] mono_runtime_try_invoke_array
0x00007FFBE0EDB3E6 (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\metadata\object.c:5142] mono_runtime_invoke_array_checked
0x00007FFBE0E80284 (mono-2.0-bdwgc) [c:\users\builduser\builds\tsuywz8z\0\vm\mono\mono\metadata\icall.c:3358] ves_icall_InternalInvoke
0x0000019DDCE0F026 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x0000019DDCE0D1EB (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000019DDCE0CEAF (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x0000019E0FA4732B (Mono JIT Code) [C:\Users\vlad\Documents\Projects\VFX\VFX_19.3\SRP\com.unity.visualeffectgraph\Editor\Models\VFXGraph.cs:239] UnityEditor.VFX.VFXGraph/<>c__DisplayClass13_0:<GetStoreObjectsFunction>b__0 (UnityEngine.ScriptableObject[],UnityEngine.CompressionLevel)
0x0000019E0FA4701A (Mono JIT Code) [C:\Users\vlad\Documents\Projects\VFX\VFX_19.3\SRP\com.unity.visualeffectgraph\Editor\Models\VFXGraph.cs:277]

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.