Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug Shader Compiler SIGSERV during build

Discussion in 'Editor & General Support' started by brian_unity826, Sep 21, 2022.

  1. brian_unity826

    brian_unity826

    Joined:
    Feb 1, 2021
    Posts:
    1
    We're trying to build our project on a windows machine in a docker container running a full windows:1809 image with dotnet 4.8 and unity 2020.3.25f1. We build using a custom build method that works fine on our desktop pc's running the same Unity version, but when we run it in a container it fails.

    The build fails with a memory access violation after starting the shader compiler, but the stack trace isn't particularly helpfull:

    Code (CSharp):
    1. Launched and connected shader compiler UnityShaderCompiler.exe after 0.08 seconds
    2. Shader 'Xray/CharacterLit': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
    3. Shader 'Hidden/FXAA Preset 3': fallback shader 'Hidden/FXAA II' not found
    4. Shader 'URP/LitProp': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
    5. Shader 'Hidden/Unlit/Text 1': fallback shader 'Unlit/Text' not found
    6. Shader 'Universal Render Pipeline/Terrain/Lit': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
    7. Shader 'Universal Render Pipeline/Terrain/Lit': dependency 'AddPassShader' shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Add Pass)' not found
    8. Shader 'Universal Render Pipeline/Terrain/Lit': dependency 'BaseMapShader' shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' not found
    9. Shader 'Universal Render Pipeline/Terrain/Lit': dependency 'BaseMapGenShader' shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Basemap Gen)' not found
    10. Shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Add Pass)': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
    11. Shader 'Universal Render Pipeline/Unlit': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
    12. Shader 'Universal Render Pipeline/Particles/Lit': fallback shader 'Universal Render Pipeline/Particles/Simple Lit' not found
    13. Shader 'Hidden/Unlit/Text (TextureClip)': fallback shader 'Unlit/Text' not found
    14. Shader 'Hidden/Unlit/Text 3': fallback shader 'Unlit/Text' not found
    15. Shader 'HBS/Diffuse Switch': fallback shader 'HBS/Transparent/Cutout/VertexLit' not found
    16. Shader 'Hidden/Unlit/Text 2': fallback shader 'Unlit/Text' not found
    17. Shader 'Universal Render Pipeline/Particles/Simple Lit': fallback shader 'Universal Render Pipeline/Particles/Unlit' not found
    18. Received signal SIGSEGV
    19. Stack trace:
    20. 0x00007ff68ce8c89a (Unity)
    21. 0x00007ff68ce890e4 (Unity)
    22. 0x00007ff68ce83205 (Unity)
    23. 0x00007ff68ce8801c (Unity)
    24. 0x00007ff68d20c7a8 (Unity)
    25. 0x00007ff68d513e6f (Unity)
    26. 0x00007ff68d4f4f0b (Unity)
    27. 0x00007ff68d4f4576 (Unity)
    28. 0x00007ff68d4f9833 (Unity)
    29. 0x00007ff68d4fa0e4 (Unity)
    30. 0x00007ff68d4f9e03 (Unity)
    31. 0x00007ff68c7857b2 (Unity)
    32. 0x00007ff68de80844 (Unity)
    33. 0x00007ff68de807cb (Unity)
    34. 0x00007ff68e879e89 (Unity)
    35. 0x0000028df1b296a7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetImporter:GetAtPath (string)
    36. 0x0000028df0afda8b (Mono JIT Code) UnityEditor.ModelImporterPostProcessor:OnPostprocessAllAssets (string[],string[],string[],string[])
    37. 0x0000028df0afd71e (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object (object,intptr,intptr,intptr)
    38. 0x00007fffd695f1e0 (mono-2.0-bdwgc)
    39. 0x00007fffd68e2ac2 (mono-2.0-bdwgc)
    40. 0x00007fffd68ebcf2 (mono-2.0-bdwgc)
    41. 0x00007fffd68ec489 (mono-2.0-bdwgc)
    42. 0x00007fffd68ebc86 (mono-2.0-bdwgc)
    43. 0x00007fffd68904a4 (mono-2.0-bdwgc)
    44. 0x0000028defa9a4ed (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    45. 0x0000028defa9990b (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    46. 0x0000028defa9982e (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
    47. 0x0000028df0b1f593 (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:InvokeMethod (System.Reflection.MethodInfo,object[])
    48. 0x0000028df0b1f15b (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[])
    49. 0x0000028df0b1f415 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object_object (object,intptr,intptr,intptr)
    50. 0x00007fffd695f1e0 (mono-2.0-bdwgc)
    51. 0x00007fffd68e2ac2 ((<unknown>))
    52. 0x00007fffd68ebb1f ((<unknown>))
    53. 0x00007ff68d48cd34 ((<unknown>))
    54. 0x00007ff68d488011 ((<unknown>))
    55. 0x00007ff68dc857c3 ((<unknown>))
    56. 0x00007ff68e352fd1 ((<unknown>))
    57. 0x00007ff68e3afb16 ((<unknown>))
    58. 0x00007ff68e3a9338 ((<unknown>))
    59. 0x00007ff68e3b4a0b ((<unknown>))
    60. 0x00007ff68e3bd606 ((<unknown>))
    61. 0x00007ff68e3b59f9 ((<unknown>))
    62. 0x00007ff68e349f50 ((<unknown>))
    63. 0x00007ff68de627c2 ((<unknown>))
    64. 0x00007ff68e2b7252 ((<unknown>))
    65. 0x00007ff68f945752 ((<unknown>))
    66. 0x00007ffff4337974 ((<unknown>))
    67. 0x00007ffff954a2f1 ((<unknown>))
    We use URP for our project and we do get some warnings regarding build-in shaders earlier in the log that might be related to the issue:

    Code (CSharp):
    1. WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed
    2. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    3. WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
    4. WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed
    5. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    6. WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
    7. Shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
    8. WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed
    9. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    10. WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
    11. WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed
    12. WARNING: Shader Did you use #pragma only_renderers and omit this platform?
    13. WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?

    Additional information
    • We run the editor in batchmode using the following flags:
      Code (CSharp):
      1. -batchmode -quit -nographics -logfile [string] -projectPath [string] -customBuildPath [string]-buildVersion [string] -buildTarget [string] -executeMethod [string]
    • The project is over 100GB.
    • We use Gitlab CI to run our containers on a shell executor.
    *edit Title is supposed to say sigsegv instead of sigserv
     
    Last edited: Sep 21, 2022
  2. FikaProductions

    FikaProductions

    Joined:
    May 21, 2020
    Posts:
    2
    We have the exact same problem:
    • Building an IL2CPP Windows executable in a Windows Docker container running mcr.microsoft.com/windows/servercore:ltsc2019 on Gitlab CI
    • Using Unity 2020.3.16f1
    • Getting a memory access violation after starting the shader compiler
    Code (CSharp):
    1. Start importing Packages/com.unity.ui.builder/Editor/UI/Manipulators/BuilderAnchorer.uxml using Guid(ef6d330070473ea4b98e5d20d4103d02) Importer(-1,00000000000000000000000000000000)  -> (artifact id: '95e0d558ee0c9e5fed7782a199fc8892') in 0.056970 seconds
    2. Shader 'Universal Render Pipeline/Lit': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
    3. [C:\buildslave\unity\build\Modules/LocalizationEditor/LocalizationDatabase.cpp:811]Packages/com.unity.timeline/Editor/Localization/ja.po
    4. Shader 'Universal Render Pipeline/Particles/Lit': fallback shader 'Universal Render Pipeline/Particles/SimpleLit' not found
    5. Launched and connected shader compiler UnityShaderCompiler.exe after 0.06 seconds
    6. Launched and connected shader compiler UnityShaderCompiler.exe after 0.05 seconds
    7. Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    8. Launched and connected shader compiler UnityShaderCompiler.exe after 0.04 seconds
    9. Launched and connected shader compiler UnityShaderCompiler.exe after 0.06 seconds
    10. Shader 'Universal Render Pipeline/Nature/SpeedTree7': dependency 'BillboardShader' shader 'Universal Render Pipeline/Nature/SpeedTree7 Billboard' not found
    11. Shader 'Universal Render Pipeline/Terrain/Lit': dependency 'AddPassShader' shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Add Pass)' not found
    12. Shader 'Universal Render Pipeline/Terrain/Lit': dependency 'BaseMapGenShader' shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Basemap Gen)' not found
    13. Shader 'Universal Render Pipeline/Baked Lit': fallback shader 'Universal Render Pipeline/Unlit' not found
    14. Received signal SIGSEGV
    15. Stack trace:
    16. 0x00007ff79719970a (Unity)
    17. 0x00007ff79718e614 (Unity)
    18. 0x00007ff797175c95 (Unity)
    19. 0x00007ff79718b07c (Unity)
    20. 0x00007ff797d33895 (Unity)
    21. 0x00007ff796770f96 (Unity)
    22. 0x00007ff7967c35cf (Unity)
    23. 0x00007ff79a330acf (Unity)
    24. 0x00007ff79a32edc1 (Unity)
    25. 0x00007ff79a32ecb6 (Unity)
    26. 0x00007ff7981ba63f (Unity)
    27. 0x00007ff7981baf92 (Unity)
    28. 0x00007ff7981bb11a (Unity)
    29. 0x00007ff7981462de (Unity)
    30. 0x00007ff798146cf7 (Unity)
    31. 0x00007ff79814a243 (Unity)
    32. 0x00007ff798ddf976 (Unity)
    33. 0x00007ff79a037f05 (Unity)
    34. 0x0000020c10d71b87 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:LoadAllAssetsAtPath (string)
    35. 0x0000020c10de6963 (Mono JIT Code) UnityEditor.ModelImporterPostProcessor:OnPostprocessAllAssets (string[],string[],string[],string[])
    36. 0x0000020c10de6510 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object (object,intptr,intptr,intptr)
    37. 0x00007ff863e4e660 (mono-2.0-bdwgc)
    38. 0x00007ff863dd2ae2 (mono-2.0-bdwgc)
    39. 0x00007ff863ddbd12 (mono-2.0-bdwgc)
    40. 0x00007ff863ddc4a9 (mono-2.0-bdwgc)
    41. 0x00007ff863ddbca6 (mono-2.0-bdwgc)
    42. 0x00007ff863d804c4 (mono-2.0-bdwgc)
    43. 0x0000020bebb784cd (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
    44. 0x0000020bebb7795b (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    45. 0x0000020bea1f73ce (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
    46. 0x0000020c10d8ae23 (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:InvokeMethod (System.Reflection.MethodInfo,object[])
    47. 0x0000020c10d8aa0b (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[])
    48. 0x0000020c10d8acc5 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object_object (object,intptr,intptr,intptr)
    49. 0x00007ff863e4e660 (mono-2.0-bdwgc)
    50. 0x00007ff863dd2ae2 (mono-2.0-bdwgc)
    51. 0x00007ff863ddbb3f (mono-2.0-bdwgc)
    52. 0x00007ff7980b88f4 (Unity)
    53. 0x00007ff7980b1245 (Unity)
    54. 0x00007ff798b1b2c3 (Unity)
    55. 0x00007ff79984e2f1 (Unity)
    56. 0x00007ff7998e6926 (Unity)
    57. 0x00007ff7998e003c (Unity)
    58. 0x00007ff7998ec88b (Unity)
    59. 0x00007ff7998fbf96 (Unity)
    60. 0x00007ff7998ed879 (Unity)
    61. 0x00007ff7998393de (Unity)
    62. 0x00007ff798dbb5e6 (Unity)
    63. 0x00007ff7997624f2 (Unity)
    64. 0x00007ff79b5b34b6 (Unity)
    65. 0x00007ff8808e7974 (KERNEL32) BaseThreadInitThunk
    66. 0x00007ff88326a2f1 (ntdll) RtlUserThreadStart
    67. Unexpected exit code 1
     
  3. FikaProductions

    FikaProductions

    Joined:
    May 21, 2020
    Posts:
    2
    Turns out, increasing the RAM of the Docker container fixes the issue.