Search Issue Tracker
Fixed
Fixed in 2021.3.12f1
Votes
68
Found in
2021.3.9f1
2022.2.0b7
2023.1.0a9
Issue ID
UUM-13617
Regression
Yes
[2021.3] Editor crashes on GetTransformAccess when undoing GameObject duplication
Reproduction steps:
1. Open any Unity project
2. Create any GameObject
3. Inside the created GameObject create a 3D Cube GameObject
4. Duplicate the 3D Cube GameObject
5. Undo
Expected result: Editor does not crash
Actual result: Editor crashes
Reproduced in: 2021.3.9f1
Not reproduced in: 2020.3.39f1, 2021.3.8f1, 2022.1.16f1, 2022.2.0b7, 2023.1.0a9
Reproduced using: macOS Monterey 12.0.1, Windows 10
Notes:
1. GetTransformAccess seems to be macOS related. Windows crash stack frames do not have it
2. Not reproduced when undoing duplication of an empty GameObject
First few stack frames (with 3D objects):
#0 Transform::GetTransformAccess()
#1 RendererUpdateManager::RemoveRenderer(Renderer&)
#2 Renderer::RemoveFromScene()
#3 Renderer::Deactivate(DeactivateOperation)
#4 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)
First few stack frames (with UI objects):
#0 Transform::GetTransformAccess()
#1 UI::CanvasRenderer::Deactivate(DeactivateOperation)
#2 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)
#3 GameObject::ActivateAwakeRecursively(DeactivateOperation)
#4 GameObject::Deactivate(DeactivateOperation)
First few stack frames (with light objects):
#0 Transform::GetTransformAccess()
#1 LightManager::RemoveLight(Light*)
#2 Light::RemoveFromManager()
#3 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)
#4 GameObject::ActivateAwakeRecursively(DeactivateOperation)
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
- Matrix type variables can't be edited unless Graph Inspector is expanded to fit all fields
- Missing Mono Scripts in Sample Scenes in URP Package Samples
- Labels to enable or disable Columns for Reflection Probes Clipping Planes do not match actual Column Labels
- Crash upon undo/redo operations performed repeatedly and errors are thrown
- Columns are mislabeled in the Reflection Probes section of Light Explorer
KevinCastejon
Feb 22, 2024 16:39
I identified that the XRGeneralGrabTransformer component is causing crash when added via Undo.AddComponent then history undo/redo is used. I could make a proper issue report for this, but Unity would never address it, as usual, and I'm tired working for nothing for a private company. If you're meeting this issue with this component, just do not add it, XrGrabInteractable will add it automatically at runtime if not present.
KevinCastejon
Feb 22, 2024 15:20
Similar issue happening into 2023.2.3 when undoing several Undo.AddComponent() operations on multiple object
mdentonetc
Feb 27, 2023 18:33
I was told by my ticket issuer that this was fixed in 2021.12. But I'm using 2021.16 and it's still happening. Tested in 18 and also happening.
NicholasCarlson
Feb 04, 2023 16:37
Definitely still happens 2021.3.11f, which is LTS sooo
PixelCells
Jan 14, 2023 14:32
Happened to me at 2021.3.11f1
ZMKimu
Oct 21, 2022 15:25
funny, the answer is down 2021.310f1 and above,but i'm using f2 now and my question is undo a prefab then crash. or may he send to me a wrong reply? i will never undo before save project
HunterAhlquist
Oct 20, 2022 02:24
It says it was fixed in 2021.3.12f1, but I can't find any such build in the Hub or Archive sites. Is it not released yet?
Bersaelor
Oct 11, 2022 16:12
Happened to me to in 2021.3.10f1 and 2021.3.11f1 too
mostekcm
Oct 04, 2022 16:23
Agreed, undo crashing is really bad. It’s not like you can save right before undoing when the point of undo is to *not* save the latest change. Please fix with urgency.
JustATensai
Oct 03, 2022 19:58
My report was also marked duplicate of this. I'm using windows 2021.3.10f1 version. A very frustrating and crucial issue. Should be heavily prioritized and fixed as soon as possible.