Unity Editor and Build crashes everytime when ALT + TAB

Whenever i use ALT + TAB while playing my game Editor and Build 32 bit and 64 bit will ended with crash… And there is no player log no crash log. I really dont know whats happening im using 2020.3.29f1 and i tried it with 2020.3.28f1 too
Rendering with URP
Input system is Both

Please can someone help me with this?

1 Like

I have same problem. 2022.3.3f1. Both build and editor crashes without log.

Same problem here on 2021.3.8
Also without logs.

Someone can help?

We’re seeing this in Mac builds on 2022.3.21f1 also. Seems to be only when the build is in Exclusive Fullscreen mode, with Run In Background enabled.

1 Like

I got the same issue on 2022.3.16f1 - anyone found a solution yet?

This happens in my production builds when players alt-tab, but only sometimes.

Using Unity 2022.3.17 and DOTS.

Stack trace from the crash dmp:

UnityPlayer.dll!GfxDeviceD3D11::presentFrame(void) 
UnityPlayer.dll!GfxDeviceWorker::RunCommand(class ThreadedStreamBuffer &) 
UnityPlayer.dll!GfxDeviceWorker::RunExt(class ThreadedStreamBuffer &) 
UnityPlayer.dll!GfxDeviceWorker::RunGfxDeviceWorker(void *) 
UnityPlayer.dll!Thread::RunThreadWrapper(void *)```

I actually found out what the problem was in our game. When using VSync on macs it seems important never to set it to anything other than Every VBlank (1). Setting it to Every Other VBlank (2) caused our game to crash every time you’d ALT-TAB and go back.

I have some indications that the same problem can occur on PC as well. But it does not seem to be as frequent as it has shown to be on Mac.

I have the same problem