0
Unity Bug

Bolt resets assemblies and types to default

Alexander Vinogradov 9 months ago updated by Lazlo Bonin (Lead Developer) 9 months ago 6

Suddenly all my imported assembly options and types got reset to the default list.

Bolt Version:
1.4.6f3
Unity Version:
2019.2.7f2
Platform(s):
iOS
Scripting Backend:
IL2CPP
.NET Version (API Compatibility Level):
.NET 4.x

it happened again!! Now it gives me this message on unity start
```
7 unit options failed to load and were skipped.
Try rebuilding the unit options with 'Tools > Bolt > Build Unit Options' to purge outdated units.

UnityEngine.Advertisements.PlacementState@literal
UnityEngine.Advertisements.ShowResult@literal
UnityEngine.Purchasing.InitializationFailureReason@literal
UnityEngine.Purchasing.PayoutType@literal
UnityEngine.Purchasing.ProductType@literal
UnityEngine.Purchasing.PurchaseFailureReason@literal
UnityEngine.Purchasing.PurchaseProcessingResult@literal

UnityEngine.Advertisements.PlacementState@literal:
System.Runtime.Serialization.SerializationException: Unable to find type: 'UnityEngine.Advertisements.PlacementState'.
at Ludiq.RuntimeCodebase.DeserializeType (System.String typeName) [0x0000a] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:104
at Ludiq.Codebase.DeserializeType (System.String typeName) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Reflection\Codebase.cs:147
at Bolt.LiteralOption.Deserialize (Bolt.UnitOptionRow row) [0x00007] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Framework\Codebase\LiteralOption.cs:54
at Bolt.UnitOptionRow.ToOption () [0x00023] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitOptionRow.cs:43
at Bolt.UnitBase.Load () [0x000e3] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitBase.cs:98

UnityEngine.Advertisements.ShowResult@literal:
System.Runtime.Serialization.SerializationException: Unable to find type: 'UnityEngine.Advertisements.ShowResult'.
at Ludiq.RuntimeCodebase.DeserializeType (System.String typeName) [0x0000a] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:104
at Ludiq.Codebase.DeserializeType (System.String typeName) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Reflection\Codebase.cs:147
at Bolt.LiteralOption.Deserialize (Bolt.UnitOptionRow row) [0x00007] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Framework\Codebase\LiteralOption.cs:54
at Bolt.UnitOptionRow.ToOption () [0x00023] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitOptionRow.cs:43
at Bolt.UnitBase.Load () [0x000e3] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitBase.cs:98

UnityEngine.Purchasing.InitializationFailureReason@literal:
System.Runtime.Serialization.SerializationException: Unable to find type: 'UnityEngine.Purchasing.InitializationFailureReason'.
at Ludiq.RuntimeCodebase.DeserializeType (System.String typeName) [0x0000a] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:104
at Ludiq.Codebase.DeserializeType (System.String typeName) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Reflection\Codebase.cs:147
at Bolt.LiteralOption.Deserialize (Bolt.UnitOptionRow row) [0x00007] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Framework\Codebase\LiteralOption.cs:54
at Bolt.UnitOptionRow.ToOption () [0x00023] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitOptionRow.cs:43
at Bolt.UnitBase.Load () [0x000e3] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitBase.cs:98

UnityEngine.Purchasing.PayoutType@literal:
System.Runtime.Serialization.SerializationException: Unable to find type: 'UnityEngine.Purchasing.PayoutType'.
at Ludiq.RuntimeCodebase.DeserializeType (System.String typeName) [0x0000a] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:104
at Ludiq.Codebase.DeserializeType (System.String typeName) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Reflection\Codebase.cs:147
at Bolt.LiteralOption.Deserialize (Bolt.UnitOptionRow row) [0x00007] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Framework\Codebase\LiteralOption.cs:54
at Bolt.UnitOptionRow.ToOption () [0x00023] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitOptionRow.cs:43
at Bolt.UnitBase.Load () [0x000e3] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitBase.cs:98

UnityEngine.Purchasing.ProductType@literal:
System.Runtime.Serialization.SerializationException: Unable to find type: 'UnityEngine.Purchasing.ProductType'.
at Ludiq.RuntimeCodebase.DeserializeType (System.String typeName) [0x0000a] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:104
at Ludiq.Codebase.DeserializeType (System.String typeName) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Reflection\Codebase.cs:147
at Bolt.LiteralOption.Deserialize (Bolt.UnitOptionRow row) [0x00007] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Framework\Codebase\LiteralOption.cs:54
at Bolt.UnitOptionRow.ToOption () [0x00023] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitOptionRow.cs:43
at Bolt.UnitBase.Load () [0x000e3] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitBase.cs:98

UnityEngine.Purchasing.PurchaseFailureReason@literal:
System.Runtime.Serialization.SerializationException: Unable to find type: 'UnityEngine.Purchasing.PurchaseFailureReason'.
at Ludiq.RuntimeCodebase.DeserializeType (System.String typeName) [0x0000a] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:104
at Ludiq.Codebase.DeserializeType (System.String typeName) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Reflection\Codebase.cs:147
at Bolt.LiteralOption.Deserialize (Bolt.UnitOptionRow row) [0x00007] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Framework\Codebase\LiteralOption.cs:54
at Bolt.UnitOptionRow.ToOption () [0x00023] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitOptionRow.cs:43
at Bolt.UnitBase.Load () [0x000e3] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitBase.cs:98

UnityEngine.Purchasing.PurchaseProcessingResult@literal:
System.Runtime.Serialization.SerializationException: Unable to find type: 'UnityEngine.Purchasing.PurchaseProcessingResult'.
at Ludiq.RuntimeCodebase.DeserializeType (System.String typeName) [0x0000a] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Runtime\Reflection\RuntimeCodebase.cs:104
at Ludiq.Codebase.DeserializeType (System.String typeName) [0x00000] in C:\Users\lazlo\Projects\Bolt1\Package\Ludiq.Core\Editor\Reflection\Codebase.cs:147
at Bolt.LiteralOption.Deserialize (Bolt.UnitOptionRow row) [0x00007] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Framework\Codebase\LiteralOption.cs:54
at Bolt.UnitOptionRow.ToOption () [0x00023] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitOptionRow.cs:43
at Bolt.UnitBase.Load () [0x000e3] in C:\Users\lazlo\Projects\Bolt1\Package\Bolt.Flow\Editor\Options\UnitBase.cs:98


UnityEngine.Debug:LogWarning(Object)
Bolt.UnitBase:Load() (at C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Editor/Options/UnitBase.cs:132)
Bolt.UnitBase:AutoLoad() (at C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Editor/Options/UnitBase.cs:37)
System.Reflection.MethodBase:Invoke(Object, Object[])
Ludiq.<>c__DisplayClass0_0:<.cctor>b__3() (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Threading/BackgroundWorker.cs:49)
Ludiq.BackgroundWorker:Work() (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Editor/Threading/BackgroundWorker.cs:115)
System.Threading.ThreadHelper:ThreadStart()
```

Hi Alexander,

Sorry you're experiencing this issue and thanks for submitting a bug report. Please make sure to upgrade to the latest version of Bolt and restart Unity. Latest Bolt: https://ludiq.io/bolt/download/1.4.7

Please also send the full error log and any additional warnings you may find in the console.

Best,

Hasan from Ludiq

But I don't see any fixes in a changelog of 1.4.7 that can affect this error. Do you know what exactly happened from this log?

Here is the full log

it seems that if I revert .db file in git and launch Unity again - all assemblies and types appear again.

Unity Bug

Hi Alexander,

From the console, it seems like the issue is related to Unity failing to load UnityEngine.UI.dll.

This causes Bolt to fail to load.

This issue is a Unity bug that should have been fixed in Unity 2019.3.

I recommend you update Unity and see if the issue persists.

See this thread for the full explanation:

https://forum.unity.com/threads/ui.673504/