Crash when using ListStreamingTextures with VirtualTexturePrefetchMips

Hi,

We are trying to use the VirtualTexturePrefetchMips feature and it works but it’s hard to view the results since FRenderAssetStreamingManager::HandleListStreamingRenderAssetsCommand crashes when encountering one of these textures.

It seems like the issue is that for VTs with VirtualTexturePrefetchMips, TextureMips is empty, so the OutputMipsString lambda needs to look in (*TexturePlatformData)->VTData instead to get the size of OutputIndex

Thanks,

Lucas

[Attachment Removed]

Steps to Reproduce
Set VirtualTexturePrefetchMips > 0 on a VirtualTexture and then run the ListStreamingTextures console command.

[Attachment Removed]

Hello!

Thanks for reporting this bug, I’ve created the following issue for tracking which should be visible publicly soon https://issues.unrealengine.com/issue/UE\-384736

Your proposed fix looks correct and we’ll likely implement it soon.

[Attachment Removed]