Hello,
On Xamarin Couchbase Lite Nuget v 2.7.1 we are swamped (over approx 1000 per day!) by errors of this kind:
Replicator+<>c__DisplayClass55_0.<StartInternal>b__0 ()
System.IndexOutOfRangeException: Index was outside the bounds of the array
System.Collections.Generic
HashSet`1[T].SetCapacity (System.Int32 newSize)
System.Collections.Generic
HashSet`1[T].IncreaseCapacity ()
System.Collections.Generic
HashSet`1[T].AddIfNotPresent (T value)
System.Collections.Generic.HashSet`1[T].System.Collections.Generic
ICollection<T>.Add (T item)
Couchbase.Lite.Sync
Replicator+<>c__DisplayClass55_0.<StartInternal>b__0 ()
Couchbase.Lite.Support
ThreadSafety.DoLocked (System.Action a)
Couchbase.Lite.Sync
Replicator.StartInternal ()
Couchbase.Lite.Sync
Replicator.<Start>b__35_0 ()
Couchbase.Lite.Support
SerialQueue.DispatchSync (System.Action a)
Couchbase.Lite.Sync
Replicator.Start ()
My.App.Droid.Services
CouchbaseImplementation.StartReplication ()
My.App.Droid.Services
CouchbaseImplementation.WaitAndRestartSync ()
Note: StartReplication() simply starts a replication, while WaitAndRestartSync() is responsible for handling the scenario when a replication stopped due to off-line, and it’s responsible of re-starting it.
The count of errors is 10,866 (!) over a population of approx 15 devices (!!) hence I am trying to understand what is going on.
On the same piece of code, we also have hundreds of this error:
# FLSliceExtensions.FLEncode[TVal] (System.Collections.Generic.IDictionary`2[TKey,TValue] dict, LiteCore.Interop.FLEncoder* enc)
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
stack trace:
System.Collections.Generic
Dictionary`2+Enumerator[TKey,TValue].MoveNext ()
LiteCore.Interop
FLSliceExtensions.FLEncode[TVal] (System.Collections.Generic.IDictionary`2[TKey,TValue] dict, LiteCore.Interop.FLEncoder* enc)
LiteCore.Interop
FLSliceExtensions.FLEncode (System.Object obj, LiteCore.Interop.FLEncoder* enc)
LiteCore.Interop
FLSliceExtensions.FLEncode (System.Object obj)
LiteCore.Interop.ReplicatorParameters
LiteCore.Interop.ReplicatorParameters..ctor (System.Collections.Generic.IDictionary`2[TKey,TValue] options) [0x00009] in <b1eafb08e4244435bdb17f2e5c03537e>:0
Couchbase.Lite.Sync
Replicator.StartInternal ()
Couchbase.Lite.Sync
Replicator.<Start>b__35_0 ()
Couchbase.Lite.Support
SerialQueue.DispatchSync (System.Action a)
Couchbase.Lite.Sync
Replicator.Start ()
Android OS: 8.0.0 and 9.0.0
Built on latest Xamarin msbuild
Cb lite Xamarin 2.7.1
App built for armeabiv7a and arm64
I looked through similar topics on the forums but there are none on this specific issue.
thanks for your help