Search Unity

Bug Can't build any of the samples in 2020.2

Discussion in 'Project Tiny' started by victor_apihtin, Mar 3, 2021.

  1. victor_apihtin

    victor_apihtin

    Joined:
    Mar 2, 2021
    Posts:
    26
    Getting an error when building to win il2cpp/dotnet:


    Shader Compiler Socket Exception: Terminating shader compiler process
    Shader compiler: Compile simple.cg: Internal error communicating with the shader compiler process. Please report a bug including this shader and the editor log.
    Platform: d3d11
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    Unity.Entities.Runtime.Build.ExportConfigurationLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) (at Library/PackageCache/com.unity.dots.runtime@0.32.0-preview.54/Unity.Entities.Runtime.Build/ExportConfigurationLogHandler.cs:43)
    UnityEngine.Debug:LogError (object)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient:Compile (string,UnityEditor.Rendering.ShaderCompilerPlatform,string,string,int,byte[]&,byte[]&,System.Collections.Generic.List`1<string>) (at Library/PackageCache/com.unity.tiny@0.32.0-preview.54/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:428)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient:CompileShaderForPlatforms (string,UnityEditor.Rendering.ShaderCompilerPlatform[],string,int,string) (at Library/PackageCache/com.unity.tiny@0.32.0-preview.54/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:335)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient:CompileShaderForPlatforms (string,UnityEditor.Rendering.ShaderCompilerPlatform[]) (at Library/PackageCache/com.unity.tiny@0.32.0-preview.54/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:368)
    Unity.TinyConversion.ShaderExportSystem:CreateShaderDataEntity (Unity.Entities.Hash128,string,UnityEditor.Rendering.ShaderCompilerPlatform[]) (at Library/PackageCache/com.unity.tiny@0.32.0-preview.54/Unity.Tiny.Rendering.Authoring/ShaderExportSystem.cs:52)
    Unity.TinyConversion.DefaultShaderExportSystem:OnUpdate () (at Library/PackageCache/com.unity.tiny@0.32.0-preview.54/Unity.Tiny.Rendering.Authoring/ExportShaders.cs:38)
    Unity.Entities.SystemBase:Update () (at Library/PackageCache/com.unity.entities@0.17.0-preview.41/Unity.Entities/SystemBase.cs:400)
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at Library/PackageCache/com.unity.entities@0.17.0-preview.41/Unity.Entities/ComponentSystemGroup.cs:472)
    Unity.Entities.ComponentSystemGroup:OnUpdate () (at Library/PackageCache/com.unity.entities@0.17.0-preview.41/Unity.Entities/ComponentSystemGroup.cs:417)
    Unity.Entities.ComponentSystem:Update () (at Library/PackageCache/com.unity.entities@0.17.0-preview.41/Unity.Entities/ComponentSystem.cs:114)
    Unity.Entities.Runtime.Build.BuildStepExportConfiguration:Run (Unity.Build.BuildContext) (at Library/PackageCache/com.unity.dots.runtime@0.32.0-preview.54/Unity.Entities.Runtime.Build/BuildStepExportConfiguration.cs:114)
    Unity.Build.BuildStepCollection:Run (Unity.Build.BuildContext) (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build/BuildStepCollection.cs:77)
    Unity.Entities.Runtime.Build.DotsRuntimeBuildPipeline:OnBuild (Unity.Build.BuildContext) (at Library/PackageCache/com.unity.dots.runtime@0.32.0-preview.54/Unity.Entities.Runtime.Build/DotsRuntimeBuildPipeline.cs:45)
    Unity.Build.BuildProcess:Update () (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build/BuildProcess.cs:54)
    Unity.Build.BuildPipelineBase:Build (Unity.Build.BuildConfiguration,Unity.Build.BuildProgress) (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build/BuildPipelineBase.cs:84)
    Unity.Build.BuildConfiguration:Build () (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build/BuildConfiguration.cs:65)
    Unity.Build.Editor.BuildConfigurationInspector/<>c:<.cctor>b__34_1 (Unity.Build.BuildConfiguration) (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:47)
    Unity.Build.Editor.BuildConfigurationInspector/<>c__DisplayClass30_0:<Build>b__1 () (at Library/PackageCache/com.unity.platforms@0.10.0-preview.10/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:128)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  2. BattlefieldNoob

    BattlefieldNoob

    Joined:
    Jan 21, 2016
    Posts:
    10
    Hi victor_apihtin, try with Unity 2020.2.2f1
     
  3. lang_fox

    lang_fox

    Joined:
    May 19, 2014
    Posts:
    12
    Unity 2020.2.3 ~ 2020.2.6 produce similar error.
     
  4. Maras

    Maras

    Joined:
    Dec 11, 2012
    Posts:
    126
    Hi, according to the announcement thread, Tiny should be compatible with 2020.1.17f1 (works for me)
     
    Rangerz132 and victor_apihtin like this.
  5. victor_apihtin

    victor_apihtin

    Joined:
    Mar 2, 2021
    Posts:
    26
    Yeah, i can see in the announcement that 2020.2 is not actually supported.
    I sort of expected it to be 2020.1+ though
     
  6. Vari-Mods

    Vari-Mods

    Joined:
    Jan 21, 2021
    Posts:
    7
    I got this for various unity versions while trying to build for android. It turned out I missed components in the Visual Studio installation! Did you check if you meet all the prerequisites for it?
     
  7. Rangerz132

    Rangerz132

    Joined:
    Feb 3, 2019
    Posts:
    23
    At the current moment, you need to use 2020.1.17f1. It should works perfectly.
     
unityunity