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
- Font character thickness does not adjust properly in UI Toolkit text when changing Bold Weight in Font Asset
- Multiple "[...] is inaccessible due to its protection level" errors are thrown when opening project with Unity Version Control installed
- Sorting icons are tiny and misaligned in Import Activity window
- The Undo system does not record HideFlags.HideInHierarchy changes
- [Linux] Bug Reporter window is in Light mode when the Editor theme is Dark mode
Resolution Note (fix version 2023.3):
Fixes a memory corruption occurring with IMGUI Text.