Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.4.X, 2020.1.X
Votes
1
Found in
2019.4.1f1
2020.1.0a2
2020.2
Issue ID
1263521
Regression
Yes
"SendMessage cannot be called during Awake, CheckConsistency, or OnValidate" thrown when loading UI Asset for the first time
To reproduce:
1. Open attached project ("case_1263521.zip")
2. From the menu bar select AG Tools > Prefab tester
3. In the opened "Prefab Tester" window click any button
4. Observe the Console window
Expected result: No warnings are thrown
Actual result: "SendMessage cannot be called during Awake, CheckConsistency, or OnValidate" warning is thrown
Reproducible in: 2019.4.1f1, 2019.4.8f1, 2020.1.0a2, 2020.1.2f1, 2020.2.0a20
Not reproducible in: 2018.4.26f1, 2019.4.0f1, 2020.1.0a1
Notes:
1. The issue is only reproducible when loading an asset from the asset database for the first time, so in order to reproduce it again, the project has to be closed and reopened.
2. For issue to reproduce the Asset has to be a nested Prefab.
3. Full warning message:
SendMessage cannot be called during Awake, CheckConsistency, or OnValidate
UnityEditor.AssetDatabase:LoadAssetAtPath<UnityEngine.Object> (string)
PrefabScriptSearch:OnGUI () (at Assets/PrefabScriptSearch.cs:41)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
-
Ronaldinho_WoD
Sep 14, 2023 01:05
Unfortunately I'm having the same error, with UNITY version 2022.3.5f1.0.15175
Revision: 2022.3/release 9674261d40ee -
ZeroKuru
Mar 02, 2022 17:57
This issue is still present in Unity 2021.2.12f1.
-
SystemId
Dec 16, 2021 11:59
Unity 2020.3.24f1 LTS
This bug has not been fixed. -
ohbado
Oct 20, 2021 08:22
It also occurs in 2021.1.25f1.
The bug has not been fixed. -
Hi_ImTemmy
Sep 26, 2021 07:56
I'm getting this in 2019.4.18f1 everytime my project loads. There is no stacktrack so no idea what is causing it.
-
Sliem001
Feb 08, 2021 10:18
Still present in 2020.2.3f1
the bug is not fixed
-
jashan
Jan 19, 2021 17:03
And in Unity 2019.4.18 it's broken again. Filed as
(Case 1307500) Regression: Warnings SendMessage cannot be called during Awake, CheckConsistency, or OnValidate -
jashan
Nov 22, 2020 11:26
> Fixed in 2019.4.16f1
AT LAST! I just updated to 2019.4.15 and once again worked around this by commenting out the offending lines in Scrollbar and Toggle (at least we can edit those files) and am very happy to see that this will apparently be the last time I had to do this ... after having made it a routine for every minor Unity update for the last few months.
-
AmitloafTotes
Oct 07, 2020 09:25
Will it get solved in 2019.4 LTS? It's really annoying and happens a lot for me
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
- Profiler - Taking you to the wrong section when using 'show'
- Draw Renderers custom pass doesn't work with SSGI
- WebCamTexture does not set the requested resolution when used in WebGL
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
Resolution Note (fix version 2020.2):
Fixed in - 2020.2.0b3
Resolution Note (fix version 2020.1):
Fixed in - 2020.1.14f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.16f1