Hello!
After release, I encountered errors that cause infinite loading. This happens due to duplicates in serialization.
Why do duplicates appear in serialization?
Is it possible to fix this without having access to the code inside the DLL?
Here is the error code:
ArgumentException: An item with the same key has already been added. Key: 7621598125332611549
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <152439c387994a8da523328132967f8d>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <152439c387994a8da523328132967f8d>:0)
Opsive.Shared.Utility.Serialization.DeserializeFields (System.Object obj, Opsive.Shared.Utility.MemberVisibility visibility, System.Func`2[T,TResult] onValidateTypeCallback, System.Func`4[T1,T2,T3,TResult] onValidateCallback) (at <755b9cd2c80348a2ad443ee0ea2761a6>:0)
Opsive.Shared.Utility.Serialization.DeserializeFields (Opsive.Shared.Utility.MemberVisibility visibility, System.Func`2[T,TResult] onValidateTypeCallback, System.Func`4[T1,T2,T3,TResult] onValidateCallback) (at <755b9cd2c80348a2ad443ee0ea2761a6>:0)
Opsive.UltimateInventorySystem.SaveSystem.InventorySystemManagerItemSaver.DeserializeAndLoadSaveData (Opsive.Shared.Utility.Serialization serializedSaveData) (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/InventorySystemManagerItemSaver.cs:302)
After release, I encountered errors that cause infinite loading. This happens due to duplicates in serialization.
Why do duplicates appear in serialization?
Is it possible to fix this without having access to the code inside the DLL?
Here is the error code:
ArgumentException: An item with the same key has already been added. Key: 7621598125332611549
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <152439c387994a8da523328132967f8d>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <152439c387994a8da523328132967f8d>:0)
Opsive.Shared.Utility.Serialization.DeserializeFields (System.Object obj, Opsive.Shared.Utility.MemberVisibility visibility, System.Func`2[T,TResult] onValidateTypeCallback, System.Func`4[T1,T2,T3,TResult] onValidateCallback) (at <755b9cd2c80348a2ad443ee0ea2761a6>:0)
Opsive.Shared.Utility.Serialization.DeserializeFields (Opsive.Shared.Utility.MemberVisibility visibility, System.Func`2[T,TResult] onValidateTypeCallback, System.Func`4[T1,T2,T3,TResult] onValidateCallback) (at <755b9cd2c80348a2ad443ee0ea2761a6>:0)
Opsive.UltimateInventorySystem.SaveSystem.InventorySystemManagerItemSaver.DeserializeAndLoadSaveData (Opsive.Shared.Utility.Serialization serializedSaveData) (at Assets/Opsive/UltimateInventorySystem/Scripts/SaveSystem/InventorySystemManagerItemSaver.cs:302)