Reproduction steps:
1. Open the attached project “IN-29165“
2. Drag the “AnimationObject“ from the Project window onto the “GameObject“ in the Hierarchy window
3. Undo
Expected result: The Editor does not crash
Actual result: The Editor crashes
Reproducible with: 2021.3.12f1, 2021.3.18f1
Not reproducible with: 2020.3.44f1, 2021.3.8f1, 2022.2.5f1, 2023.1.0b2
Could not test with: 2021.3.9f1, 2021.3.11f1 (the Editor crashes with a different stack trace of an already known issue ([Internal link]))
Reproduced on: Windows 10 Pro
Notes: Reproducible when the Animation Object is made a child of another GameObject
First few lines of the stack trace:
0x00007ff6cfb62c0b (Unity) RendererUpdateManager::UpdateSingleRenderer
0x00007ff6cfb4d48f (Unity) Renderer::SetLocalAABB
0x00007ff6cf352cff (Unity) SpriteRendererDataAccessExtensions_CUSTOM_SetLocalAABB_Injected
0x000002e4187ab4dc (Mono JIT Code) (wrapper managed-to-native) UnityEngine.U2D.SpriteRendererDataAccessExtensions:SetLocalAABB_Injected (UnityEngine.SpriteRenderer,UnityEngine.Bounds&)
0x000002e4187ab38b (Mono JIT Code) UnityEngine.U2D.SpriteRendererDataAccessExtensions:SetLocalAABB