Search Issue Tracker
Fixed in 2023.2.0b17
Fixed in 2023.2.X, 2023.3.X, 2023.3.0a12
Votes
0
Found in
2023.1.17f1
2023.2.0b14
2023.3.0a10
Issue ID
UUM-53663
Regression
Yes
Crash on Material::GetShader when the cache is pointing to an invalid material after domain reload
The text cache cleanup was tied to the GFXDevice cleanup, executing every domain reload. This behavior was modified at some point, resulting in the GFXDevice cleanup no longer being called automatically. Despite this change, the text cache still requires cleanup. Failure to do so leads to invalid material references post-domain reload.
Reproducible with: 2023.1.17f1, 2023.2.0b14, 2023.3.0a10
Not reproducible with: 2021.3.31f1, 2022.3.11f1
Reproduced on: Windows 10 (by reporters), Windows 11 (by reporters), macOS 13.5.2 (M1) (by reporters)
Not reproducible on: No other environment tested
Note: Users have reported this issue manifesting when performing various steps
First few lines of the stack trace:
0x00007FFC0396116C (Unity) PPtr<Shader>::operator Shader * __ptr64
0x00007FFC03E3E40D (Unity) Material::GetShader
0x00007FFC0474F9FD (Unity) GUIStyle::RenderText
0x00007FFC0474C1F4 (Unity) GUIStyle::DrawContent
0x00007FFC034CE970 (Unity) GUIStyle_CUSTOM_Internal_DrawContent_Injected
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note (fix version 2023.3):
Fixes a memory corruption occurring with IMGUI Text.