Unreal Engine is exiting due to D3D device being lost. (Error: 0x0 - 'S_OK')

HI, I kept having Unreal Engine is exiting due to D3D device being lost. (Error: 0x0 - ‘S_OK’) error even though I have plugged in my laptop, install latest drivers, selecting the NVIDIA GPU in Control Panel.

Here are my laptops specs are:
Acer Predator Helios 300

  1. Intel Core i7-7700HQ
  2. 16.0GB RAM
  3. NVDIA GeForce GTX 1060

This is typical issue with Intel+Nvidia laptops, in most cases it is power management switching between NVidia GPU to Intel GPU in CPU and vice versa. Go to power management and set as much high performance settings you can set, maybe you will find some settings about in NVidia (which sound like you already did), make sure you got your laptop plug in to AC which encourage laptop to use NVidia GPU more often. UE4 can idle quite heavily unlike typical game so it might confuse those systems sometimes.

That said i never seen case with S_OK error code, so it might be some special case. Is there any perticilar moment this happens? Try to observer more as this might help.

I have my laptop constantly connected to power source. I did not have any issues regarding this error back then. It only happen recently. I’m not sure whether my GPU is failing but I’m getting consistent performance when gaming. The error only happens when using Unreal though.

I have the same issue, please help as I am starting to lose my mind. The crash freezes my entire laptop for a bit and occurs very fast after opening the editor, mostly when moving in viewport but also on undo. I have Geforce GTX 1050TI, I5 7300 HQ, 16GB RAM.

Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Util.cpp] [Line: 198] Unreal Engine is exiting due to D3D device being lost. (Error: 0x0 - ‘S_OK’)

UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_D3D11RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_SlateRHIRenderer
UE4Editor_SlateRHIRenderer
UE4Editor_SlateRHIRenderer
UE4Editor_Core
UE4Editor_Core
UE4Editor_RenderCore
UE4Editor_RenderCore
UE4Editor_Core
UE4Editor_Core
kernel32
ntdll

It’s been 4 years but I started having the same issue out of nowhere with every game that uses unreal engine, did you manage to find a solution? Also setting the scaling to 100% in windows does fix it but it makes other stuff work weird so it’s more of a temporary solution

also now found out if i set my gpu mode to discrete on omen gaming hub it works, so i think the problem is something with UE refusing to get enough power from the dGPU

1 Like