How to reproduce:
1. Open the attached project “IN_8378.zip”
2. Press Edit → Projects Settings → Player
3. Set Scripting Backend to IL2CPP
4. Press File → Build And Run
Expected result: Player doesn’t crash
Actual result: Player crashes
Reproducible with: 2020.3.37f1, 2021.3.7f1, 2022.1.11f1, 2022.2.0b3, 2023.1.0a4
Reproducible on: Windows 10 Pro
Notes:
- Issue doesn’t appear when Scripting Backend is set to Mono
- After deleting the 9th line in “SampleScene.cs” Script issue disappears: “ System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.High;”