Search Issue Tracker

Fixed in 5.4.0

Votes

3

Found in

5.4.0b3

Issue ID

763532

Regression

Yes

[Avatar] Opening "Configure Avatar" window throws error that get_BoneCount is called in MonoBehaviour constructor

Animation

-

Steps to reproduce:

1. Open attached project
2. Open scene "repro"
3. Select "Robot Kyle" in hierarchy
4. Select its Avatar by clicking on it in Animator
5. Edit Avatar
6. Notice errors in console:
a) get_BoneCount is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'AvatarMappingEditor' on game object ''.
See "Script Serialization" page in the Unity Manual for further details.
UnityEditor.DockArea:OnGUI()

b) InvalidOperationException: Operation is not valid due to the current state of the object
System.Collections.Generic.Stack`1[System.Boolean].Pop ()
UnityEditor.EditorGUI.EndDisabled () (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:246)

Regression introduced in 5.4.0b1
Reproduced with: 5.4.0b3

Comments (7)

  1. winberry

    Apr 17, 2016 20:18

    I'm getting this but it says it's been FIXED..is there a way to find where or how it has been fixed? thanks

  2. SaraYamit

    Apr 15, 2016 02:29

    Getting the same error after importing a rigged model from maya. I am using b11.

  3. timeposse

    Apr 05, 2016 03:36

    Getting this in 5.4.0.b12 as well.

  4. Tactical_Beard

    Apr 01, 2016 21:23

    Getting this in 5.4.0b11

  5. Steamc0re

    Mar 26, 2016 07:33

    Tried to use some Mixamo downloaded animations to test out some things, got the exact same error.

    get_BoneCount is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'AvatarMappingEditor' on game object ''.
    See "Script Serialization" page in the Unity Manual for further details.
    UnityEditor.AvatarMappingEditor:.ctor()

  6. JU52

    Mar 25, 2016 16:08

    same in B11

    get_BoneCount is not allowed to be called from a MonoBehaviour constructor, call it in Awake or Start instead. Called from script 'AvatarMappingEditor' on game object ''.
    See "Script Serialization" page in the Unity Manual for further details.
    UnityEditor.AvatarMappingEditor:.ctor()

  7. Brainswitch

    Mar 20, 2016 05:41

    I am also seeing this on 5.4.0b10.

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.