Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4.0f1
2019.1.0b4
2019.1.4f1
2019.2.0a6
2019.3.0a1
Issue ID
1167075
Regression
No
Loading TextMesh Pro prefab from AssetBundle crashes Editor when BuildAssetBundleOptions.DisableWriteTypeTree option is used
How to reproduce:
1. Open attached "project-1167075.zip" project
2. In the Editor select "BuildAB" -> "Build"
3. Enter Play mode
4. Press "LoadAB" button
Expected result: TextMesh Pro prefab is loaded, Editor does not crash
Actual result: Editor crashes
Reproducible with: 2018.4.3f1, 2019.1.9f1, 2019.2.0b8 ,2019.3.0a8
Could not test with: 2017.4.0f1, 2017.4.29f1, 2019.1.0a1, 2019.1.0b3, 2019.2.0a1, 2019.2.0a5 (TextMesh Pro prefab gets corrupted in older than 1.4.0 TextMesh Pro package versions)
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note (2020.1.X):
The issue is caused by the user stripping away necessary information for the Serialization System to properly de-serialize the data. TextMeshPro uses Editor only fields which are also serialized. When we try to de-serialize the raw binary data, without the TypeTree information, the serialization system will not know how to map the data correctly, leading to a crash.
The workaround is to write the TypeTree when in Editor.
The fix we have at the moment is to document this behavior.