Description

Engine crashes when building GPU lightmass in larger scenes. This does not occur on smaller maps like the Unreal Engine Templates. I was able to reproduce this issue in CitySamples SmallCity map.

This issue also occurs in 5.0.1

Steps to Reproduce
  1. Open CitySample or any other large project with a considerable amount of textures
  2. Turn GPU Lightmass plugin ON
  3. Restart engine
  4. Build GPU Lightmass

Actual Result: Engine crashes while building GPU Lightmass
Expected Result: Engine does not crash and builds as expected

Callstack
Assertion failed: Index <= 0xffff [File:D:\P4\5.1Main\Engine\Source\Runtime\Renderer\Private\VT\VirtualTextureAllocator.cpp] [Line: 114]
UnrealEditor_Renderer!FVirtualTextureAllocator::AcquireBlock() [VirtualTextureAllocator.cpp:114]
UnrealEditor_Renderer!FVirtualTextureAllocator::SubdivideBlock() [VirtualTextureAllocator.cpp:213]
UnrealEditor_Renderer!FVirtualTextureAllocator::MarkBlockAllocated() [VirtualTextureAllocator.cpp:324]
UnrealEditor_Renderer!FVirtualTextureAllocator::MarkBlockAllocated() [VirtualTextureAllocator.cpp:335]
UnrealEditor_Renderer!FVirtualTextureAllocator::MarkBlockAllocated() [VirtualTextureAllocator.cpp:335]
UnrealEditor_Renderer!FVirtualTextureAllocator::Alloc() [VirtualTextureAllocator.cpp:505]
UnrealEditor_Renderer!FVirtualTextureSystem::AcquireSpace() [VirtualTextureSystem.cpp:811]
UnrealEditor_Renderer!FAllocatedVirtualTexture::FAllocatedVirtualTexture() [AllocatedVirtualTexture.cpp:97]
UnrealEditor_Renderer!FVirtualTextureSystem::AllocateVirtualTexture() [VirtualTextureSystem.cpp:662]
UnrealEditor_GPULightmass!GPULightmass::FLightmapPreviewVirtualTexture::FLightmapPreviewVirtualTexture() [LightmapPreviewVirtualTexture.cpp:58]
UnrealEditor_GPULightmass!<lambda_981a586319f50e135455e5d11603dc34>::operator() [Scene.cpp:1067]
UnrealEditor_GPULightmass!TEnqueueUniqueRenderCommandType<`GPULightmass::FScene::AddGeometryInstanceFromComponent'::`2'::RenderThreadInitName,<lambda_981a586319f50e135455e5d11603dc34> >::DoTask() [RenderingThread.h:193]
UnrealEditor_GPULightmass!TGraphTask<TEnqueueUniqueRenderCommandType<`GPULightmass::FScene::AddGeometryInstanceFromComponent'::`2'::RenderThreadInitName,<lambda_981a586319f50e135455e5d11603dc34> > >::ExecuteTask() [TaskGraphInterfaces.h:1276]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksNamedThread() [TaskGraph.cpp:761]
UnrealEditor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [TaskGraph.cpp:650]
UnrealEditor_Core!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn() [TaskGraph.cpp:2128]
UnrealEditor_RenderCore!RenderingThreadMain() [RenderingThread.cpp:380]
UnrealEditor_RenderCore!FRenderingThread::Run() [RenderingThread.cpp:527]
UnrealEditor_Core!FRunnableThreadWin::Run() [WindowsRunnableThread.cpp:149]

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-151841 in the post.

2
Login to Vote

Unresolved
ComponentUE - Rendering
Affects Versions5.0.15.1
Target Fix5.1
CreatedMay 12, 2022
UpdatedAug 12, 2022