Ue4 unreal engine is exiting due to D3D device being los

Hi, I am on 4.13.2, and since upgrading, I keep getting this crash when working in teh editor. I have a gtx 1080, and a beefy machine. What is causing this?

‘unreal engine is exiting due to D3D device being lost’ Exiting…

Hey antithing,

Could you please provide the full output log from your project’s Saved->Logs folder the next time the crash occurs?

What exactly are you working on when the editor crashes?

Also, are you getting a crash reporter window? If so, please provide your machine id and ensure to hit Send & Close on the report.

Thanks

Hi Sean, thanks for getting back to me. The crash gives me:

`UE_LOG(LogD3D11RHI, Fatal, TEXT("Unreal Engine is exiting due to D3D device being lost. (Error: 0x%X - '%s')"), hRes, Reason);`

in the file 'D3D11Util.cpp'.

The output log gives me:

[2016.11.13-12.05.16:673][272]LogEditorViewport: Clicking on Actor (LMB): StaticMeshActor (Cube2)
[2016.11.13-12.14.29:579][552]LogD3D11RHI:Error: Result failed 
 at C:\unreal\UnrealEngine-release\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Viewport.cpp:267 
 with error DXGI_ERROR_DEVICE_REMOVED DXGI_ERROR_DEVICE_HUNG

After further investigation, this appears to be related to Unreal Engine Issues and Bug Tracker (UE-37999)

This is an issue that we have currently been unable to reproduce locally, so if you have a set of repro steps that you are using when you are experiencing this crash, it would be great if you’d be able to provide them.

Also, it would be helpful if you could provide your dxdiag as well.

Thanks

We believe most of these crashes may be related to realtime GPU stats and timestamp queries on older Nvidia cards. We’d like to ask you to try this temporary fix while we work on a permanent solution.

If you are able to open the editor, please open the command console (`) and run: r.gpustatsenabled 0

Or you can edit the consolevariables.ini file located at Epic Games/4.14/Engine/Config by adding the line: r.gpustatsenabled=0

Please let us know your results.

Cheers

Ok cool, I will try that. I am running Unreal on 3 different machines, and i only see this error on the one with a brand new GTX 1080 card. Thanks !