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:
Launched and connected shader compiler UnityShaderCompiler.exe after 0.08 seconds
Shader 'Xray/CharacterLit': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
Shader 'Hidden/FXAA Preset 3': fallback shader 'Hidden/FXAA II' not found
Shader 'URP/LitProp': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
Shader 'Hidden/Unlit/Text 1': fallback shader 'Unlit/Text' not found
Shader 'Universal Render Pipeline/Terrain/Lit': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
Shader 'Universal Render Pipeline/Terrain/Lit': dependency 'AddPassShader' shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Add Pass)' not found
Shader 'Universal Render Pipeline/Terrain/Lit': dependency 'BaseMapShader' shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' not found
Shader 'Universal Render Pipeline/Terrain/Lit': dependency 'BaseMapGenShader' shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Basemap Gen)' not found
Shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Add Pass)': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
Shader 'Universal Render Pipeline/Unlit': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
Shader 'Universal Render Pipeline/Particles/Lit': fallback shader 'Universal Render Pipeline/Particles/Simple Lit' not found
Shader 'Hidden/Unlit/Text (TextureClip)': fallback shader 'Unlit/Text' not found
Shader 'Hidden/Unlit/Text 3': fallback shader 'Unlit/Text' not found
Shader 'HBS/Diffuse Switch': fallback shader 'HBS/Transparent/Cutout/VertexLit' not found
Shader 'Hidden/Unlit/Text 2': fallback shader 'Unlit/Text' not found
Shader 'Universal Render Pipeline/Particles/Simple Lit': fallback shader 'Universal Render Pipeline/Particles/Unlit' not found
Received signal SIGSEGV
Stack trace:
0x00007ff68ce8c89a (Unity)
0x00007ff68ce890e4 (Unity)
0x00007ff68ce83205 (Unity)
0x00007ff68ce8801c (Unity)
0x00007ff68d20c7a8 (Unity)
0x00007ff68d513e6f (Unity)
0x00007ff68d4f4f0b (Unity)
0x00007ff68d4f4576 (Unity)
0x00007ff68d4f9833 (Unity)
0x00007ff68d4fa0e4 (Unity)
0x00007ff68d4f9e03 (Unity)
0x00007ff68c7857b2 (Unity)
0x00007ff68de80844 (Unity)
0x00007ff68de807cb (Unity)
0x00007ff68e879e89 (Unity)
0x0000028df1b296a7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetImporter:GetAtPath (string)
0x0000028df0afda8b (Mono JIT Code) UnityEditor.ModelImporterPostProcessor:OnPostprocessAllAssets (string[],string[],string[],string[])
0x0000028df0afd71e (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object (object,intptr,intptr,intptr)
0x00007fffd695f1e0 (mono-2.0-bdwgc)
0x00007fffd68e2ac2 (mono-2.0-bdwgc)
0x00007fffd68ebcf2 (mono-2.0-bdwgc)
0x00007fffd68ec489 (mono-2.0-bdwgc)
0x00007fffd68ebc86 (mono-2.0-bdwgc)
0x00007fffd68904a4 (mono-2.0-bdwgc)
0x0000028defa9a4ed (Mono JIT Code) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
0x0000028defa9990b (Mono JIT Code) System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000028defa9982e (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
0x0000028df0b1f593 (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:InvokeMethod (System.Reflection.MethodInfo,object[])
0x0000028df0b1f15b (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets (string[],string[],string[],string[],string[])
0x0000028df0b1f415 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object_object (object,intptr,intptr,intptr)
0x00007fffd695f1e0 (mono-2.0-bdwgc)
0x00007fffd68e2ac2 ((<unknown>))
0x00007fffd68ebb1f ((<unknown>))
0x00007ff68d48cd34 ((<unknown>))
0x00007ff68d488011 ((<unknown>))
0x00007ff68dc857c3 ((<unknown>))
0x00007ff68e352fd1 ((<unknown>))
0x00007ff68e3afb16 ((<unknown>))
0x00007ff68e3a9338 ((<unknown>))
0x00007ff68e3b4a0b ((<unknown>))
0x00007ff68e3bd606 ((<unknown>))
0x00007ff68e3b59f9 ((<unknown>))
0x00007ff68e349f50 ((<unknown>))
0x00007ff68de627c2 ((<unknown>))
0x00007ff68e2b7252 ((<unknown>))
0x00007ff68f945752 ((<unknown>))
0x00007ffff4337974 ((<unknown>))
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:
WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
Shader 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)': fallback shader 'Hidden/Universal Render Pipeline/FallbackError' not found
WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/Terrain/Lit (Base Pass)' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
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**:**
-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