Reproduction steps:
1. Open the attached “repro-project“
2. Open the “debug_for_bug“ scene (Assets/_Scenes/debug_for_bug.unity)
3. Enter Play Mode
4. In the Game window use the WASD keys to approach the plunger
5. After the pickup choice screen appears select “Take“ by pressing “Space“
6. Approach the green cube GameObject and open the inventory by pressing “X”
7. Select “Key Items” → “Plunger” → “Use”
8. Observe the crash
Reproducible with: 2023.1.0a20, 2023.1.0b7, 2023.2.0a5
Not reproducible with: 2021.3.20f1, 2022.2.10f1
Could not test with: 2020.3.46f1 (due to multiple errors in the Console when downgrading the project), 2023.1.0a1, 2023.1.0a19 (due to errors in the Console)
Reproduced on: Windows 10 Pro
Note: Also reproduced in Player
First few lines of the stack trace:
0x00007FF956FDE782 (Unity) Coroutine::InvokeMoveNext
0x00007FF956FDF662 (Unity) Coroutine::Run
0x00007FF956FDD14F (Unity) Coroutine::ContinueCoroutine
0x00007FF956AA37CB (Unity) DelayedCallManager::Update
0x00007FF956CCE329 (Unity) InitPlayerLoopCallbacks'::2'::UpdateScriptRunDelayedDynamicFrameRateRegistrator::Forward