UE4-27 : D3D Graphic Crash on packaged project, only on AMD Cards

Hi! So I am working on a game in 4.27 and while testing, we encountered multiple times some hard crashes with the error : “Unreal Engine is exiting dur to D3D device being lost (Error:0x887A0006 - ‘HUNG’)”, but only on the computers on people playing with AMD graphics cards.

When testing the game on any Nvidia hardware (From 750ti, 2080 or 3080 ti) we are never encountering issues, but on both a AMD 6800 xt and a bit of an older card (unfortunately I do not know the exact model), players are encountering hard crashes with this error in the Log.


[2022.04.03-06.42.02:578][421]LogD3D11RHI: GetQueryData is taking a very long time (5.0 s) (00000000)
[2022.04.03-06.42.02:578][421]LogD3D11RHI: GetQueryData is taking a very long time (10.0 s) (887a0007)
[2022.04.03-06.42.02:578][421]LogD3D11RHI: Error: Result failed
at D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Query.cpp:360
with error DXGI_ERROR_DEVICE_REMOVED DXGI_ERROR_DEVICE_RESET
[2022.04.03-06.42.02:578][421]LogD3D11RHI: [Aftermath] GDynamicRHI=00000267324E0000, GDX11NVAfterMathEnabled=0, Result=0xFFFFFFFF, bDeviceActive=0
[2022.04.03-06.42.02:578][421]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2022.04.03-06.42.10:992][421]LogWindows: Could not start crash report client using …/…/…/Engine/Binaries/Win64/CrashReportClient-Win64-Debug.exe
[2022.04.03-06.42.10:992][421]LogMemory: Platform Memory Stats for WindowsNoEditor
[2022.04.03-06.42.10:992][421]LogMemory: Process Physical Memory: 1689.41 MB used, 4932.87 MB peak
[2022.04.03-06.42.10:992][421]LogMemory: Process Virtual Memory: 10725.14 MB used, 10790.75 MB peak
[2022.04.03-06.42.10:992][421]LogMemory: Physical Memory: 7485.55 MB used, 8812.21 MB free, 16297.77 MB total
[2022.04.03-06.42.10:992][421]LogMemory: Virtual Memory: 134210208.00 MB used, 7518.35 MB free, 134217728.00 MB total
[2022.04.03-06.42.10:992][421]Message dialog closed, result: Ok, title: The UE4-TheLastCitadel Game has crashed and will close, text: 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: 0x887A0007 - ‘RESET’)

[2022.04.03-06.42.10:992][421]LogWindows: FPlatformMisc::RequestExit(0)
[2022.04.03-06.42.10:992][421]LogWindows: FPlatformMisc::RequestExitWithStatus(0, 0)
[2022.04.03-06.42.10:992][421]LogCore: Engine exit requested (reason: Win RequestExit)
[2022.04.03-06.42.10:992][421]LogWindows: Error: Error reentered: Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Util.cpp] [Line: 258]
Result failed
at D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Query.cpp:360
with error DXGI_ERROR_DEVICE_REMOVED DXGI_ERROR_DEVICE_RESET

[2022.04.03-06.42.10:992][421]LogWindows: FPlatformMisc::RequestExit(0)
[2022.04.03-06.42.10:992][421]LogWindows: FPlatformMisc::RequestExitWithStatus(0, 0)
[2022.04.03-06.42.10:992][421]LogCore: Engine exit requested (reason: Win RequestExit; note: exit was already requested)
[2022.04.03-06.42.10:992][421]LogWindows: Error: Error reentered: Assertion failed: GD3D11RHI->GetQueryData(Query->Resource, &Query->Result, sizeof(Query->Result), Query->QueryType, true, false) [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Query.cpp] [Line: 45]

Any ideas what might be causing the issue? Initially we believed it was a particle system that was causing the issue, but turns out it’s not the case (Or at least not the only case)

Thanks for any help sent my way, I’m going crazy here :sweat_smile:

Hello, have you solved the problem?
My problem is similar to yours, but it is the error of version 5.0.3.

解决方案:
The solution:
显卡驱动设置为旧版本驱动。
Set the video card driver to an older version.

问题历程:
4.27版本的打包项目一切正常。后续5.0.3版本推荐新版本显卡驱动,就进行了更新,当时的驱动为3080的516.94版本。后续5.0.3的打包项目就开始崩溃。
之后一直尝试降低显卡驱动。最终测试使用496.13版本后正常。