Search Issue Tracker

Fixed in 2017.2.0f3

Votes

0

Found in

2017.2.0a2

Issue ID

930703

Regression

Yes

SendMessage cannot be called during Awake, CheckConsistency, or OnValidate prevents UI from showing

uGUI

-

SendMessage cannot be called during Awake, CheckConsistency, or OnValidate prevents UI from showing

To repro:
1. Open project attached (or import uMMORPG project).
2. Press Play and you'll get errors in log.

Actual result: warnings in log
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
UnityEngine.UI.Slider:OnValidate()

Expected result: No warnings in log.

In 2017.1.0f3 works with no warnings.
In 2017.2.0a2 - b3 warnings appear.

Comments (23)

  1. 7c5b36589b7c1395194060a47065aa99?d=mm

    elgawarsha

    Nov 22, 2020 07:50

    I've figured this issue out. At least in Unity 2020.1.11f1

    Basically the children in the Slider aren't set as prefabs. I had to unpack the canvas parent of the slider, as well as the slider itself, and then make all the slider children prefabs, then re-prefab the slider and canvas. If this works for anyone else please post a comment to confirm.

  2. Dd9b84d8442b6b3540d0cecee0d93f28?d=mm

    adefilippis

    Aug 06, 2019 18:14

    Not sure what was fixed in 2017.2.0f3.
    In 2017.4.26f1, this warning still appears in all GetComponent<MeshFilter>() statements called in Awake()

  3. 666883f2676596130be878ff0a540aba?d=mm

    PixelSquad

    Jul 12, 2019 11:35

    I get it in 2019.1.9f1 when loading a prefab containing sprites.

  4. 351997a13f842290031173c5a190a930?d=mm

    Hoglet

    Jul 07, 2019 23:24

    Still present in Unity 2019.1.8 when adding value to some properties in OnValidate

  5. 7e2238825378d91e220276f69c261db8?d=mm

    amelkor

    May 27, 2019 12:13

    SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
    UnityEngine.MeshFilter:set_sharedMesh(Mesh)

    The same on 2019.1.0f2

  6. 7fa7d45cef044c226fe2c6a352082f59?d=mm

    tigme

    Apr 01, 2019 08:39

    Also have this issue on 2018.3.10f1

  7. 2598135ba306c83cb700e1aa6c3f0af0?d=mm

    yourfriendninjarinplays

    Mar 24, 2019 13:12

    I Have this problem when i change the value in my Slider

  8. 8cf225e14a7118db027e1e6352df0c0c?d=mm

    ilkeryasin

    Feb 17, 2019 14:17

    also i have same issue
    unity version = 2018.3.6f1

  9. 3fde696182d3216073a162eb5abc206c?d=mm

    DanStreaman

    Feb 16, 2019 02:53

    I am on 2018.3.4f1 and while doing:

    meshFilter.mesh = new_mesh;

    ...during OnValidate() I get the following warning:

    "SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
    UnityEngine.MeshFilter:set_mesh()"

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.