Fix or Workaround for D3D11Texture error E_OUTOFMEMORY

Hello,

We are running into below error while trying to load the Maps for “Downtown West Modular Pack” asset.

[2021.04.27-15.33.03:654][452]LogD3D11RHI: Error: Direct3DDevice->CreateTexture2D(TextureDesc,SubResourceData,OutTexture2D) failed 
 at D:/Build/++UE4/Sync/Engine/Source/Runtime/Windows/D3D11RHI/Private/D3D11Texture.cpp:534 
 with error E_OUTOFMEMORY, 

 Size=2048x2048x288 PF=10 D3DFormat=DXGI_FORMAT_R16G16B16A16_FLOAT(0x0000000A), NumMips=12, Flags=D3D11_BIND_SHADER_RESOURCE , Usage:0x0, CPUFlags:0x0, MiscFlags:0x4, SampleCount:0x1, SampleQuality:0x0, SubresPtr:0x0000000000000000, SubresPitch:0, SubresSlicePitch:0

337278-out-of-video-memory-error.png

Also below pasted is the snippet from log file end:

[2021.04.27-15.33.05:697][452]LogConsoleResponse: Pool: 181/322 MB (referenced/allocated)
[2021.04.27-15.33.05:697][452]Cmd: rhi.DumpMemory
[2021.04.27-15.33.05:701][452]RHI resource memory (not tracked by our allocator)
[2021.04.27-15.33.05:701][452]               0  -  Pixel buffer memory - STAT_PixelBufferMemory - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]           20324  -  Structured buffer memory - STAT_StructuredBufferMemory - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]        94076696  -  Vertex buffer memory - STAT_VertexBufferMemory - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]       260865242  -  Index buffer memory - STAT_IndexBufferMemory - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]         9844480  -  Uniform buffer memory - STAT_UniformBufferMemory - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]       515440332  -  Texture memory Cube - STAT_TextureMemoryCube - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]         2572364  -  Texture memory 3D - STAT_TextureMemory3D - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]      1117372563  -  Texture memory 2D - STAT_TextureMemory2D - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]               0  -  Render target memory Cube - STAT_RenderTargetMemoryCube - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]        16306739  -  Render target memory 3D - STAT_RenderTargetMemory3D - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]       174919693  -  Render target memory 2D - STAT_RenderTargetMemory2D - STATGROUP_RHI - STATCAT_Advanced
[2021.04.27-15.33.05:701][452]2089.899MB total
[2021.04.27-15.33.05:701][452]LogWindows: FPlatformMisc::RequestExit(1)
[2021.04.27-15.33.05:701][452]LogCore: Engine exit requested (reason: Win RequestExit)
[2021.04.27-15.33.05:709][452]Log file closed, 04/27/21 21:03:05

We noticed per the TaskManager the GPU memory usage was even less than half for a 8GB GPU so not sure what exactly is at the play here that is causing this behavior.

Platform info:

  • Windows 10 Professional
  • RTX 3070 - 8GB
  • UE 4.26.2

did u find a fix for it?