Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGE2で生成したAnimator Controllerを結合しようとするとIndexOutOfRangeExceptionがでる #5

Open
Narazaka opened this issue May 21, 2022 · 0 comments

Comments

@Narazaka
Copy link
Contributor

Narazaka commented May 21, 2022

Combo Gesture Expressions 2.0 系で作ったAnimator ControllerをAnimatorControllerCombinerで結合しようとするとIndexOutOfRangeExceptionがでます。
デフォルトステートが見つからない?っぽいエラーに思いますが詳細分からずでした。
なおCGE2で作ったAnimator Controllerのこけているレイヤーは謎矢印があったりややトリッキーにも見えます。
image

サンプルとしてこのanimator controllerでこけます
New Animator Controller.zip

IndexOutOfRangeException: Index was outside the bounds of the array.
Gatosyocora.VRCAvatars3Tools.Utilitys.AnimatorControllerUtility.DuplicateStateMachine (UnityEditor.Animations.AnimatorStateMachine srcStateMachine) (at Assets/VRCAvatars3Tools/Utilitys/Editor/AnimatorControllerUtility.cs:136)
Gatosyocora.VRCAvatars3Tools.Utilitys.AnimatorControllerUtility+<>c.<DuplicateStateMachine>b__4_0 (UnityEditor.Animations.ChildAnimatorStateMachine cs) (at Assets/VRCAvatars3Tools/Utilitys/Editor/AnimatorControllerUtility.cs:113)
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)
Gatosyocora.VRCAvatars3Tools.Utilitys.AnimatorControllerUtility.DuplicateStateMachine (UnityEditor.Animations.AnimatorStateMachine srcStateMachine) (at Assets/VRCAvatars3Tools/Utilitys/Editor/AnimatorControllerUtility.cs:103)
Gatosyocora.VRCAvatars3Tools.Utilitys.AnimatorControllerUtility+<>c.<DuplicateStateMachine>b__4_0 (UnityEditor.Animations.ChildAnimatorStateMachine cs) (at Assets/VRCAvatars3Tools/Utilitys/Editor/AnimatorControllerUtility.cs:113)
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)
Gatosyocora.VRCAvatars3Tools.Utilitys.AnimatorControllerUtility.DuplicateStateMachine (UnityEditor.Animations.AnimatorStateMachine srcStateMachine) (at Assets/VRCAvatars3Tools/Utilitys/Editor/AnimatorControllerUtility.cs:103)
Gatosyocora.VRCAvatars3Tools.Utilitys.AnimatorControllerUtility.DuplicateLayer (UnityEditor.Animations.AnimatorControllerLayer srcLayer, System.String dstLayerName, System.Boolean firstLayer) (at Assets/VRCAvatars3Tools/Utilitys/Editor/AnimatorControllerUtility.cs:77)
Gatosyocora.VRCAvatars3Tools.Utilitys.AnimatorControllerUtility.AddLayer (UnityEditor.Animations.AnimatorController controller, UnityEditor.Animations.AnimatorControllerLayer srcLayer, System.Boolean setWeightTo1, System.String controllerPath) (at Assets/VRCAvatars3Tools/Utilitys/Editor/AnimatorControllerUtility.cs:42)
Gatosyocora.VRCAvatars3Tools.AnimatorControllerCombiner.OnGUI () (at Assets/VRCAvatars3Tools/AnimatorControllerCombiner/Editor/AnimatorControllerCombiner.cs:142)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <eae584ce26bc40229c1b1aa476bfa589>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <a259d3c004024353a2c217da97495055>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <a259d3c004024353a2c217da97495055>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <a259d3c004024353a2c217da97495055>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <a259d3c004024353a2c217da97495055>:0)
UnityEditor.DockArea.OldOnGUI () (at <a259d3c004024353a2c217da97495055>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <b6a7e1825c0b45d3b0729282e86cc687>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <344226e341014466b33f0c0fa34fcef5>:0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants