Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Kernel 'KSampleCopy4_1_x_8' not found under Unity 2018.3

Discussion in 'Graphics Experimental Previews' started by dgoyette, Dec 13, 2018.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,113
    I've just updated to Unity 2018.3, and updated HDRP and ShaderGraph to 4.6. I'm seeing this in every scene, even a brand new scene. I'm also seeing this if I just open one of my Shader Graph shaders, despite there not being any apparent errors I can see (purple nodes) in Shader Graph.

    I've tried deleting Library/ScriptAssemblies, Library/PackageCache, and Library/ShaderCache. This doesn't happen on a brand new project, but I don't see any details in the error to help me pin this down to something in my project. I've set my SRP to a new, default HDRP profile. I tried downgrading to version 4.3 of HDRP and Shader Graph, but it's the same story.

    Anyone else seeing this? Any way to figure out what's causing it?

    Code (CSharp):
    1. ArgumentException: Kernel 'KSampleCopy4_1_x_8' not found.
    2. UnityEngine.Experimental.Rendering.GPUCopy..ctor (UnityEngine.ComputeShader shader) (at Library/PackageCache/com.unity.render-pipelines.high-definition@4.6.0-preview/Runtime/Core/CoreResources/GPUCopy.cs:16)
    3. UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipeline..ctor (UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset asset) (at Library/PackageCache/com.unity.render-pipelines.high-definition@4.6.0-preview/Runtime/RenderPipeline/HDRenderPipeline.cs:253)
    4. UnityEngine.Experimental.Rendering.HDPipeline.HDRenderPipelineAsset.InternalCreatePipeline () (at Library/PackageCache/com.unity.render-pipelines.high-definition@4.6.0-preview/Runtime/RenderPipeline/HDRenderPipelineAsset.cs:23)
    5. UnityEngine.Experimental.Rendering.RenderPipelineAsset.CreatePipeline () (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineAsset.cs:19)
    6. UnityEngine.Experimental.Rendering.RenderPipelineManager.PrepareRenderPipeline (UnityEngine.Experimental.Rendering.IRenderPipelineAsset pipe) (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:55)
    7. UnityEngine.Experimental.Rendering.RenderPipelineManager.DoRenderLoop_Internal (UnityEngine.Experimental.Rendering.IRenderPipelineAsset pipe, UnityEngine.Camera[] cameras, System.IntPtr loopPtr) (at C:/buildslave/unity/build/Runtime/Export/RenderPipeline/RenderPipelineManager.cs:28)
    8. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    9.  
     
    Necronomicron likes this.
  2. Jick87

    Jick87

    Joined:
    Oct 21, 2015
    Posts:
    124
    I had this same issue. I was able to get around it by completely deleting the HDRP and Shader Graph packages and re-importing them new. Maybe it's caused by an old leftover file or something didn't update fully for some reason?
     
    Necronomicron likes this.
  3. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,113
    Good call. I complete removed HDRP and Shader Graph, restarted Unity, and readded them. This resolved my issue. Thanks a bunch.
     
    Jick87 likes this.
  4. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    629
    Yes, this can happen from time to time when upgrading.
    To fix it faster, instead of removing and readdind the packages, you can right-click and re-import them in the project view.
     
  5. hd5ai

    hd5ai

    Joined:
    Nov 2, 2018
    Posts:
    5
    Is there a known reason why this can happen? It hits us semi frequently when building standalones (Vulkan on Linux) - occasionally we'll just get nothing but a black screen on the built version and the log is screaming about
    KSampleCopy4_1_x_8
    . Very occasionally we get it in the editor too. In the past we noticed that if we jiggled the supported/preferred graphics API in Player Settings it would trigger .. something? .. that fixed it.

    We'll try reimports if it persists, but is there any known longer term workaround for it? Given how sporadic the failure is, it's hard to repro and send in as a bug.
     
    Team6Developers and JonForshaw like this.
  6. Team6Developers

    Team6Developers

    Joined:
    Nov 19, 2018
    Posts:
    12
    From what we saw, when this black screen issue happens, we disable post-processing in the scene and it manages to render properly (without PP ofc). Maybe this would help somewhat to narrow down this issue..
     
  7. Waterlane

    Waterlane

    Joined:
    Mar 13, 2015
    Posts:
    188
    Having a problem with this…


    I’ve created a NEW project (Unity 2018.3.0f2 with HDRP 4.10.0)

    When I added basic assets ( cube + sphere), they showed up as wire outlines (in shaded view) – and game view was black. I had a similar error message as above/dgoyette.

    Chose to remove HDRP – then reimported it. Now HDRP/Lit materials are showing up as pink and there is No Option Render Pipeline under the Edit Menu.

    Can anyone explain what’s going on/how to fix?
    [I’ve closed/re-opened the project btw]
     
  8. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    629
    @Waterlane : I'm unable to reproduce your issue with Unity 2018.3.6f1, worth trying to update ?
    If it stills occurs, can you give us more informations on your setup (Hardware, OS ...) ?
    Thanks.
     
  9. Waterlane

    Waterlane

    Joined:
    Mar 13, 2015
    Posts:
    188
    @Remy_Unity Hi - thanks for getting back - I submitted this as a bug - if you'd like more info just let me know (1130603)
     
  10. AJS654321

    AJS654321

    Joined:
    Oct 11, 2018
    Posts:
    57
    hi, i have just removed them, restarted unity, how do i download them again?
     
  11. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,113
    The same way you should have removed them: via the Package Manager.
     
  12. Kareeem

    Kareeem

    Joined:
    Mar 1, 2013
    Posts:
    37
    you probably have to make all preview packages visible via the little advanced tab on top
     
  13. PiotrRobotec

    PiotrRobotec

    Joined:
    Feb 15, 2019
    Posts:
    1
  14. dmitryon

    dmitryon

    Joined:
    Jan 6, 2018
    Posts:
    9
    Had this happen to me. The way to reproduce: make an HDRP project on Windows, create git repository and pull the project on Mac.

    To fix, just re-import the HDRP package.
     
    dbdenny likes this.