Search Issue Tracker
Fixed in 3.0.0-preview.4
Fixed in 1.5.0-preview.4 , 2.1.0-preview.4
Votes
0
Found in [Package]
preview.3 - 3.0.0, preview.1 - 3.0.0
Issue ID
1207793
Regression
Yes
[TMP] MissingReferenceException is thrown on deleting Text (TMP) prefab when it is used in a hierarchy as a child object
On deleting Text (TMP) prefab from Project window causes editor to throw MissingReferenceException, after that same exception is thrown on creating/deleting any prefab(eg. Primitive GameObject Prefab), refer attached video.
Steps to repro:
1. Create a new Project
2. Hierarchy > Create > Create Empty gameobject
3. Hierarchy > Create > 3D Objects > TMP Text - TextMeshPro
4. Make prefab of "Empty gameobject" and "TMP Text - TextMeshPro"
5. Make "TMP Text - TextMeshPro" object as a child of Empty gameobject
6. Inspector > Overrides > Apply All
7. Delete "TMP Text - TextMeshPro" prefab from Project Window
Actual Result:
MissingReferenceException is thrown on deleting Text (TMP) prefab.
Expected Result:
Prefab is deleted without any exceptions.
Tested with Unity versions:
2020.1.0a17, 2019.3.0f4
Package found version: preview.3 - 3.0.0, preview.1 - 3.0.0
Package working fine version: 2.0.1
Environment:
Windows10 and macOS 10.14
Stack trace:
MissingReferenceException: The object of type 'TextMeshPro' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
TMPro.TextMeshPro.OnPrefabInstanceUpdate (UnityEngine.GameObject go) (at Library/PackageCache/com.unity.textmeshpro@3.0.0-preview.3/Scripts/Runtime/TMPro_Private.cs:303)
UnityEditor.PrefabUtility.Internal_CallPrefabInstanceUpdated (UnityEngine.GameObject instance) (at <abcb5714b99e4fb3a117425953eb603c>:0)
UnityEditor.ProjectBrowser:DeleteSelectedAssets(Boolean)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Add comment