Description
  • A check() is being hit intermittently when using adaptive virtual texture.
    check(Entry.Magic == Handle.Magic) 
    

    inside

    FVirtualTextureProducerCollection::GetProducer 
    
Steps to Reproduce
  • Open QAGame project and enable VirtualHeightFieldMesh plugin and restart. All referred maps/assets below are in the VirtualHeightFieldMesh plugin content.
  • Open the VHM_Landscape_P map.
  • Press G to go into game mode (which will show the VHM instead of the landscape)
  • Open the RVT_Landscape_Shading asset and set "Size of the virtual texture in tiles" to 12 and set "Enable adaptive page table".
  • Open Mat_VHM and in the details for the Runtime Virtual Texture Sample node set "Enable adaptive page table". Apply the change.
  • Open Mat_Landscape and convert the color node that feeds the BaseColor to a parameter. Apply the change.
  • Create a material instance from Mat_Landscape.
  • Assign the material instance to the Landscape actor.
  • Open up the material instance and start dragging the new parameter on the material instance left and right.
  • Eventually you will get a crash.
Callstack
>	UE4Editor-Renderer.dll!FVirtualTextureProducerCollection::GetProducer(const FVirtualTextureProducerHandle &) Line 213	C++
 	UE4Editor-Renderer.dll!FVirtualTextureSystem::SubmitRequestsFromLocalTileList(const TSet<FVirtualTextureLocalTile,DefaultKeyFuncs<FVirtualTextureLocalTile,0>,FDefaultSetAllocator> & LocalTileList, EVTProducePageFlags Flags, FRHICommandListImmediate & RHICmdList, ERHIFeatureLevel::Type FeatureLevel) Line 1762	C++
 	UE4Editor-Renderer.dll!FVirtualTextureSystem::SubmitPreMappedRequests(FRHICommandListImmediate & RHICmdList, ERHIFeatureLevel::Type FeatureLevel) Line 1827	C++
 	UE4Editor-Renderer.dll!FVirtualTextureSystem::Update(FRHICommandListImmediate & RHICmdList, ERHIFeatureLevel::Type FeatureLevel, FScene * Scene) Line 1173	C++
 	UE4Editor-Renderer.dll!FDeferredShadingSceneRenderer::Render(FRHICommandListImmediate & RHICmdList) Line 1497	C++
 	UE4Editor-Renderer.dll!RenderViewFamily_RenderThread(FRHICommandListImmediate & RHICmdList, FSceneRenderer * SceneRenderer) Line 3682	C++
 	UE4Editor-Renderer.dll!FRendererModule::BeginRenderingViewFamily::__l35::<lambda>(FRHICommandListImmediate & RHICmdList) Line 3945	C++

Have Comments or More Details?

There's no existing public thread on this issue, so head over to AnswerHub just mention UE-112011 in the post.

0
Login to Vote

Fixed
ComponentRendering - Features Teams
Affects Versions4.26
Target Fix4.27
Fix Commit15807624
CreatedMar 24, 2021
ResolvedMar 24, 2021
UpdatedApr 6, 2021