DirectX12 GPU related Crash

unit23
Wed, 12 Mar 2025 16:23:34 +0000
Getting Started & Setup

With 5.5.4 and using a AMD GPU - when opening a DataTable and moving the Editor window the following error and crash happens

Assertion failed: TryAllocateInternal(InSize, AllocationAlignment, AllocationResourceType, AllocationData) [File:D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12PoolAllocator.cpp] [Line: 375]

Ensure condition failed: InSizeAfterCompaction > 0 [File:D:\build++UE5\Sync\Engine\Source\Runtime\D3D12RHI\Private\D3D12RayTracing.cpp] [Line: 3456] LogOutputDevice: Error: Compacted acceleration structure size is expected to be non-zero. This error suggests that GPU readback synchronization is broken.

There are two solutions

Fixed by setting DirectX11 instead of DirectX12 in the DefaultGame.ini

[/Script/WindowsTargetPlatform.WindowsTargetSettings]
DefaultGraphicsRHI=DefaultGraphicsRHI_DX11

Another fix is to keep using DirectX12, but set the Editor window not to fullscreen, the window can be scaled as large as needed, the crash no longer occurs.

7 posts - 5 participants