How to reproduce:
1. Open the attached “IN-148601” project
2. Navigate to File > Build Profiles
3. Build the project and copy its path
4. Launch the build from the command prompt with arguments "-force-d3d12 -screen-fullscreen 1 -window-mode exclusive"
5. Press Alt+Enter 2 times to enter fullscreen mode
6. Rapidly switch focus by pressing left clicking on a second screen then Alt+tab back to the build (do this for ~1 minute)
7. Observe the crash
Reproducible with: 6000.0.73f1, 6000.0.80f1, 6000.3.21f1, 6000.5.6f1, 6000.6.0b6, 6000.7.0a3
Not reproducible with: 6000.0.72f1
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
- Does not reproduce with DX11
- Only reproduces when using Fullscreen mode
- The crash should occur within 15 - 45 seconds in step 6
First few lines of the stack trace:
0x00007FFEE2C5B4ED (UnityPlayer) UnityMain
0x00007FFEE2C5A909 (UnityPlayer) UnityMain
0x00007FFEE1D4D6F5 (UnityPlayer) UnityMain
0x00007FFEE1D4B216 (UnityPlayer) UnityMain
0x00007FFEE1D0197C (UnityPlayer) UnityMain