Search Issue Tracker
Fixed in 2021.3.28f1
Fixed in 2021.3.X, 2022.2.X, 2023.1.X, 2023.2.X, 2023.2.0a7
Votes
5
Found in
2023.1.0a1
2023.2.0a1
Issue ID
UUM-660
Regression
No
[Being Backported] AssetBundle.LoadFromFileAsync causes errors when bundles are built using DisableWriteTypeTree [Document/add error message]
How to reproduce:
1. Open the user’s attached project
2. Open scene Scenes/SampleScene
3. Go to Tools -> Build Asset Bundles
4. Press the Play button and go to the Game view
5. Press the “Button” and observe the Console
Expected result: no errors are thrown
Actual result: errors are thrown: “Assertion failed on expression: ‘CurrentThread::IsMainThread()’“, “ObjectCreationLock(Write) must be taken and only on main thread”
Reproducible with: 2019.4.38f1, 2020.3.33f1, 2021.2.3f1, 2022.1.0f1, 2022.2.0a11
Notes: sometimes the Editor freezes
Comments (3)
-
Alan-Liu
Jun 06, 2022 04:10
The Unity developer replied that they won't fix this issue, because "Bundles built without type trees are incompatible with the Editor and cannot be loaded in the Editor".
-
Alan-Liu
Jun 06, 2022 04:07
@NAOR_UNITY
I got this issue only in Editor. In built player(Android and iOS), it works correctly. If you only get issue with one specific asset bundle, maybe it's a different issue.
-
naor_unity
May 28, 2022 05:13
Also getting this same issue with one specific asset bundles in Unity 2021.218f1
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note (fix version 2023.2):
Added error message when loading bundle without typetrees in the Editor