Search Issue Tracker

Won't Fix

Fixed in 2020.3.X



Found in




Issue ID




Editor Crashes when performing Undo and Redo after duplicating Game Object with LEGO Model Asset component



Reproduction steps:
1. Open the user's attached project
2. Duplicate "Platform" prefab from the hierarchy
3. Undo, then Redo, then Undo

Expected result: Pasting Platform is reverted
Actual result: Unity crashes

Reproducible with: 2020.2.0a16, 2020.2.0f1, 2021.1.0a10
Not reproducible with: 2018.4.30f1, 2019.4.17f1, 2020.1.17f1, 2020.2.0a15

Note: In order to reproduce instead of using the prefab, you have 2 other ways:
1: MENU_ITEM -> Import Model then proceed to step 2 with your new Game Object instead of the "Platform" prefab
2: Create a new Game Object, Add a LEGO Model Asset component, press "Reimport From New File", proceed to step 2

Stack trace:
#0 0x0000010cc0363a in (anonymous namespace)::AddAssetEvent((anonymous namespace)::ChangeEventType, Object const*)
#1 0x0000010cc07334 in ObjectUndo::Restore(bool)
#2 0x0000010cc09d95 in UndoManager::Apply(std::__1::list<UndoBase*, stl_allocator<UndoBase*, (MemLabelIdentifier)122, 16> >&, bool)
#3 0x0000010cc0a2f7 in UndoManager::Undo()
#4 0x0000010cae0370 in EditMenu::Execute(MenuItem const&)
#5 0x0000010c6acff2 in MenuController::ExecuteMenuItem(MenuItem&, MenuController::ExecutionCause)
#6 0x0000010d171a00 in EditorApplication_CUSTOM_ExecuteMenuItem(ScriptingBackendNativeStringPtrOpaque*)

  1. Resolution Note:

    The LEGO microgame won't be supported in 2022.1

  2. Resolution Note (fix version 2020.3):

    Fixed in new version of LEGO Microgame Template

Comments (2)

  1. kira8725584

    Mar 12, 2024 18:06

    Эй эй детка ты супер🩷🩷🩷🩷🩷🩷

  2. eheimburg

    Jul 08, 2021 19:01

    Well, it's a known issue that it just flat out CRASHES in 2021.3, as listed in the "known issues" section of every LTS build. And since this is "won't fix"'ed that means the LEGO microgame is not supported in 2021.X either. And, it looks like, 2020.X either.

    Which builds of Unity DO support your LEGO demo? Is it none? I think the answer is "none". So why isn't that reflected in the demo's marketing assets?

    And really, why is this crash unmaintainable? You can't fix THIS stupid bug? REALLY?

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.