How to reproduce:
1. Open the attached "8652_Repro.zip" project
2. Open the Scene "SampleScene"
3. In the Hierarchy select Grid > Tilemap_A
4. In the Inspector press on the "Tilemap Collider 2D" Component ellipsis and select "Copy Component"
5. In the Hierarchy select Grid > Tilemap_B and paste the Component (press ellipsis on any Component and select "Paste Component as New"
6. Repeat steps 2-4 with the "Composite Collider 2D" Component
7. Open Tile Palette (Window > 2D > Tile Palette)
8. Draw in the "Tilemap_B" tilemap
Expected results: Editor doesn't crash
Actual results: Editor crashes
Reproducible with: 2019.4.40f1, 2020.3.36f1, 2021.3.6f1, 2022.1.8f1, 2022.2.0a19, 2023.1.0a2
Reproduced on:
Windows 10
Stacktrace:
0x00007ff63b621cac (Unity) TilemapCollider2D::ProcessTileChangeQueue
0x00007ff63a93c30b (Unity) BaseBehaviourManager::CommonUpdate<LateBehaviourManager>
0x00007ff63a943c9a (Unity) LateBehaviourManager::Update
0x00007ff63ab5e4fd (Unity) `InitPlayerLoopCallbacks'::`2'::PreLateUpdateScriptRunBehaviourLateUpdateRegistrator::Forward
0x00007ff63ab467ea (Unity) ExecutePlayerLoop
0x00007ff63ab46973 (Unity) ExecutePlayerLoop