Reproduction steps:
1. Open the attached “ReproProj” project
Expected result: The project opens
Actual result: The Editor crashes
Reproducible with: 2022.3.0f1, 2022.3.39f1
Not reproducible with: 2021.3.41f1, 2022.2.21f1, 6000.0.12f1
Reproducible on: macOS 14.5 (M1 Max)
Not reproducible on: No other environment tested
First few lines of the stack trace:
#0 0x0000019a97f1d4 in _platform_memmove
#1 0x00000105219a9c in keywords::LocalSpace::StateFromKeywordNames(dynamic_array<core::basic_string_ref<char>, 0ul> const&, keywords::LocalKeywordState&) const
#2 0x000001051d6acc in SharedMaterialData::SetShader(Shader const*, bool)
#3 0x000001051d7880 in Material::UpdateHashesOnPropertyChange(ShaderLab::FastPropertyName)
#4 0x000001051d76b4 in Material::SetTextureInternal(ShaderLab::FastPropertyName, Texture const*, bool)
#5 0x000001047fb158 in Material_CUSTOM_SetTextureImpl(ScriptingBackendNativeObjectPtrOpaque*, int, ScriptingBackendNativeObjectPtrOpaque*)
#6 0x00000369df2c30 in (wrapper managed-to-native) UnityEngine.Material:SetTextureImpl (UnityEngine.Material,int,UnityEngine.Texture) [
{0x357ff99c8}
+ 0x80] (0x369df2bb0 0x369df2ca0) [0x131daea80 - Unity Child Domain]
#7 0x00000369df2b54 in UnityEngine.Material:SetTexture (int,UnityEngine.Texture) [
{0x357ff9898}
+ 0x24] [/Users/bokken/build/output/unity/unity/Runtime/Export/Shaders/Material.cs :: 127u] (0x369df2b30 0x369df2b60) [0x131daea80 - Unity Child Domain]
#8 0x00000369defec8 in FlatKit.FlatKitFog:UpdateDistanceLut () [
{0x337cc60f0}
+ 0x298] [/Users/i.mikutaviciute/Downloads/reproproj before FAV/Assets/FlatKit/[Render Pipeline] URP/RenderFeatures/Fog/FlatKitFog.cs :: 144u] (0x369defc30 0x369defed8) [0x131daea80 - Unity Child Domain]