Search Issue Tracker
Duplicate
Votes
0
Found in
5.6.0b7
Issue ID
881128
Regression
Yes
NullReferenceException when playing humanoid animation having its avatar copied from another fbx
To reproduce:
1. Open attached project.
2. Open scene: AnimationTestScene
3. Select asset in project view: Assets/units/New Experimental/Animations/Maw_J_Laygo@dwarf_walk
4. Reimport it by unticking and ticking again "Import Animation" field and press apply.
5. Press play.
6. Leave playmode, and press play again.
After second playmode enter, an error appears everytime entering playmode:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AnimationClipInfoProperties.MaskFromClip (UnityEngine.AvatarMask mask) (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AnimationClipInfoProperties.cs:107)
UnityEditor.AvatarMaskInspector.set_clipInfo (UnityEditor.AnimationClipInfoProperties value) (at C:/buildslave/unity/build/Editor/Mono/Inspector/AvatarMaskInspector.cs:221)
UnityEditor.ModelImporterClipEditor.SyncClipEditor () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/ModelImporterClipEditor.cs:214)
UnityEditor.ModelImporterClipEditor.OnEnable () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/ModelImporterClipEditor.cs:176)
or sometimes gives different error (or both):
NullReferenceException: (null)
UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs, UnityEngine.Object context) (at C:/buildslave/unity/build/artifacts/generated/common/editor/SerializedPropertyBindings.gen.cs:87)
UnityEditor.Editor.GetSerializedObjectInternal () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:175)
UnityEditor.Editor.get_serializedObject () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorBindings.gen.cs:168)
UnityEditor.AvatarMaskInspector.InitializeSerializedProperties () (at C:/buildslave/unity/build/Editor/Mono/Inspector/AvatarMaskInspector.cs:265)
Reproducible on: 5.6.0b7, 5.6.0b5 (802d0eaaa43c)
Not reproducible on: 5.6.0b1 (d37b23d9dfff)
Regression introduced somewhere between 5.6.0b5 and 5.6.0b1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
This is a duplicate of issue #879846