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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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.