# (4.17.1) Editor Crashes when I click paint in Landscape Mode

**URL:** <https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116>\
**Category:** World Creation\
**Tags:** editor-crash, UE4-17, unreal-engine, crash, Landscape, question, landscape-layers\
**Created:** [August 17, 2017, 6:41pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116 "2017-08-17T18:41:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbattya](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jbattya](https://forums.unrealengine.com/u/jbattya)\
**Post date:** [August 17, 2017, 6:41pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/1 "2017-08-17T18:41:34Z")

</div>

I’ve recreated the landscape in a new project with the same result. It seems to only crash on landscapes with layers in the material as soon as I click the Paint button under the Landscape mode. The crash log mentioned the skylight, so I deleted it with the same result as well. It crashes every single time.

Here is the crash log:

```
Fatal error: [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialShared.cpp] [Line: 1867] Couldn't find Shader TBasePassPSFCachedPointIndirectLightingPolicySkylight for Material Resource M_FortBraggSurface! RenderMeshShaderMap 1, RenderThreadShaderMap 1 GameMeshShaderMap 1, GameThreadShaderMap 1, bShaderWasFoundInGameShaderMap 0 With VF=FLocalVertexFactory, Platform=PCD3D_SM5 ShouldCache: Mat=0, VF=1, Shader=1 MaterialUsageDesc: LightingModel=MSM_DefaultLit, BlendMode=BLEND_Opaque, SpecialEngine=0, TwoSided=0, TSNormal=1, Masked=0, Distorted=0, WritesEveryPixel=1, ModifiesMeshPosition=0, Usage={bUsedWithStaticLighting}

UE4Editor_Core!FDebug::AssertFailed() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\misc\assertionmacros.cpp:349]
UE4Editor_Engine!FMaterial::GetShader() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\engine\private\materials\materialshared.cpp:1854]
UE4Editor_Renderer!GetUniformBasePassShaders<2>() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\basepassrendering.cpp:778]
UE4Editor_Renderer!GetBasePassShaders<FUniformLightMapPolicy>() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\basepassrendering.cpp:834]
UE4Editor_Renderer!TBasePassDrawingPolicy<FUniformLightMapPolicy>::TBasePassDrawingPolicy<FUniformLightMapPolicy>() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\basepassrendering.h:1040]
UE4Editor_Renderer!FDrawBasePassStaticMeshAction::Process<FUniformLightMapPolicy>() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\basepassrendering.cpp:462]
UE4Editor_Renderer!ProcessBasePassMesh<FDrawBasePassStaticMeshAction>() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\basepassrendering.h:1563]
UE4Editor_Renderer!FBasePassOpaqueDrawingPolicyFactory::AddStaticMesh() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\basepassrendering.cpp:511]
UE4Editor_Renderer!FStaticMesh::AddToDrawLists() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\scenecore.cpp:366]
UE4Editor_Renderer!FPrimitiveSceneInfo::AddStaticMeshes() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\primitivesceneinfo.cpp:151]
UE4Editor_Renderer!FPrimitiveSceneInfo::AddToScene() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\primitivesceneinfo.cpp:204]
UE4Editor_Renderer!FScene::AddPrimitiveSceneInfo_RenderThread() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\rendererscene.cpp:517]
UE4Editor_Renderer!<lambda_0628b7e343e078d62bb69bb7a0b80e2d>::operator()() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\renderer\private\rendererscene.cpp:787]
UE4Editor_Renderer!TGraphTask<TEnqueueUniqueRenderCommandType<`FScene::AddPrimitive'::`2'::AddPrimitiveCommandName,<lambda_0628b7e343e078d62bb69bb7a0b80e2d> > >::ExecuteTask() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\public\async\taskgraphinterfaces.h:784]
UE4Editor_Core!FNamedTaskThread::ProcessTasksNamedThread() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\async\taskgraph.cpp:650]
UE4Editor_Core!FNamedTaskThread::ProcessTasksUntilQuit() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\async\taskgraph.cpp:559]
UE4Editor_RenderCore!RenderingThreadMain() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\rendercore\private\renderingthread.cpp:325]
UE4Editor_RenderCore!FRenderingThread::Run() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\rendercore\private\renderingthread.cpp:459]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\build\++ue4+release-4.17+compile\sync\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:76]
```

---

<div class="post-metadata">

**Author:** ![knotar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knotar](https://forums.unrealengine.com/u/knotar)\
**Post date:** [August 20, 2017, 7:04pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/2 "2017-08-20T19:04:34Z")

</div>

I have the same issue. Haven’t been able to find a fix. Hopefully Epic will look into it:

Fatal error: [File:D:\Build++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialShared.cpp] [Line: 1867] Couldn’t find Shader TBasePassPSFCachedPointIndirectLightingPolicySkylight for Material Resource MAT\_Landscape\_Island\_Beach! RenderMeshShaderMap 1, RenderThreadShaderMap 1 GameMeshShaderMap 1, GameThreadShaderMap 1, bShaderWasFoundInGameShaderMap 0 With VF=FLocalVertexFactory, Platform=PCD3D\_SM5 ShouldCache: Mat=0, VF=1, Shader=1 MaterialUsageDesc: LightingModel=MSM\_DefaultLit, BlendMode=BLEND\_Opaque, SpecialEngine=0, TwoSided=0, TSNormal=1, Masked=0, Distorted=0, WritesEveryPixel=1, ModifiesMeshPosition=0, Usage={bUsedWithStaticLighting}  
6]

---

<div class="post-metadata">

**Author:** ![adi1961](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adi1961](https://forums.unrealengine.com/u/adi1961)\
**Post date:** [August 21, 2017, 8:36am UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/3 "2017-08-21T08:36:53Z")

</div>

I just have the same problem with you, can’t paint on my landscape in 4.17.1 it always crashes the editor ☹

---

<div class="post-metadata">

**Author:** ![Stephen\_Ellis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stephen_ellis/32/1225296_2.png) [@Stephen\_Ellis](https://forums.unrealengine.com/u/Stephen_Ellis)\
**Post date:** [August 21, 2017, 1:06pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/4 "2017-08-21T13:06:38Z")

</div>

Hi all.

The crash you are experiencing appears to be due to the issue we are tracking as [UE-44076 (Crash When Opening Static Mesh After Enabling Forward Shading And Disabling “Support Stationary Skylight”)](https://issues.unrealengine.com/issue/UE-44076). It is reproducable when “Forward Shading” and “Support Stationary Skylight” are enabled. You could try disabling these as a temporary workaround. If you continue to experience the crash afterwards with different reproduction steps, please let us know.

Cheers

---

<div class="post-metadata">

**Author:** ![knotar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@knotar](https://forums.unrealengine.com/u/knotar)\
**Post date:** [August 22, 2017, 4:22am UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/5 "2017-08-22T04:22:00Z")

</div>

I’ve disabled “Support Stationary Skylight” and it works now. Thanks!

---

<div class="post-metadata">

**Author:** ![adi1961](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adi1961](https://forums.unrealengine.com/u/adi1961)\
**Post date:** [August 22, 2017, 8:02am UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/6 "2017-08-22T08:02:18Z")

</div>

Thanks Stephen, in the time being, I disable the “support stationary skylight” and change the skylight to movable and it work. Will there be a bug fix patch in version 4.17 for this problem? or it will be fix in 4.18?

---

<div class="post-metadata">

**Author:** ![Stephen\_Ellis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stephen_ellis/32/1225296_2.png) [@Stephen\_Ellis](https://forums.unrealengine.com/u/Stephen_Ellis)\
**Post date:** [August 22, 2017, 1:04pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/7 "2017-08-22T13:04:40Z")

</div>

The fix is currently targeted for the 4.18 release. I’ll discuss if there is an opportunity to get the fix for a 4.17 hotfix, but there is no guarantee.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b45a116d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b45a116d](https://forums.unrealengine.com/u/anonymous_user_b45a116d)\
**Post date:** [October 13, 2017, 9:47pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/8 "2017-10-13T21:47:54Z")

</div>

This was driving me crazy too. Thanks for the help everyone. Disabling the “support stationary skylight” in project settings stopped the crashing.

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 29, 2018, 8:46pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/9 "2018-07-29T20:46:14Z")

</div>

In 4.20.1 if you enabled “Forward Shading” and disabled “Support Stationary Skylight”, you will get crash(same error).

---

<div class="post-metadata">

**Author:** ![Stephen\_Ellis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stephen_ellis/32/1225296_2.png) [@Stephen\_Ellis](https://forums.unrealengine.com/u/Stephen_Ellis)\
**Post date:** [July 30, 2018, 1:22pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/10 "2018-07-30T13:22:18Z")

</div>

Yes, the fix for this crash had been delayed. Now currently targeting the 4.21 release.

---

<div class="post-metadata">

**Author:** ![jwhit25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jwhit25](https://forums.unrealengine.com/u/jwhit25)\
**Post date:** [July 30, 2018, 5:38pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/11 "2018-07-30T17:38:37Z")

</div>

Just tried this on 4.20.1 with both Forward Shading and Stationary Skylight disabled, still produces the same error and crashes.

---

<div class="post-metadata">

**Author:** ![J\_Tox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/j_tox/32/1040506_2.png) [@J\_Tox](https://forums.unrealengine.com/u/J_Tox)\
**Post date:** [August 27, 2018, 7:31am UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/12 "2018-08-27T07:31:26Z")

</div>

Have the same problem with the Oculus Source Distribution 4.20.2 ion my VR project.  
Do I have to work without the forward shading also ?

---

<div class="post-metadata">

**Author:** ![J\_Tox](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/j_tox/32/1040506_2.png) [@J\_Tox](https://forums.unrealengine.com/u/J_Tox)\
**Post date:** [August 27, 2018, 7:35am UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/13 "2018-08-27T07:35:49Z")

</div>

UPDATE:  
I just change the Support Stationary Skylight to enabled and kept my Forward Shading and now I can access the material without crash !

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [January 1, 2019, 3:03pm UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/14 "2019-01-01T15:03:37Z")

</div>

I’m having this issue on 4.21.3. If I disable Support PointLight WholeSceneShadows, every time I try to drag a point or rect light in the level, it crashes. Unless there’s nothing with a lit material in it.

---

<div class="post-metadata">

**Author:** ![DLROKen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DLROKen](https://forums.unrealengine.com/u/DLROKen)\
**Post date:** [October 25, 2019, 9:39am UTC](https://forums.unrealengine.com/t/4-17-1-editor-crashes-when-i-click-paint-in-landscape-mode/402116/15 "2019-10-25T09:39:48Z")

</div>

I fixed the issue by setting the scene to unlit, and switching the landscape material back and forth with another material a few times, for some reason it just finally starting working right. At best guess I think it has something to do with the shaders.
