# Crash on build lighting in 4.20

**URL:** <https://forums.unrealengine.com/t/crash-on-build-lighting-in-4-20/429904>\
**Category:** Rendering\
**Tags:** building-lighting, unreal-engine, crash, Lighting, question\
**Created:** [July 21, 2018, 5:13am UTC](https://forums.unrealengine.com/t/crash-on-build-lighting-in-4-20/429904 "2018-07-21T05:13:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pinworm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pinworm](https://forums.unrealengine.com/u/Pinworm)\
**Post date:** [July 21, 2018, 5:13am UTC](https://forums.unrealengine.com/t/crash-on-build-lighting-in-4-20/429904/1 "2018-07-21T05:13:24Z")

</div>

I’m getting the same error as this ticket which was marked resolved:

UE-61492

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-61492)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

Fatal error: [File:D:\Build++UE4\Sync\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp] [Line: 1502] Shader expected a uniform buffer of struct type SceneTexturesStruct at slot 3 but got null instead. Rendering code needs to set a valid uniform buffer for this slot.

Is there a way to find out which material is causing this? Worked fine in 4.19.

---

<div class="post-metadata">

**Author:** ![Spoondog](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spoondog](https://forums.unrealengine.com/u/Spoondog)\
**Post date:** [April 23, 2019, 6:01am UTC](https://forums.unrealengine.com/t/crash-on-build-lighting-in-4-20/429904/2 "2019-04-23T06:01:42Z")

</div>

This happens consistently in 4.22 if I open a particle system in cascade, where one of the emitters uses a material with a custom node accessing SceneTexturesStruct. The custom node line in question is:

Texture2DSample(SceneTexturesStruct.CustomDepthTexture,SceneTexturesStruct.CustomDepthTextureSampler,UV);

Seems to work fine in-game and in the material editor, crash only happens for me in cascade.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [July 9, 2019, 7:54am UTC](https://forums.unrealengine.com/t/crash-on-build-lighting-in-4-20/429904/3 "2019-07-09T07:54:48Z")

</div>

I’m also getting it in 4.22 by using a Particle System placed in the level, where the emitter’s material Domain is set to Volume, in conjunction with a DepthFade node (which uses the scene depth internally)  
I’m not using any custom node at all
