Unity CTD when trying to build for PC or Android (Received signal SIGSEGV)
Whenever i try to make a build, Unity crashes to desktop with the following error log (I added the last part of the log). This happens in Unity 2021.2.4f1 and 2021.2.5f1:
Compiling Vertex program with STEREO_INSTANCING_ON Platform defines: SHADER_API_DESKTOP UNITY_ENABLE_DETAIL_NORMALMAP UNITY_ENABLE_REFLECTION_BUFFERS UNITY_LIGHTMAP_RGBM_ENCODING UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS Disabled keywords: SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_COLORSPACE_GAMMA UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_FULL_HDR UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING Compiling shader "Universal Render Pipeline/Simple Lit" pass "ForwardLit" (vp) 3072 variants, prepared in 0.00 seconds, starting stripping... finished in 0.06 seconds. 560 variants left starting compilation... finished in 0.01 seconds. Local cache hits 560 (0.10s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "ForwardLit" (fp) 1572864 variants, prepared in 0.73 seconds, starting stripping... finished in 13.35 seconds. 3136 variants left starting compilation... [ 61s] 254 / 3136 variants ready [123s] 520 / 3136 variants ready [188s] 802 / 3136 variants ready [252s] 1497 / 3136 variants ready [315s] 1788 / 3136 variants ready [377s] 2047 / 3136 variants ready finished in 430.86 seconds. Local cache hits 0 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 3136 variants (6892.86s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "ShadowCaster" (vp) 4 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 4 variants left starting compilation... finished in 0.00 seconds. Local cache hits 4 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "ShadowCaster" (fp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.02 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 1 variants (0.02s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "GBuffer" (vp) 512 variants, prepared in 0.00 seconds, starting stripping... finished in 0.01 seconds. 0 variants left Compiling shader "Universal Render Pipeline/Simple Lit" pass "DepthOnly" (vp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.00 seconds. Local cache hits 2 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "DepthOnly" (fp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.02 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 1 variants (0.02s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "DepthNormals" (vp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.00 seconds. Local cache hits 2 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "DepthNormals" (fp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.05 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 1 variants (0.05s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "Meta" (vp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.00 seconds. Local cache hits 2 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "Meta" (fp) 4 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 4 variants left starting compilation... finished in 0.07 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 3 variants (0.22s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "Universal2D" (vp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.00 seconds. Local cache hits 2 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "Universal2D" (fp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.02 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 1 variants (0.02s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "ForwardLit" (vp) 3072 variants, prepared in 0.00 seconds, starting stripping... finished in 0.06 seconds. 560 variants left starting compilation... finished in 0.01 seconds. Local cache hits 560 (0.17s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "ForwardLit" (fp) 393216 variants, prepared in 0.09 seconds, starting stripping... finished in 3.49 seconds. 3136 variants left starting compilation... [ 62s] 268 / 3136 variants ready [124s] 554 / 3136 variants ready [185s] 824 / 3136 variants ready [247s] 1526 / 3136 variants ready [311s] 1822 / 3136 variants ready [372s] 2103 / 3136 variants ready finished in 412.48 seconds. Local cache hits 0 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 3136 variants (6598.75s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "ShadowCaster" (vp) 4 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 4 variants left starting compilation... finished in 0.00 seconds. Local cache hits 4 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "ShadowCaster" (fp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.02 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 1 variants (0.02s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "DepthOnly" (vp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.00 seconds. Local cache hits 2 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "DepthOnly" (fp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.02 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 1 variants (0.02s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "DepthNormals" (vp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.00 seconds. Local cache hits 2 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "DepthNormals" (fp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.05 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 1 variants (0.05s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "Meta" (vp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.00 seconds. Local cache hits 2 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "Meta" (fp) 4 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 4 variants left starting compilation... finished in 0.08 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 3 variants (0.23s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "Universal2D" (vp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.00 seconds. Local cache hits 2 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Simple Lit" pass "Universal2D" (fp) 2 variants, prepared in 0.00 seconds, starting stripping... finished in 0.00 seconds. 2 variants left starting compilation... finished in 0.02 seconds. Local cache hits 1 (0.00s CPU time), remote cache hits 0 (0.00s CPU time), compiled 1 variants (0.02s CPU time) Serialized binary data for shader Universal Render Pipeline/Simple Lit in 0.02s d3d11 (total internal programs: 7440, unique: 7438) Compressed shader 'Universal Render Pipeline/Simple Lit' on d3d11 in 0.70s from 37.13MB to 1.82MB Compiling shader "Universal Render Pipeline/Lit" pass "ForwardLit" (vp) 18432 variants, prepared in 0.00 seconds, starting stripping... finished in 0.34 seconds. 3360 variants left starting compilation... finished in 0.11 seconds. Local cache hits 3360 (1.79s CPU time), remote cache hits 0 (0.00s CPU time), compiled 0 variants (0.00s CPU time) Compiling shader "Universal Render Pipeline/Lit" pass "ForwardLit" (fp) 88080384 variants, prepared in 24.56 seconds, starting stripping...
================================================================= Native Crash Reporting ================================================================= Got a UNKNOWN while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application. =================================================================
================================================================= Managed Stacktrace: ================================================================= at at UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck at DefaultBuildMethods:BuildPlayer at UnityEditor.BuildPlayerWindow:CallBuildMethods at UnityEditor.BuildPlayerWindow:GUIBuildButtons at UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings at UnityEditor.BuildPlayerWindow:OnGUI at UnityEditor.HostView:InvokeOnGUI at UnityEditor.DockArea:DrawView at UnityEditor.DockArea:OldOnGUI at UnityEngine.UIElements.IMGUIContainer:DoOnGUI at UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent at UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent at UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent at UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw at UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI at UnityEngine.UIElements.IMGUIContainer:HandleEvent at UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase at UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent at UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies at UnityEngine.UIElements.EventDispatcher:ProcessEvent at UnityEngine.UIElements.EventDispatcher:ProcessEventQueue at UnityEngine.UIElements.EventDispatcher:OpenGate at UnityEngine.UIElements.EventDispatcherGate:Dispose at UnityEngine.UIElements.EventDispatcher:ProcessEvent at UnityEngine.UIElements.EventDispatcher:Dispatch at UnityEngine.UIElements.BaseVisualElementPanel:SendEvent at UnityEngine.UIElements.UIElementsUtility:DoDispatch at UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent at UnityEngine.UIElements.UIEventRegistration:ProcessEvent at <>c:<.cctor>b_1_2 at UnityEngine.GUIUtility:ProcessEvent at :runtime_invoke_void_int_intptr_intptr& ================================================================= Received signal SIGSEGV Obtained 67 stack frames 0x00007ff7cc79e898 (Unity) 0x00007ff7cc707eda (Unity) 0x00007ff7cc7095df (Unity) 0x00007ff7cc708ce1 (Unity) 0x00007ff7cd1928e5 (Unity) 0x00007ff7cbb3ddeb (Unity) 0x00007ff7cbb278e8 (Unity) 0x00007ff7cbb296cf (Unity) 0x00007ff7cc7cace9 (Unity) 0x00007ff7cc7b7f3e (Unity) 0x00007ff7cd4a3b8b (Unity) 0x00007ff7cd4acc2c (Unity) 0x00007ff7cd4ab5e6 (Unity) 0x00007ff7cd49f62d (Unity) 0x00007ff7cb38517d (Unity) 0x00007ff7cb1db7bf (Unity) 0x0000020eddce1f07 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck (string[],string,string,UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,UnityEditor.BuildOptions,string[],bool) 0x0000020eddce1623 (Mono JIT Code) UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions) 0x0000020e91c5bdc3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions) 0x0000020e35925963 (Mono JIT Code) UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor) 0x0000020e3591e4e3 (Mono JIT Code) UnityEditor.BuildPlayerWindow:ShowBuildTargetSettings () 0x0000020e358bd653 (Mono JIT Code) UnityEditor.BuildPlayerWindow:OnGUI () 0x0000020e23f59b6a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect) 0x0000020e23f599c3 (Mono JIT Code) UnityEditor.DockArea:DrawView (UnityEngine.Rect) 0x0000020e23f4a5db (Mono JIT Code) UnityEditor.DockArea:OldOnGUI () 0x0000020e23f3434f (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:DoOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool) 0x0000020e23f3357b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool) 0x0000020df648805b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,System.Action,bool) 0x0000020df6489063 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,bool) 0x0000020df6488b0b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase,bool,bool) 0x0000020df64855f3 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:SendEventToIMGUI (UnityEngine.UIElements.EventBase,bool,bool) 0x0000020df9b12fdb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleEvent (UnityEngine.UIElements.EventBase) 0x0000020df9afd448 (Mono JIT Code) UnityEngine.UIElements.CallbackEventHandler:HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase) 0x0000020df6482e1b (Mono JIT Code) UnityEngine.UIElements.MouseCaptureDispatchingStrategy:DispatchEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) 0x0000020df9afb8ee (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,bool) 0x0000020df9afb48b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) 0x0000020df9b00e0b (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEventQueue () 0x0000020df9aff623 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:OpenGate () 0x0000020df9aff57b (Mono JIT Code) UnityEngine.UIElements.EventDispatcherGate:Dispose () 0x0000020df9afb713 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:ProcessEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel) 0x0000020df9afaf53 (Mono JIT Code) UnityEngine.UIElements.EventDispatcher:Dispatch (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.IPanel,UnityEngine.UIElements.DispatchMode) 0x0000020df9afadeb (Mono JIT Code) UnityEngine.UIElements.BaseVisualElementPanel:SendEvent (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.DispatchMode) 0x0000020e2276faab (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel) 0x0000020e2276f593 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&) 0x0000020e2276f38f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr) 0x0000020e2276f2cb (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b_1_2 (int,intptr) 0x0000020e2276f11d (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) 0x0000020e2276f1d6 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr) 0x00007fff4c3fe034 (mono-2.0-bdwgc) mono_jit_set_domain 0x00007fff4c33e724 (mono-2.0-bdwgc) mono_object_get_virtual_method 0x00007fff4c33e8bc (mono-2.0-bdwgc) mono_runtime_invoke 0x00007ff7cba93914 (Unity) 0x00007ff7cba8e534 (Unity) 0x00007ff7cba87e75 (Unity) 0x00007ff7cbbb376a (Unity) 0x00007ff7cc5b9f26 (Unity) 0x00007ff7ccaef4fb (Unity) 0x00007ff7cc5b9d37 (Unity) 0x00007ff7ccaf0417 (Unity) 0x00007ff7ccae9fc3 (Unity) 0x00007ff8051fe7e8 (USER32) CallWindowProcW 0x00007ff8051fe229 (USER32) DispatchMessageW 0x00007ff7ccac5753 (Unity) 0x00007ff7ccaca0eb (Unity) 0x00007ff7cddd92c2 (Unity) 0x00007ff804b37034 (KERNEL32) BaseThreadInitThunk 0x00007ff806a42651 (ntdll) RtlUserThreadStart
I'm at a complete loss. I can't find anything on the internet and i don't know what to do anymore.
Help would be highly appreciated.