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
- 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
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.