Reproduction steps:
1. Open the attached “2022_2_Test.zip“ project
2. Open the “SampleScene” scene
3. Create Empty GameObject under “BadCanvas” GameObject
4. Undo and redo the last change
5. Observe the Console
Expected result: Console throws no warnings
Actual result: “SendMessage cannot be called during Awake, CheckConsistency, or OnValidate (InputField: OnRectTransformDimensionsChange)” warnings are thrown in the Console
Reproducible with: 2022.1.0b1, 2022.2.0a1, 2022.2.14f1, 2023.1.0b11, 2023.2.0a10
Not reproducible with: 2020.3.47f1, 2021.3.22f1, 2022.1.0a16
Reproduced on: Windows 10
Not reproduced on: macOS Monterey 12.6 (Intel)
Notes:
-Warnings are thrown only on “BadCanvas” GameObject
-Issue is not reproducible on “BadCanvas” GameObject duplicate
-Issue is not reproducible if “Parent” GameObject Image has no Sprite assigned or if the Horizontal Layout Group Component of “BadCanvas” GameObject is disabled