Search Issue Tracker

Fixed in 2020.2.X

Fixed in 2019.4.X, 2020.1.X



Found in





Issue ID




Crash on Shader::GetLocalKeywordRemap or ShaderLab::Pass::ApplyPass when Trees are painted on a Terrain



Reproduction steps:
1. Open attached project "1254964"
2. Open scene "myscene" and select "Terrain" from the Hierarchy
3. In the Inspector, press on the Paint Trees tab and select the "Forest_Tree_1B"
4. Left-click on the terrain to paint the trees
-- observe crash

Reproducible with: 2019.3.16f1, 2019.4.1f1, 2020.1.0b11, 2020.1.0b13, 2020.2.0a12, 2020.2.0a15
Not reproducible with: 2018.4.23f1, 2019.3.15f1, 2020.1.0a1, 2020.1.0b10, 2020.2.0a1, 2020.2.0a11

  1. Resolution Note (fix version 2020.2):

    Fixed in 2020.2.0a16

  2. Resolution Note (fix version 2020.1):

    Fixed in 2020.1.0b15

  3. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.3f1

Comments (10)

  1. nm430625

    Apr 30, 2022 03:47

    I'm so happy to share this with you that can read / see this now. When I started trading binary and forex a few months ago, I really didn't have the necessary tools to trade and I lost a lot until I met Pablo Martinez who taught me all about market psychology as he managed my account for me. Today I am grateful to him for his great offer and help because it really changed my financial situation with an investment capital of $1500 and now I'm earning around $35,500 - $30,000 profits per week. Here is his WhatsApp no: +44 7520 636249 or his email address:

  2. escortservicegurugram20

    Mar 05, 2021 12:16 is one of the most independent escorts agency in Delhi provides high class Call Girls Service in India based at Delhi. All Our ladies are love-making hungry that’s the primary motive they provide this sort of correct sexual revel in that will help you customers whom they are able to never originate from their lady pals or maybe better halves.

  3. ConnaughtPlaceEscortsService

    Mar 05, 2021 09:46

    Delhi Escort is now ready to provide high class Delhi escorts for your sexual desires. Call us +91-9899442500 to get finest Delhi Escorts service and make your dream come true.

  4. divyajiwebmaster

    Feb 15, 2021 06:03

    Also happens for me in 2019.4.0f1. Moving certain lines of C# Code around fixes the problem, but it's very odd - maybe it indicates some form of memory corruption

  5. gangnam1223

    Nov 11, 2020 18:33강남출장안마부천출장안마신촌출장안마신림출장안마영등포출장안마장안동출장안마종로출장안마청담출장안마사당출장안마대치동출장안마논현동출장안마역삼출장안마서초출장안마서울출장안마잠실출장안마마포출장안마출장안마출장안마서울출장안마강남출장안마강남출장안마용산출장안마청량리출장안마노원출장안마송파출장안마관악구출장안마광진구출장안마역삼동출장안마서초동출장안마삼성동출장안마압구정동출장안마이태원출장안마을지로출장안마충무로출장안마남대문출장안마방배동출장안마홍대출장안마서울대입구출장안마교대출장안마신논현출장안마중랑출장안마상봉동출장안마회기동출장안마사가정출장안마망우동출장안마신림동출장안마구로출장안마여의도출장안마목동출장안마의정부출장안마강서구출장안마천호동출장안마문정동출장안마경기도출장안마남양주출장안마구리출장안마동대문출장안마서대문출장안마은평구출장안마성동구출장안마성북구출장안마양천구출장안마도봉구출장안마강남출장안마서울출장안마서초출장안마역삼출장안마논현출장안마대치출장안마사당출장안마청담출장안마마포출장안마종로출장안마장안동출장안마영등포출장안마신림출장안마잠실출장안마신촌출장안마부천출장안마인천출장안마일산출장안마강북출장안마성남출장안마

  6. FallenTreeGames

    Jul 06, 2020 19:56

    We've had to turn off shadows while we wait for the fix to be released.

  7. kuwabara_

    Jun 19, 2020 03:26

    This issue also occurred in our project.
    We have confirmed that it has also occurred in Unity 2019.4.1f1 released today.
    The call stack when the phenomenon occurred was as follows.

    > UnityPlayer.dll!Shader::GetLocalKeywordRemap(int,int)
    UnityPlayer.dll!ShaderLab::Pass::ApplyPass(unsigned int,class ShaderPropertySheet const *,struct ShaderPassContext &,class Shader *,int,int,class ShaderLab::GrabPasses const *,class ShaderLab::SubPrograms *,struct DeviceRenderStateBlock const *)
    UnityPlayer.dll!ApplyMaterialPassWithCache(struct SharedMaterialData const &,struct ShaderPassContext &,class Shader *,class ShaderLab::Pass *,int,int,bool,class ShaderLab::GrabPasses const *,class ShaderLab::SubPrograms *,struct DeviceRenderStateBlock const *)
    UnityPlayer.dll!ApplyMaterialPassAndKeywordsWithCache(struct SharedMaterialData const &,struct ShaderPassContext &,class Shader *,class ShaderLab::Pass *,int,int,bool,class ShaderLab::GrabPasses const *,class ShaderLab::SubPrograms *,struct DeviceRenderStateBlock const *)
    UnityPlayer.dll!BatchRenderer::ApplyShaderPass(struct ShaderPassContext &,struct SharedMaterialData const *,class Shader *,struct BatchRenderer::PassInfo &,enum BatchingFlags,bool,bool,class ShaderLab::GrabPasses const *,struct DeviceRenderStateBlock const *)
    UnityPlayer.dll!GfxDevice::ExecuteAsync(int,void (*)(struct GfxDeviceAsyncCommand::ArgScratch *,struct GfxDeviceAsyncCommand::Arg const *),struct GfxDeviceAsyncCommand::ArgScratch * *,struct GfxDeviceAsyncCommand::Arg const *,struct JobFence const &)
    UnityPlayer.dll!GfxDeviceClient::ExecuteAsync(int,void (*)(struct GfxDeviceAsyncCommand::ArgScratch *,struct GfxDeviceAsyncCommand::Arg const *),struct GfxDeviceAsyncCommand::ArgScratch * *,struct GfxDeviceAsyncCommand::Arg const *,struct JobFence const &)
    UnityPlayer.dll!RenderShadowMaps(struct ShadowMapJobHeader const *,struct ShaderPassContext &,enum RenderTexture::SetActiveFlags)
    UnityPlayer.dll!ForwardShaderRenderLoop::RenderLightShadowMaps(struct ForwardShadowMap &,bool,bool,struct ShaderPassContext &)
    UnityPlayer.dll!ForwardShaderRenderLoop::PerformRendering(struct JobFence &,struct ActiveLight const *,struct ShadowJobData const &,bool,bool,bool,enum Camera::RenderFlag)
    UnityPlayer.dll!DoForwardShaderRenderLoop(struct RenderLoopContext const &,struct dynamic_array<struct RenderObjectData,0> &,struct CullResults const &,bool,bool,bool,enum Camera::RenderFlag)
    UnityPlayer.dll!DoRenderLoop(struct RenderLoop &,enum RenderingPath,struct CullResults &,struct ShadowMapCache &)
    UnityPlayer.dll!Camera::DoRender(struct CullResults &,enum Camera::RenderFlag,class Camera::PerformRenderFunction *)
    UnityPlayer.dll!Camera::CustomRender(struct CullResults &,struct ShaderPassContext &,struct CameraRenderingParams const *,enum Camera::RenderFlag,class Camera::PerformRenderFunction *,void (*)(void),void (*)(void))
    UnityPlayer.dll!RenderManager::RenderCameras(int,void (*)(void),void (*)(void))
    UnityPlayer.dll!ExecutePlayerLoop(struct NativePlayerLoopSystem *)
    UnityPlayer.dll!ExecutePlayerLoop(struct NativePlayerLoopSystem *)
    UnityPlayer.dll!UnityMainImpl(struct HINSTANCE__ *,struct HINSTANCE__ *,wchar_t *,int)

    00007FFAA4F334C0 mov r9,qword ptr [rcx+50h]
    00007FFAA4F334C4 movsxd rcx,edx
    00007FFAA4F334C7 mov rax,qword ptr [r9]
    00007FFAA4F334CA mov rax,qword ptr [rax+rcx*8]
    00007FFAA4F334CE movsxd rcx,r8d
    00007FFAA4F334D1 add rcx,rcx
    >00007FFAA4F334D4 mov rax,qword ptr [rax+60h]
    00007FFAA4F334D8 movsxd rdx,dword ptr [rax+rcx*8+8]
    00007FFAA4F334DD test edx,edx
    00007FFAA4F334DF jns Shader::GetLocalKeywordRemap+24h (07FFAA4F334E4h)
    00007FFAA4F334E1 xor eax,eax
    00007FFAA4F334E3 ret
    00007FFAA4F334E4 mov rax,rdx
    00007FFAA4F334E7 shl rax,8
    00007FFAA4F334EB add rax,qword ptr [r9+0A8h]
    00007FFAA4F334F2 ret
    00007FFAA4F334F3 int 3
    00007FFAA4F334F4 int 3
    00007FFAA4F334F5 int 3
    00007FFAA4F334F6 int 3
    00007FFAA4F334F7 int 3
    00007FFAA4F334F8 int 3
    00007FFAA4F334F9 int 3
    00007FFAA4F334FA int 3
    00007FFAA4F334FB int 3
    00007FFAA4F334FC int 3
    00007FFAA4F334FD int 3
    00007FFAA4F334FE int 3
    00007FFAA4F334FF int 3

  8. RaventurnPatrick

    Jun 16, 2020 11:02

    If needed I can provide crash dumps. Btw for me it's not related to Terrain at all but rather happens when drawing the Game View (in game) after switching to another scene

    Unity.exe caused an Access Violation (0xc0000005)
    in module Unity.exe at 0033:426779c3.
    0x00007FF7426779C3 (Unity) Shader::GetLocalKeywordRemap
    0x00007FF741513A13 (Unity) ShaderLab::Pass::ApplyPass
    0x00007FF7414D2B13 (Unity) ApplyMaterialPassWithCache
    0x00007FF7414D2715 (Unity) ApplyMaterialPassAndKeywordsWithCache
    0x00007FF740C6A5B4 (Unity) BatchRenderer::ApplyShaderPass
    0x00007FF740B7E34E (Unity) RenderCasters
    0x00007FF740B8590E (Unity) ShadowMapJob
    0x00007FF73FF8AEF3 (Unity) GfxDevice::ExecuteAsync
    0x00007FF740B81481 (Unity) RenderShadowMaps
    0x00007FF740C74C8A (Unity) ForwardShaderRenderLoop::RenderLightShadowMaps
    0x00007FF740C71BF7 (Unity) ForwardShaderRenderLoop::PerformRendering
    0x00007FF740C6D2CF (Unity) DoForwardShaderRenderLoop
    0x00007FF740C57962 (Unity) DoRenderLoop
    0x00007FF740BFFDC5 (Unity) Camera::CustomRender
    0x00007FF740C0DB36 (Unity) RenderManager::RenderCameras
    0x00007FF73F6A7F9B (Unity) RepaintController::RenderPlayModeViewCameras
    0x00007FF73FDB661E (Unity) EditorGUIUtility::RenderPlayModeViewCamerasInternal

  9. RaventurnPatrick

    Jun 16, 2020 10:58

    Also happens for me in 2019.4.0f1. Moving certain lines of C# Code around fixes the problem, but it's very odd - maybe it indicates some form of memory corruption

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.