#Crash on Screen.MoveMainWindowTo

1 messages · Page 1 of 1 (latest)

median rose
#

I am getting this error message in the logs: "D3D12Fence::Wait(2190) error: got 2189. May cause crash or visual artifacts"

Anyone have any ideas as to why I might be seeing this? This is on Unity 6.1.10

forest knoll
#

DX12 is just in its infancy with Unity and there's a lot of crashes

#

Try DX11 until the issues are fixed

median rose
#

Don't most games use DX12 these days? Or am I mistaken?

forest knoll
#

DX12 is the default graphics backend in Unity as of 6.1 and was introduced in 2023.1
As far as graphics APIs go it's not all that old in Unity

sick leaf
#

It's likely an issue unique to the editor too.

median rose
sick leaf
#

Are you doing some custom rendering, using graphics command lists or anything else that could be related in the project? Or using third party assets/pluging that could be doing that?

#

Maybe using custom compute or other shaders?

median rose
#

No. It's crashing when using Screen.moveMainWindowTo repetitively

sick leaf
sick leaf
#

Maybe fill a bug report regardless of wether that fixes the issue or not

median rose
#

Switching to DX11 seems to have fixed the issue. I was reading somewhere that exclusive fullscreen support is not the same with DX12 as it is with DX11, could that be my issue?

#

I would like to use DX12 if possible

sick leaf
#

Yep. D3d12 is typically stricter and will crash sooner if you do something fishy. D3D11 is a bit lore forgiving in that sense.
Did you try making sure you're not calling that move method before the previous move is complete?

median rose
#

I need to test that tomorrow to see. I need to add more logs and isolate my test some more since I have other stuff running as well. Will report back