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.

Bug Error: Kernel 'SkinningDense1ComputeKernel' not found

Discussion in 'Graphics for ECS' started by StefanWo, Jul 7, 2023.

  1. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    118
    I got the following error, but only on one of my Builds. In the Editor and on Windows Build it's fine, just on Linux. Its happening when the Game starts.

    Code (CSharp):
    1.  
    2. Error: Desired shader compiler platform 15 is not available in shader blob
    3.  
    4. Error: Kernel 'SkinningDense1ComputeKernel' not found
    5.             at UnityEngine.ComputeShader.FindKernel (UnityEngine.ComputeShader , System.String ) [0x00000] in <39082aaa1bee4875a3d27f17cab18fbd>:0
    6.             at Unity.Rendering.SkinningDeformationSystem.OnCreate () [0x00000] in <a44820b21ae14f1495640857ae8d5888>:0
    7.             at Unity.Entities.ComponentSystemBase.CreateInstance (Unity.Entities.World world) [0x00000] in <75df7b25a37e4189985ea20365f9c9f8>:0
    8.             at Unity.Entities.World.AddSystem_OnCreate_Internal (Unity.Entities.ComponentSystemBase system) [0x00000] in <75df7b25a37e4189985ea20365f9c9f8>:0
    9.  
    Ps.: I have from time to time also that error, maybe its related somehow?
    https://forum.unity.com/threads/202...-player-to-globalgamemanagers-assets.1343288/

    Using Unity 2022.3.4f1 with Entities Graphics 1.0.11

    ProjectSettings->Player Settings:
    Auto Graphics API for Linux: false and Setup to Vulkan. There was a bug somewhen in the past, forced to do that. Can this be related?
     
  2. Jebtor

    Jebtor

    Unity Technologies

    Joined:
    Apr 18, 2018
    Posts:
    111
    Hi, could you report a bug with a repro? We'll check if this is a duplicate of an existing issue or a completely new problem.
     
  3. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    118
    No, it would take me many days to strip the complete game down to that bug, and i have no time to do so. I have no simple repository with it. Maybe even worse, due to it just happens on linux and i use windows.

    I hoped to get some hints, what the reason can be, or when this error can happen.
     
  4. Jebtor

    Jebtor

    Unity Technologies

    Joined:
    Apr 18, 2018
    Posts:
    111
    The error points at the Dots Deformations systems not being able to find the skinning compute shader. This file is inside the Entities.Graphics package (Unity.Entities.Graphics/Deformations/Resources/). To be more precise it cannot find the kernel for 1 influence skinning. Do you have any content in your game that uses more skin influences? Are those working? This would mean that the file is present but the kernel is somehow missing. If you have errors here too it probably means the file is not included in the build somehow. I suspect the latter is more likely. Perhaps something is stripping this in the build process.
     
  5. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    118
    I work already longer with Entities, so i have my own Deform Animation System created before your one was available. So i'm not using it directly, but have SkinMeshRenderers in my Game. Its hard to keep them out, due to i cound't find a way to not let them bake that stuff. The strange part is, that it just happens on a Linux system. On Windows i never had that.
     
  6. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,008
    I also had to disable baking of SkinnedMeshRenderers for my own custom deformation system. The process is a bit complicated (though my framework does stuff to abstract it into a simple API). If you want to go down this route, let me know!