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

Generic Avatarでエラー #776

Closed
anatawa12 opened this issue Dec 8, 2023 · 1 comment · Fixed by #779
Closed

Generic Avatarでエラー #776

anatawa12 opened this issue Dec 8, 2023 · 1 comment · Fixed by #779
Labels
bug Something isn't working

Comments

@anatawa12
Copy link
Owner

System.NullReferenceException: Object reference not set to an instance of an object
  at Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorParser.GetControllerAndOverrides (UnityEngine.RuntimeAnimatorController runtimeController) [0x0005d] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Editor/AnimatorParsers/AnimatorParser.cs:537 
  at Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorParser+<>c__DisplayClass13_0.<ParseAnimatorController>b__0 () [0x00001] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Editor/AnimatorParsers/AnimatorParser.cs:436 
  at Anatawa12.AvatarOptimizer.ErrorReporting.BuildReport.ReportingObject[T] (UnityEngine.Object obj, System.Boolean needThrow, System.Func`1[TResult] action) [0x0001f] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Internal/ErrorReporter/Editor/BuildReport.cs:182   at Anatawa12.AvatarOptimizer.ErrorReporting.BuildReport.ReportingObject[T] (UnityEngine.Object obj, System.Boolean needThrow, System.Func`1[TResult] action) [0x00043] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Internal/ErrorReporter/Editor/BuildReport.cs:192 
  at Anatawa12.AvatarOptimizer.ErrorReporting.BuildReport.ReportingObject[T] (UnityEngine.Object obj, System.Func`1[TResult] action) [0x00000] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Internal/ErrorReporter/Editor/BuildReport.cs:175 
  at Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorParser.ParseAnimatorController (UnityEngine.GameObject root, UnityEngine.RuntimeAnimatorController controller, Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorLayerWeightMap`1[TKey] externallyWeightChanged) [0x00023] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Editor/AnimatorParsers/AnimatorParser.cs:434 
  at Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorParser.<CollectAvatarDescriptorModifications>g__MergeLayer|9_0 (VRC.SDK3.Avatars.Components.VRCAvatarDescriptor+AnimLayerType type, System.Boolean alwaysApplied, System.Single defaultWeight, Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorParser+<>c__DisplayClass9_0& ) [0x0002e] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Editor/AnimatorParsers/AnimatorParser.cs:241 
  at Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorParser.CollectAvatarDescriptorModifications (Anatawa12.AvatarOptimizer.AnimatorParsers.ModificationsContainer modificationsContainer, VRC.SDK3.Avatars.Components.VRCAvatarDescriptor descriptor) [0x00193] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Editor/AnimatorParsers/AnimatorParser.cs:250 
  at Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorParser.CollectAvatarRootAnimatorModifications (nadena.dev.ndmf.BuildContext session) [0x00043] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Editor/AnimatorParsers/AnimatorParser.cs:176 
  at Anatawa12.AvatarOptimizer.AnimatorParsers.AnimatorParser.GatherAnimationModifications (nadena.dev.ndmf.BuildContext context) [0x00007] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Editor/AnimatorParsers/AnimatorParser.cs:37 
  at Anatawa12.AvatarOptimizer.Processors.ParseAnimator.Execute (nadena.dev.ndmf.BuildContext context) [0x00008] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/com.anatawa12.avatar-optimizer/Editor/Processors/ParseAnimator.cs:13 
  at nadena.dev.ndmf.Pass`1[T].nadena.dev.ndmf.IPass.Execute (nadena.dev.ndmf.BuildContext context) [0x00001] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Editor/API/Fluent/Pass.cs:64 
  at nadena.dev.ndmf.ConcretePass.Execute (nadena.dev.ndmf.BuildContext context) [0x00001] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Editor/API/Solver/PluginResolver.cs:36 
  at nadena.dev.ndmf.BuildContext.RunPass (nadena.dev.ndmf.ConcretePass pass) [0x000fe] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Editor/API/BuildContext.cs:274 
  at nadena.dev.ndmf.AvatarProcessor.ProcessAvatar (nadena.dev.ndmf.BuildContext buildContext, nadena.dev.ndmf.BuildPhase firstPhase, nadena.dev.ndmf.BuildPhase lastPhase) [0x00083] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Editor/AvatarProcessor.cs:139 
  at nadena.dev.ndmf.AvatarProcessor.ProcessAvatar (UnityEngine.GameObject root) [0x0001e] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Editor/AvatarProcessor.cs:112 
  at nadena.dev.ndmf.ApplyOnPlay.MaybeProcessAvatar (nadena.dev.ndmf.runtime.ApplyOnPlayGlobalActivator+OnDemandSource source, UnityEngine.MonoBehaviour component) [0x00038] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Editor/ApplyOnPlay.cs:65 
  at nadena.dev.ndmf.runtime.AvatarActivator.Awake () [0x00018] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Runtime/ApplyOnPlayGlobalActivator.cs:174 
  at UnityEngine.GameObject.Internal_AddComponentWithType (System.Type componentType) [0x00000] in <baf0567d135e4326865d5269e8bbd9e1>:0 
  at UnityEngine.GameObject.AddComponent (System.Type componentType) [0x00001] in /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/GameObject.bindings.cs:222 
  at UnityEngine.GameObject.AddComponent[T] () [0x00001] in /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/GameObject.bindings.cs:227 
  at nadena.dev.ndmf.runtime.RuntimeUtil.GetOrAddComponent[T] (UnityEngine.GameObject obj) [0x00018] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Runtime/RuntimeUtil.cs:33 
  at nadena.dev.ndmf.runtime.ApplyOnPlayGlobalActivator.Awake () [0x00044] in /Users/anatawa12/UnityProjects/Anatawa12-Avaters/Packages/nadena.dev.ndmf/Runtime/ApplyOnPlayGlobalActivator.cs:113 

@anatawa12 anatawa12 added the bug Something isn't working label Dec 8, 2023
@anatawa12
Copy link
Owner Author

普通に影響範囲でかいのでv1.6系修正対象

@anatawa12 anatawa12 linked a pull request Dec 9, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant