Steps to reproduce:
1. Open the “user’s attached project”
2. Open the “UI Kit” Scene
3. Select the “PanelSettings” Asset through the Project window
4. Change “Render Mode” to “World Space” through the Inspector
5. Enter Play Mode
6. Exit Play Mode
7. Observe the crash
Reproducible with versions: 6000.4.0a2, 6000.4.0a5, 6000.5.0a2
Not reproducible with: 6000.0.63f1, 6000.2.14f1, 6000.3.0f1, 6000.4.0a1
Reproducible on: macOS 15.7.1 (M1 Max), Windows 10
Not reproducible on: no other environment tested
Note: Reproduction is inconsistent
First few lines of StackTrace:
#0 0x000001051bd8d8 in GameObject::SetPreviewSceneFlags(PreviewSceneFlags)
#1 0x00000105707f8c in ShaderPropertySheet::UpdateTextureInfo(int, FastTexturePropertyName const&, Texture const*, TextureID)
#2 0x000001057097ec in ShaderPropertySheet::SetTextureWithNoScaleAndOffset(ShaderLab::FastPropertyName, Texture*)
#3 0x00000103ff22d0 in UIRendererUtility::SetAllTextures(void*, int*, long*, int)
#4 0x00000378f7d800 in (wrapper managed-to-native) UnityEngine.UIElements.UIR.Utility:SetAllTextures (intptr,intptr,intptr,int) [\{0x337048f90} + 0xa0] (0x378f7d760 0x378f7d884) [0x1696c2a80 - Unity Child Domain]