Packaged game crashes on ALT-TAB or on changing resolution

Assertion failed:
[File:C:/UnrealEngine4.23/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Util.cpp]
[Line: 249] Result failed at
C:/UnrealEngine4.23/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Viewport.cpp:368
with error DXGI_ERROR_INVALID_CALL

CradleOfSins!FWindowsErrorOutputDevice::Serialize()
[c:\unrealengine4.23\engine\source\runtime\core\private\windows\windowserroroutputdevice.cpp:79]
CradleOfSins!FOutputDevice::LogfImpl()
[c:\unrealengine4.23\engine\source\runtime\core\private\misc\outputdevice.cpp:71]
CradleOfSins!AssertFailedImplV()
[c:\unrealengine4.23\engine\source\runtime\core\private\misc\assertionmacros.cpp:101]
CradleOfSins!FDebug::AssertFailed()
[c:\unrealengine4.23\engine\source\runtime\core\private\misc\assertionmacros.cpp:455]
CradleOfSins!VerifyD3D11Result()
[c:\unrealengine4.23\engine\source\runtime\windows\d3d11rhi\private\d3d11util.cpp:249]
CradleOfSins!FD3D11Viewport::PresentChecked()
[c:\unrealengine4.23\engine\source\runtime\windows\d3d11rhi\private\d3d11viewport.cpp:369]
CradleOfSins!FD3D11DynamicRHI::RHIEndDrawingViewport()
[c:\unrealengine4.23\engine\source\runtime\windows\d3d11rhi\private\d3d11viewport.cpp:679]
CradleOfSins!FRHICommandListExecutor::ExecuteInner_DoExecute()
[c:\unrealengine4.23\engine\source\runtime\rhi\private\rhicommandlist.cpp:328]
CradleOfSins!FRHICommandListExecutor::ExecuteInner()
[c:\unrealengine4.23\engine\source\runtime\rhi\private\rhicommandlist.cpp:595]
CradleOfSins!FRHICommandListExecutor::ExecuteList()
[c:\unrealengine4.23\engine\source\runtime\rhi\private\rhicommandlist.cpp:645]
CradleOfSins!FRHICommandList::EndDrawingViewport()
[c:\unrealengine4.23\engine\source\runtime\rhi\private\rhicommandlist.cpp:1527]
CradleOfSins!FSlateRHIRenderer::DrawWindow_RenderThread()
[c:\unrealengine4.23\engine\source\runtime\slaterhirenderer\private\slaterhirenderer.cpp:1008]
CradleOfSins!TGraphTask

::ExecuteTask() [c:\unrealengine4.23\engine\source\runtime\core\public\async\taskgraphinterfaces.h:847]
CradleOfSins!FNamedTaskThread::ProcessTasksNamedThread()
[c:\unrealengine4.23\engine\source\runtime\core\private\async\taskgraph.cpp:686]
CradleOfSins!FNamedTaskThread::ProcessTasksUntilQuit()
[c:\unrealengine4.23\engine\source\runtime\core\private\async\taskgraph.cpp:583]
CradleOfSins!RenderingThreadMain()
[c:\unrealengine4.23\engine\source\runtime\rendercore\private\renderingthread.cpp:340]
CradleOfSins!FRenderingThread::Run()
[c:\unrealengine4.23\engine\source\runtime\rendercore\private\renderingthread.cpp:471]
CradleOfSins!FRunnableThreadWin::Run()
[c:\unrealengine4.23\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:96]

That crash is fixed with https://github.com/EpicGames/UnrealEngine/commit/1b37202f41a9064659d7a26f1c13a491489c5ed5

This didn’t work for me. I’m using DX11 currrently

I just resolved my error by removing blueprint code I had written to start the game in fullscreen.

Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/RenderCore/Private/RenderingThread.cpp] [Line: 836]
Rendering thread exception:
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Util.cpp] [Line: 249]
Result failed
at D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Viewport.cpp:368
with error DXGI_ERROR_INVALID_CALL

0x00007ffac483a839 UnknownFunction []




Crash in runnable thread RenderThread 1

I’m getting a similar error, DX11

Can confirm, also getting this crash in 4.23.1,
dx11,
while full screen try alt tab, it will crash the engine…

For anyone running into this, the fix posted above made it into 4.25