Search Issue Tracker
Fixed in 2019.2.X
Fixed in 2017.4.X, 2018.3.X, 2019.1.X
Votes
0
Found in
2017.4.10f1
Issue ID
1094045
Regression
No
[Editor, Serialization] AssetBundle.LoadAssetAsync() corrupting last Asset in a set
Steps:
1. Open attached project ("TestDeserializationError.zip")
2. Open scene "TestDeserializationError1"
3. Enter Play mode
4. In Game tab, press button "Asynch Load Scene 2"
Expected: no error, the asset is loaded successfully.
Actual: The last asset doesn't display correctly and the console logs an error:
A script behaviour (script unknown or not yet loaded) has a different serialization layout when loading. (Read 32 bytes but expected 44 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
UnityEngine.AssetBundleRequest:get_asset(AssetBundleRequest)
.AssetLoadOp:get_Asset() (at Assets/External//Asset/BundledAssetLoader.cs:200)
.AssetLoadOp:OnUpdate() (at Assets/External//Asset/BundledAssetLoader.cs:254)
.AAsyncOperation:TickUpdate() (at Assets/External//AsyncOperation/AAsyncOperation.cs:18)
.AsyncOperator`1:TickUpdate() (at Assets/External//AsyncOperation/AsyncOperator.cs:35)
.BundledAssetLoader:TickUpdate() (at Assets/External//Asset/BundledAssetLoader.cs:109)
.Libs.DLC.DLCController:ServiceUpdate() (at Assets/Libs/Scripts/DLC/DLCController.cs:135)
.Utils.Services.ServicesManager:UpdateServices() (at Assets/Libs/Scripts/Utils/Services/ServicesManager.cs:389)
*.Utils.Services.ServicesUpdater:Update() (at Assets/Libs/Scripts/Utils/Services/ServicesUpdater.cs:148)
Reproduced with: 2017.4.14f1
Not reproduced with: 2018.2.14f1, 2018.3.0b8, 2019.1.0a6 (due to error in the Console)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment