Description

A material with 'enable stencil test' will crash on mobile.

Enable Stencil Test is a new option in materials as of 4.23

 

Confirmed with OpenGL 3.1 + 2 and Vulkan on Pixel XL

Also Crashes on iOS (iPad A1701)

 

Confirmed in 4.24 @ CL 8580229

Steps to Reproduce

Test project attached

  1. Create BP project with 4.23
  2. In projects settings change Custom Depth-Stencil Pass from 'Enabled' to 'Enabled with Stencil'
  3. Create Material PP_Stencil - Set material domain to post process and feed in a texture
  4. In Material - Enable "Enable Stencil Test" (New option as of 4.23) set Stencil Compare to 'Equal' and Stencil Ref Value to '1'
  5. Place a mesh in level and enable 'Render CustomDepth pass' - change CustomDepth StencilValue to from 0 to 1
  6. Place an unbound PostProcess volume with PP_Stencil set as a post process material

 

Callstack

LogPlayLevel: Error: 09-10 13:43:28.545 28455 28627 D UE4 : [2019.09.10-17.43.28:545][ 0]LogAndroid: Error: === Critical error: ===
LogPlayLevel: Error: 09-10 13:43:28.545 28455 28627 D UE4 : [2019.09.10-17.43.28:545][ 0]LogAndroid: Error:
LogPlayLevel: Error: 09-10 13:43:28.545 28455 28627 D UE4 : [2019.09.10-17.43.28:545][ 0]LogAndroid: Error: Assertion failed: SourceTexture->Target == DestTexture->Target [Link Removed] [Line: 2581]
LogPlayLevel: Error: 09-10 13:43:28.545 28455 28627 D UE4 : [2019.09.10-17.43.28:545][ 0]LogAndroid: Error:
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:545][ 0]LogAndroid: Error: [Callstack] 0x00000000CAFE3A28 libUE4.so(0x0000000003C06A28)!FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, ...) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CF383854 libUE4.so(0x0000000007FA6854)!void FDebug::CheckVerifyFailed<char16_t [1]>(char const*, char const*, int, char16_t const (&) [1]) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CEA1A038 libUE4.so(0x000000000763D038)!FOpenGLDynamicRHI::RHICopyTexture(FRHITexture*, FRHITexture*, FRHICopyTextureInfo const&) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CC5DA354 libUE4.so(0x00000000051FD354)!FRCPassPostProcessMaterial::Process(FRenderingCompositePassContext&) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CC695214 libUE4.so(0x00000000052B8214)!FRenderingCompositionGraph::RecursivelyProcess(FRenderingCompositeOutputRef const&, FRenderingCompositePassContext&) const []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CC69487C libUE4.so(0x00000000052B787C)!FRenderingCompositePassContext::Process(TArray<FRenderingCompositePass*, TSizedDefaultAllocator<32> > const&, char16_t const*) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CC5D255C libUE4.so(0x00000000051F555C)!FPostProcessing::ProcessES2(FRHICommandListImmediate&, FScene*, FViewInfo const&) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CC530C08 libUE4.so(0x0000000005153C08)!FMobileSceneRenderer::Render(FRHICommandListImmediate&) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CC7FC880 libUE4.so(0x000000000541F880)![Unknown]() []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CC7FE988 libUE4.so(0x0000000005421988)![Unknown]() []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CAE3BACC libUE4.so(0x0000000003A5EACC)!FNamedTaskThread::ProcessTasksNamedThread(int, bool) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CAE3A574 libUE4.so(0x0000000003A5D574)!FNamedTaskThread::ProcessTasksUntilQuit(int) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CBFE3DF0 libUE4.so(0x0000000004C06DF0)!RenderingThreadMain(FEvent*) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CC034400 libUE4.so(0x0000000004C57400)!FRenderingThread::Run() []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CAEC6D14 libUE4.so(0x0000000003AE9D14)!FRunnableThreadPThread::Run() []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000CAE35DD4 libUE4.so(0x0000000003A58DD4)!FRunnableThreadPThread::_ThreadProc(void*) []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000EF6AD4DA libc.so(0x00000000000634DA)![Unknown]() []
LogPlayLevel: Error: 09-10 13:43:28.546 28455 28627 D UE4 : [2019.09.10-17.43.28:546][ 0]LogAndroid: Error: [Callstack] 0x00000000EF667F2A libc.so(0x000000000001DF2A)![Unknown]() []

Have Comments or More Details?

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

8
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.234.24
Target Fix4.24
Fix Commit9630360
Main Commit9630362
Release Commit9630360
CreatedSep 10, 2019
ResolvedOct 17, 2019
UpdatedJan 13, 2021
View Jira Issue