Reproduction steps:
1. Open the attached “repro-project“
2. Open the “Assets/Scenes/SampleScene.unity“ scene
3. Observe the crash
Alternatively
1. Create and open a new 2D (Built-in) Core project
2. Download and import the “Lost Crypt - 2D Sample Project“ asset from the Asset Store
3. Open the “Assets/Scenes/Main.unity“ scene
4. Observe the crash
Reproducible with: 2022.1.0a1, 2022.3.24f1, 2023.2.0a19
Not reproducible with: 2021.3.37f1, 2023.2.18f1, 6000.0.0b15
Fixed in: 2022.2.0a20
Reproduced on: Windows 10
Not reproducible on: No other environment tested
First few lines of the stack traces:
0x00007FFC2BDE7A36 (Unity) GameObject::IsActive
0x00007FFC2C3CDF5F (Unity) InvokeSpriteChanged
0x00007FFC2C3CE28D (Unity) SpriteRenderer::OnDeleteSprite
0x00007FFC2C2FD66D (Unity) Sprite::MainThreadCleanup
0x00007FFC2BDD67B6 (Unity) delete_object_internal_step1
0x00007FFC3936EE16 (Unity) GameObject::IsActive
0x00007FFC395D04F9 (Unity) SpriteRenderer::OnDeleteSprite
0x00007FFC395798BD (Unity) Sprite::MainThreadCleanup
0x00007FFC3936102C (Unity) delete_object_internal_step1
0x00007FFC3936057A (Unity) UnloadObject