Search Issue Tracker
Fixed
Fixed in 6000.0.25f1, 6000.1.0a2, 7000.0.0a7
Votes
0
Found in
2023.3.0b4
6000.0.0b11
6000.1.0a2
7000.0.0a1
Issue ID
UUM-61599
Regression
No
[macOS] Crash on Material::RemoveUnusedProperties when removing unused Material properties
Reproduction steps:
1. Open the attached “TestCrash” project
2. Open the “Assets/Scenes/SampleScene.unity” scene
3. In the Hierarchy window, select the “Cube” GameObject
4. In the Inspector window, press the Kebab Menu of the Material Component
5. Press “Remove Unused Properties…”
Expected result: Unused Properties of the Material are removed
Actual result: The Editor crashes
Reproducible with: 2023.3.0a2, 2023.3.0b4
Could not test with: 2021.3.34f1, 2022.3.19f1, 2023.2.7f1 (The Menu doesn’t have “Remove Unused Properties…” item)
Reproducible on: macOS 14.2.1 (M1 Max)
Not reproducible on: Windows 10
Note: Reproducible in a new project
First few lines of the stack trace:
#0 0x00000102de0554 in Material::RemoveUnusedProperties()
#1 0x00000306d12fe0 in (wrapper managed-to-native) UnityEngine.Material:RemoveUnusedProperties_Injected (intptr) [{0x2ef45ddc8} + 0x60] (0x306d12f80 0x306d13034) [0x13ebc2a80 - Unity Child Domain]
#2 0x00000306d12ef8 in UnityEngine.Material:RemoveUnusedProperties () [{0x2ef45dce0} + 0x70] (0x306d12e88 0x306d12f0c) [0x13ebc2a80 - Unity Child Domain]
#3 0x00000306d12860 in UnityEditor.MaterialEditor:RemoveUnusedProperties (UnityEditor.MenuCommand) [{0x15fead648} + 0x70] [/Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/MaterialEditor.cs :: 3117u] (0x306d127f0 0x306d12874) [0x13ebc2a80 - Unity Child Domain]
#4 0x0000015f639450 in (wrapper runtime-invoke) <Module>:runtime_invoke_void_object (object,intptr,intptr,intptr) [{0x15b608078} + 0x70] (0x15f6393e0 0x15f6394ec) [0x13ebc2a80 - Unity Child Domain]
#5 0x0000015c10fc40 in mono_jit_runtime_invoke
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Water displacement fades when camera move far in worldspace.
- [Android] Crash due to running out of memory when compiling shaders for an Android build
- Crash on WindowsVideoMedia::GetVideoFrameAtIndex when importing a specific MP4 file
- Search results number in Saved Searches Panel is not properly visible when Search query is selected in light Editor mode
- OS Window is switched and errors logged when trying to access Overrides of the same Prefab in the Overrides Panel
Add comment