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: