Description

This crash will only occur when this criteria is met.

  • You have enabled custom depth with stencils in the project settings
  • A mesh in the scene is rendering to custom depth with a stencil value of 1
  • The mesh has a material applied that is using WPO
  • You are in a High-End Mobile preview level (ES3_1)
Steps to Reproduce
  1. Open a blank project
  2. Open project settings and enable custom depth with stencils
  3. Select floor mesh and check "render custom depth" then assign stencil value of 1
  4. Create a new material and plug in a vector 3 into WPO make sure the value is greater than (0,0,0)
  5. Compile the material and apply to floor in scene
  6. Click settings button>Preview Rendering level> High-End Mobile/Metal>IOS Preview
  7. Wait for engine to change rendering level

RESULT
The engine crashes after compiling shaders.

EXPECTED
The preview rendering level switches and the material displays.

Callstack
UE4Editor_Engine!FMaterial::GetShader() materialshared.cpp:1796 
UE4Editor_Renderer!FDepthDrawingPolicy::FDepthDrawingPolicy() depthrendering.cpp:326 
UE4Editor_Renderer!FDepthDrawingPolicyFactory::DrawMesh() depthrendering.cpp:735 
UE4Editor_Renderer!FDepthDrawingPolicyFactory::DrawStaticMesh() depthrendering.cpp:820 
UE4Editor_Renderer!FCustomDepthPrimSet::DrawPrims() customdepthrendering.cpp:77 
UE4Editor_Renderer!FSceneRenderer::RenderCustomDepthPass() scenerendering.cpp:1540 
UE4Editor_Renderer!FMobileSceneRenderer::Render() mobileshadingrenderer.cpp:183 
UE4Editor_Renderer!RenderViewFamily_RenderThread() scenerendering.cpp:1728 
UE4Editor_Renderer!TGraphTask<`FRendererModule::BeginRenderingViewFamily'::`21'::EURCMacro_FDrawSceneCommand>::ExecuteTask() taskgraphinterfaces.h:883 
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() taskgraph.cpp:954 
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() taskgraph.cpp:701 
UE4Editor_RenderCore!RenderingThreadMain() renderingthread.cpp:325 
UE4Editor_RenderCore!FRenderingThread::Run() renderingthread.cpp:459 
UE4Editor_Core!FRunnableThreadWin::Run() windowsrunnablethread.cpp:76 

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

2
Login to Vote

Fixed
ComponentUE - Platform - Mobile
Affects Versions4.14.34.15
Target Fix4.16
Fix Commit3311347
Main Commit3383473
CreatedFeb 15, 2017
ResolvedFeb 20, 2017
UpdatedSep 16, 2019
View Jira Issue