Quaternion.ToAngleAxis Broken
complete
error.mdl
The Quaternion.ToAngleAxis node always throws an error if it is present in the nodegraph, even if its outputs aren't used in anything.
[UdonBehaviour] VRC.Udon.VM.UdonVMException: The VM encountered an error!
Exception Message:
An exception occurred during EXTERN to 'UnityEngineQuaternion.__ToAngleAxis__SystemSingleRef_UnityEngineVector3Ref__SystemVoid'.
Cannot retrieve heap variable of type 'Vector3' as type 'Single'
----------------------
Program Counter was at: 26
----------------------
Stack Dump:
----------------------
Heap Dump:
84: (0.0, 0.0, 0.0, 0.0)
85: (0.0, 0.0, 0.0, 0.0)
86: (0.0, 0.0, 0.0)
87: 0
88: UnityEngineQuaternion.__ToAngleAxis__SystemSingleRef_UnityEngineVector3Ref__SystemVoid
----------------------
Inner Exception:
---> VRC.Udon.VM.UdonVMException: An exception occurred during EXTERN to 'UnityEngineQuaternion.__ToAngleAxis__SystemSingleRef_UnityEngineVector3Ref__SystemVoid'. ---> VRC.Udon.Common.Exceptions.HeapTypeMismatchException: Cannot retrieve heap variable of type 'Vector3' as type 'Single'
at VRC.Udon.Common.UdonHeap.GetHeapVariable[T] (System.UInt32 address) [0x00063] in C:\VRChatGit\UdonVM\Udon\Common\Source\Heap\UdonHeap.cs:159
at VRC.Udon.Wrapper.Modules.ExternUnityEngineQuaternion.__ToAngleAxis__SystemSingleRef_UnityEngineVector3Ref__SystemVoid (VRC.Udon.Common.Interfaces.IUdonHeap heap, System.UInt32[] parameterAddresses) [0x0000a] in C:\VRChatGit\UdonVM\Udon\Wrapper\Source\Modules\UnityEngine\ExternUnityEngineQuaternion.cs:622
at VRC.Udon.VM.UdonVM.Interpret () [0x0027a] in C:\VRChatGit\UdonVM\Udon\VM\Source\UdonVM.cs:224
--- End of inner exception stack trace ---
at VRC.Udon.VM.UdonVM.Interpret () [0x00292] in C:\VRChatGit\UdonVM\Udon\VM\Source\UdonVM.cs:228
--- End of inner exception stack trace ---
at VRC.Udon.VM.UdonVM.Interpret () [0x00346] in C:\VRChatGit\UdonVM\Udon\VM\Source\UdonVM.cs:263
at VRC.Udon.UdonBehaviour.RunProgram (System.UInt32 entryPoint) [0x0001b] in H:\tools\Unity\projects\Udon Test\Assets\Udon\UdonBehaviour.cs:1837
Log In
Momo the Monster
complete
jzody
Same problem with a different method; WheelCollider.GetWorldPose.
Is this a problem with all methods with an out variable?
naqtn
With VRCSDK3-UDON-2020.04.17.11.43, out parameters moved to input side from output side, and assembly error disappears. But it still doesn't work. (Second image is previous SDK VRCSDK3-UDON-2020.04.09.16.59 )
Merlin
It appears that this is still an issue from the side of the wrapper/VM. The function will call, but the output values will not be applied correctly to the heap addresses you pass in.
PhaxeNor
Fixed in UDONSDK-2020.02.23.14.05_Public according to changelog
error.mdl
I now get a new error with the latest sdk. The output angle of the quaternion appears to be a vector3 instead of a float.
CubedParadox
interested