Reproduction steps:
1. Open the attached “BugRepro” project
2. Make sure that the “Fullscreen mode” is set to “Exclusive Fullscreen”, “Resizable window” and “Splash screen” is disabled
3. Build the project (File > Build and Run)
4. Switch focus to another application while the build is in progress
5. Observe the Crash
Reproducible with: 6000.5.0a7, 6000.6.0a1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: Not reproduced by CQA
First few lines of the stack trace:
0x00007FFF2B249310 (UnityPlayer) [C:\unity2\Modules\NativeKernel\Source\Logging\LogAssert.cpp:971] DebugStringToFilePostprocessedStacktrace
0x00007FFF2B249972 (UnityPlayer) [C:\unity2\Modules\NativeKernel\Source\Logging\LogAssert.cpp:1035] DebugStringToFile 0x00007FFF2ABF5830 (UnityPlayer) [C:\unity2\PlatformDependent\Win\GfxDevice\d3d12\D3D12Context.cpp:1467] CheckDeviceStatus 0x00007FFF2AC033C3 (UnityPlayer) [C:\unity2\PlatformDependent\Win\GfxDevice\d3d12\D3D12SwapChain.cpp:443] D3D12SwapChain::CreateHWND
0x00007FFF2A978CAD (UnityPlayer) [C:\unity2\PlatformDependent\Win\WinScreenSetup.cpp:1189] WinScreenSetup::SetResolution