Virtual Texture + Instanced Stereo broken in 5.6 and 5.7 preview

Using virtual textures with instanced stereo enabled crashes the engine immediately. Would like to know if this is being looked into, since it’s crucial for our project. Thanks.

Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\RHI\Private\PipelineStateCache.cpp] [Line: 533]
Shader compilation failures are Fatal.

UnrealEditor_RHI
UnrealEditor_RHI
UnrealEditor_RHI
UnrealEditor_RHI
UnrealEditor_RHI
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
UnrealEditor_Core
kernel32
ntdll

Steps to reproduce in a new project:

-Enable instanced stereo, virtual texture support, and restart engine.

-Create a virtual texture asset VT.

-Create virtual texture volume and apply VT.

-Create a floor mesh and apply a new material M1. Set Runtime Virtual Texture Sample of VT as basecolor.

-Create any mesh with material M2 with runtime virtual texture output node and set anything to the basecolor output.

-With everything in place set the mesh to draw in VT and the engine will crash.

The order of the steps or the VT setup is not important, the engine will crash as soon as the VT should start drawing.

We are no longer able to reproduce this in the full 5.7 release build (we were able to previously)

Hey @VictorLerp

Unfortunately we’re still having this issues, I built a version from the current (last Saturday) 5.7 github branch and still get the crash is there a branch where this should be already fixed?

Easiest way for us to reproduce it in a new project:

  1. Turn on InstancedStereo → restart
  2. Enable PCG framework and PCG Biome Core and PCG Biome Sample and open the BiomeSampleLevel in the PCG Biome Sample plugin content folder → Crash

it only crashes when InstancedStereo is enabled.

Thanks!

1 Like

I used the fix you provided in the Unreal Engine main branch in version 5.6.1 and encountered the same problem as in the post.

We were able to reproduce it with the steps you provided. Thanks for providing us with the information, I’ve filed a ticket and you can follow the status of it here: https://issues.unrealengine.com/issue/UE-351347

1 Like

Okay thanks! I’ll keep an eye on it.