Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Sample TinyGems Build Failed

Discussion in 'Project Tiny' started by GavinHJY, Nov 20, 2020.

  1. GavinHJY

    GavinHJY

    Joined:
    Dec 18, 2018
    Posts:
    7
    Exception: Protocol error - failed to read correct magic number.
    Unity.Tiny.ShaderCompiler.SocketExt.ReceiveHeader (System.Net.Sockets.Socket socket) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:833)
    Unity.Tiny.ShaderCompiler.SocketExt.ReceiveBuffer (System.Net.Sockets.Socket socket) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:881)
    Unity.Tiny.ShaderCompiler.SocketExt.ReceiveLine (System.Net.Sockets.Socket socket) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:872)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient.ShaderCompilerCompileSnippet (Unity.Tiny.ShaderCompiler.UnityHelper+ShaderCompilerProgram programType, UnityEditor.Rendering.ShaderCompilerPlatform platform, System.String src, System.String filename, System.String includesDir, System.Int32 startLine, Unity.Tiny.ShaderCompiler.CompiledShaderData& compiled, System.Collections.Generic.List`1[T] errors) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:513)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient.Compile (System.String src, UnityEditor.Rendering.ShaderCompilerPlatform platform, System.String name, System.String filepath, System.Int32 startLine, System.Byte[]& serializedVert, System.Byte[]& serializedFrag, System.Collections.Generic.List`1[T] errors) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:416)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient.CompileShaderForPlatforms (System.String src, UnityEditor.Rendering.ShaderCompilerPlatform[] platforms, System.String filepath, System.Int32 startLine, System.String name) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:336)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient.CompileShaderForPlatforms (System.String filepath, UnityEditor.Rendering.ShaderCompilerPlatform[] platforms) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:369)
    Unity.TinyConversion.ShaderExportSystem.CreateShaderDataEntity (Unity.Entities.Hash128 shaderGuid, System.String srcFile, UnityEditor.Rendering.ShaderCompilerPlatform[] platforms) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderExportSystem.cs:52)
    Unity.TinyConversion.DefaultShaderExportSystem.OnUpdate () (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ExportShaders.cs:46)
    Unity.Entities.SystemBase.Update () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/SystemBase.cs:413)
    Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:435)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    Unity.Entities.Runtime.Build.ExportConfigurationLogHandler:LogException(Exception, Object) (at Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/Unity.Entities.Runtime.Build/ExportConfigurationLogHandler.cs:54)
    UnityEngine.Debug:LogException(Exception)
    Unity.Debug:LogException(Exception) (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/Stubs/Unity/Debug.cs:19)
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:440)
    Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:387)
    Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystem.cs:113)
    Unity.Entities.Runtime.Build.BuildStepExportConfiguration:Run(BuildContext) (at Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/Unity.Entities.Runtime.Build/BuildStepExportConfiguration.cs:109)
    Unity.Build.BuildStepCollection:Run(BuildContext) (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build/BuildStepCollection.cs:77)
    Unity.Entities.Runtime.Build.DotsRuntimeBuildPipeline:OnBuild(BuildContext) (at Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/Unity.Entities.Runtime.Build/DotsRuntimeBuildPipeline.cs:45)
    Unity.Build.BuildProcess:Update() (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build/BuildProcess.cs:52)
    Unity.Build.BuildPipelineBase:Build(BuildConfiguration, BuildProgress) (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build/BuildPipelineBase.cs:84)
    Unity.Build.BuildConfiguration:Build() (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build/BuildConfiguration.cs:65)
    Unity.Build.Editor.<>c:<.cctor>b__29_0(BuildConfiguration) (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:39)
    Unity.Build.Editor.<>c__DisplayClass25_0:<Build>b__0() (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:106)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  2. GavinHJY

    GavinHJY

    Joined:
    Dec 18, 2018
    Posts:
    7
    when i change to build Web-Wasm platform,it get another error:


    InvalidDataException: SerializeShaderGLSL: Could not extract shader stage from source string.
    Unity.Tiny.ShaderCompiler.SerializeShaderGLSL.ExtractShaderStage (System.String src, System.String stageStr, System.String& stageSrc, System.String& remainder) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/SerializeShaderGLSL.cs:178)
    Unity.Tiny.ShaderCompiler.SerializeShaderGLSL.ExtractShaderStages (Unity.Tiny.ShaderCompiler.CompiledShaderData compiled, System.Boolean gles2, System.String name, Unity.Tiny.ShaderCompiler.CompiledShaderData& compiledVertex, Unity.Tiny.ShaderCompiler.CompiledShaderData& compiledFragment) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/SerializeShaderGLSL.cs:126)
    Unity.Tiny.ShaderCompiler.SerializeShaderGLSL.Serialize (Unity.Tiny.ShaderCompiler.CompiledShaderData compiled, System.String name, System.Boolean gles2, System.Byte[]& serializedVert, System.Byte[]& serializedFrag) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/SerializeShaderGLSL.cs:15)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient.Compile (System.String src, UnityEditor.Rendering.ShaderCompilerPlatform platform, System.String name, System.String filepath, System.Int32 startLine, System.Byte[]& serializedVert, System.Byte[]& serializedFrag, System.Collections.Generic.List`1[T] errors) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:404)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient.CompileShaderForPlatforms (System.String src, UnityEditor.Rendering.ShaderCompilerPlatform[] platforms, System.String filepath, System.Int32 startLine, System.String name) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:336)
    Unity.Tiny.ShaderCompiler.ShaderCompilerClient.CompileShaderForPlatforms (System.String filepath, UnityEditor.Rendering.ShaderCompilerPlatform[] platforms) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderCompiler/ShaderCompiler.cs:369)
    Unity.TinyConversion.ShaderExportSystem.CreateShaderDataEntity (Unity.Entities.Hash128 shaderGuid, System.String srcFile, UnityEditor.Rendering.ShaderCompilerPlatform[] platforms) (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ShaderExportSystem.cs:52)
    Unity.TinyConversion.DefaultShaderExportSystem.OnUpdate () (at Library/PackageCache/com.unity.tiny@0.31.0-preview.24/Unity.Tiny.Rendering.Authoring/ExportShaders.cs:39)
    Unity.Entities.SystemBase.Update () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/SystemBase.cs:413)
    Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:435)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    Unity.Entities.Runtime.Build.ExportConfigurationLogHandler:LogException(Exception, Object) (at Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/Unity.Entities.Runtime.Build/ExportConfigurationLogHandler.cs:54)
    UnityEngine.Debug:LogException(Exception)
    Unity.Debug:LogException(Exception) (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/Stubs/Unity/Debug.cs:19)
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:440)
    Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystemGroup.cs:387)
    Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/com.unity.entities@0.16.0-preview.21/Unity.Entities/ComponentSystem.cs:113)
    Unity.Entities.Runtime.Build.BuildStepExportConfiguration:Run(BuildContext) (at Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/Unity.Entities.Runtime.Build/BuildStepExportConfiguration.cs:109)
    Unity.Build.BuildStepCollection:Run(BuildContext) (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build/BuildStepCollection.cs:77)
    Unity.Entities.Runtime.Build.DotsRuntimeBuildPipeline:OnBuild(BuildContext) (at Library/PackageCache/com.unity.dots.runtime@0.31.0-preview.24/Unity.Entities.Runtime.Build/DotsRuntimeBuildPipeline.cs:45)
    Unity.Build.BuildProcess:Update() (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build/BuildProcess.cs:52)
    Unity.Build.BuildPipelineBase:Build(BuildConfiguration, BuildProgress) (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build/BuildPipelineBase.cs:84)
    Unity.Build.BuildConfiguration:Build() (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build/BuildConfiguration.cs:65)
    Unity.Build.Editor.<>c:<.cctor>b__29_0(BuildConfiguration) (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:39)
    Unity.Build.Editor.<>c__DisplayClass25_0:<Build>b__0() (at Library/PackageCache/com.unity.platforms@0.9.0-preview.9/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:106)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  3. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    What version of Unity are you using?
     
  4. GavinHJY

    GavinHJY

    Joined:
    Dec 18, 2018
    Posts:
    7
    2020.1.14f1c1
     
  5. LuckyWonton

    LuckyWonton

    Joined:
    Feb 28, 2014
    Posts:
    19
    Having this same issue trying to build a barebones project.
    Barebones on Unity 2021.1.0a9.1589

    Trying to build the demo TinySpaceship (2020.1.10f1), I get another issue.

    Code (csharp):
    1. Build DotsRuntimeBuildConfiguration failed after 2.63s.
    2. [             ] Require frontend run.  artifacts\tundra_tinyspaceship-dotsruntimebuildconfiguration_ptb.dag.json does not exist yet
    Windows 64
     
  6. _watcher_

    _watcher_

    Joined:
    Nov 7, 2014
    Posts:
    261
    Same here on:
    project: Tiny3D (https://github.com/Unity-Technologies/ProjectTinySamples)
    platform: Asmjs
    package: Tiny Project Full 0.31.0
    unity: Unity 2020.1.17f1
    (builds ok first time, just takes 30 minutes.. fails with the shader error second time i hit the same 'build and run' button)

    EDIT1: restarted Unity, and now it seems to work correctly, tested 3x in a row 'Build and Run' (so only fresh compilation and secondary B&R triggers it)
    EDIT2: Had the errors pop up intermittently again, until i followed the exact 'System Requirements' for the project exactly as described in documentation (Unity version, win10, win10 sdk, VS19 and the 3 plugins).. then it seemed to work consistently! If you need Android support, there is additional Android SDK 28 requirement, which i wasn't able to install because i am a noob, but you need it to build, else you get additional errors.
     
    Last edited: Jan 18, 2021
  7. Pronotron

    Pronotron

    Joined:
    Aug 27, 2018
    Posts:
    7
    Same here. I just trying to open and build Tiny3d and TinyPhysics but getting the same error: Exception: Protocol error - failed to read correct magic number.

    Unity 2020.2.4f1

     
  8. LzzzQ

    LzzzQ

    Joined:
    Jul 25, 2011
    Posts:
    3
    2020.2.2f1 works fine, get error after 2020.2.3f1
     
    Pronotron likes this.
  9. GavinHJY

    GavinHJY

    Joined:
    Dec 18, 2018
    Posts:
    7
    It seems that projects work when I put them in top folder。like:C:/TinyGems

    I think the problem is the length of packges's path is too long.

    “The file name and directory path of windows file system NTPS have a maximum length, i.e MAX_PATH limit of up to 260 characters”
     
  10. Pronotron

    Pronotron

    Joined:
    Aug 27, 2018
    Posts:
    7
    Can anyone confirm is DOTS tiny working with 2020.3 LTS?
     
  11. djsell

    djsell

    Joined:
    Aug 29, 2013
    Posts:
    77
    Haven't tried. 2020.1.17 is supposedly the only supported version
     
  12. Pronotron

    Pronotron

    Joined:
    Aug 27, 2018
    Posts:
    7
    Can you guys tell which setup is more stable? Should we wait v0.33?
     
  13. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    For 0.32 you should use 2020.1 other versions of the editor won't work
    We will share more info about which editor to use with 0.33
     
  14. CharanjeetSinghJaswani

    CharanjeetSinghJaswani

    Joined:
    Nov 16, 2021
    Posts:
    2
    Android build failed i cant find what is the problem please help me

    Build Android failed after 20.03s.
    [ ] Require frontend run. artifacts\tundra_tinytest-android_6vd.dag.json does not exist yet
    *** buildprogram build success (0.83 seconds), 0 items updated, 13 evaluated
    error: WindowsDummySdk has not provided information on how to actually invoke the C++ compiler (C_Win64_). (System.InvalidOperationException)
    at Bee.NativeProgramSupport.CLikeCompiler.SetupInvocation
    at Bee.NativeProgramSupport.NativeProgram.SetupObjectFilesAndSetupBuiltNativeProgram
    at Bee.NativeProgramSupport.NativeProgram.SetupSpecificConfigurationImpl
    at Bee.NativeProgramSupport.NativeProgram.SetupSpecificConfiguration
    at WebPBuildCustomizer.Customize
    at DotsBuildCustomizer.RunAllCustomizers
    at BuildProgram.Main
    at System.RuntimeMethodHandle.InvokeMethod
    at Bee.StandaloneBeeDriver.CreateBuildGraph
    at Bee.StandaloneBeeDriver.InvokeTundra
    at Bee.StandaloneBeeDriver.BuildMain
    at Bee.StandaloneBeeDriver.Main