Description

When changing the Mip Gen Settings of a Texture 2D Array, several errors such as: Error: Corrupt texture [NewTexture2DArray]! Missing bulk data for MipIndex=0 appear in the output logs and an Ensure is hit as well.

 

Tested in //UE4/Release-4.26 @ CL 15973114 and this did not occur so marking as a Regression

Steps to Reproduce
  1. Open a project
  2. Right-click in the Content Drawer
  3. Select Materials & Textures > Texture 2D Array
  4. Open the Texture 2D Array asset
  5. Add a texture to the array by clicking the + button next to Source Textures
  6. Navigate to the Mip Gen Settings
  7. Change it from NoMipMaps to FromTextureGroup

RESULTS:

An ensure is hit and an error saying there are corrupt textures appears

EXPECTED:

No errors appear in the output log when changing the Mip Gen Settings

Callstack
Ensure condition failed: Source [File:D:/build/++UE5/Sync/Engine/Source/Runtime/RenderCore/Private/RenderUtils.cpp] [Line: 826]

Stack: 
[Callstack] 0x00007ffc529012df UnrealEditor-RenderCore.dll!UnknownFunction []
[Callstack] 0x00007ffc24080eaf UnrealEditor-Engine.dll!UnknownFunction []
[Callstack] 0x00007ffc240923a0 UnrealEditor-Engine.dll!UnknownFunction []
[Callstack] 0x00007ffc528d065b UnrealEditor-RenderCore.dll!UnknownFunction []
[Callstack] 0x00007ffc5290a221 UnrealEditor-RenderCore.dll!UnknownFunction []
[Callstack] 0x00007ffc529146c8 UnrealEditor-RenderCore.dll!UnknownFunction []
[Callstack] 0x00007ffc272115ea UnrealEditor-Core.dll!UnknownFunction []
[Callstack] 0x00007ffc27211a6e UnrealEditor-Core.dll!UnknownFunction []
[Callstack] 0x00007ffc27211e01 UnrealEditor-Core.dll!UnknownFunction []
[Callstack] 0x00007ffc5293abc3 UnrealEditor-RenderCore.dll!UnknownFunction []
[Callstack] 0x00007ffc5293f694 UnrealEditor-RenderCore.dll!UnknownFunction []
[Callstack] 0x00007ffc2784382b UnrealEditor-Core.dll!UnknownFunction []
[Callstack] 0x00007ffc2783c610 UnrealEditor-Core.dll!UnknownFunction []
[Callstack] 0x00007ffc9b007c24 KERNEL32.DLL!UnknownFunction []
[Callstack] 0x00007ffc9cfad721 ntdll.dll!UnknownFunction []

Have Comments or More Details?

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

3
Login to Vote

Cannot Reproduce
ComponentUE - Rendering - RHI
Affects Versions5.0-early access
Target Fix5.0
CreatedJun 3, 2021
ResolvedJan 20, 2022
UpdatedJan 25, 2022