Replication stops for no apparent reason

Hi,

I am having some issues trying to replicate multiple databases into my mobile application. When i start replicating, it runs fine for a few seconds and succeeds to replicate relatively small databases. But when i try to replicate bigger databases with ± 2000 documents, the replicator randomly stopts at some point. and spews this stacktrace.

Thread finished: <Thread Pool> #33
08-18 15:44:24.407 D/Mono    (15921): [0x6ad163a8] worker unparking, timeout? no interrupted? no
08-18 15:44:24.407 D/Mono    (15921): [0x6ad163a8] worker parking
08-18 15:44:24.417 D/Mono    (15921): [0x6690ae48] worker unparking, timeout? no interrupted? no
08-18 15:44:24.417 D/Mono    (15921): [0x6690ae48] worker parking
The thread 'Unknown' (0x21) has exited with code 0 (0x0).
08-18 15:44:29.617 D/Mono    (15921): [0x6ad595c0] worker unparking, timeout? yes interrupted? no
08-18 15:44:29.617 D/Mono    (15921): [0x6ad595c0] worker finishing
08-18 15:44:29.617 D/Mono    (15921): [0x6690ae48] worker unparking, timeout? no interrupted? no
08-18 15:44:29.617 D/Mono    (15921): [0x6690ae48] worker parking
08-18 15:44:29.617 D/Mono    (15921): [0x668bec38] worker unparking, timeout? no interrupted? no
08-18 15:44:29.617 D/Mono    (15921): [0x668bec38] worker parking
08-18 15:44:29.617 D/Mono    (15921): [0x668ba910] worker unparking, timeout? no interrupted? no
08-18 15:44:29.617 D/Mono    (15921): [0x668ba910] worker parking
08-18 15:44:29.617 D/Mono    (15921): [0x67db0740] worker unparking, timeout? no interrupted? no
08-18 15:44:29.617 D/Mono    (15921): [0x67db0740] worker parking
08-18 15:44:29.617 D/Mono    (15921): [0x6b4e4cc8] worker unparking, timeout? no interrupted? no
08-18 15:44:29.617 D/Mono    (15921): [0x6b4e4cc8] worker parking
08-18 15:44:29.627 D/Mono    (15921): [0x6ad163a8] worker unparking, timeout? no interrupted? no
Thread finished: <Thread Pool> #30
08-18 15:44:29.627 D/Mono    (15921): [0x6ad163a8] worker parking
08-18 15:44:29.627 D/Mono    (15921): [0x6690ae48] worker unparking, timeout? no interrupted? no
08-18 15:44:29.627 D/Mono    (15921): [0x6690ae48] worker parking
The thread 'Unknown' (0x1e) has exited with code 0 (0x0).

And it keeps looping like this until i eventually close the app manually. It does not crash either. it just loops.

When i run the app a second time, the replication seems to continue where it left off and often than completes all replications without any issues. However, If this happens with databases with over 100k documents we cant keep restarting the app again and again until replications eventually finishes.

Anybody have any idea what this is and why it is happening? How can i resolve this issue?

Any suggestions and help are welcome!

Thanks! :smiley:

I’ve been noticing this too. I’m having a hard time tracking down what’s causing it since using a debugger causes it to crash (I’ve never been a fan of the Xamarin debugger…) but this is an unfortunate known issue at the moment. It doesn’t reproduce in genymotion either (only device)

hmm thats unfortunate.
Ill keep looking for solutions and i will let you know if i find anything.