Since you mentioned that this used to work and assuming you have made no changes to your app code or environment since, it may be worthwhile looking into docs that may have been recently added - maybe something in the docs is triggering the crash.
This is the full error from the console logging. Does the file based logging provide more detail?
Yeah, I strongly suspect that it is something in the docs that is triggering the crash, but what would it be? My guess would be that there were a large number of revisions?
Can you give me any insight into what this error means? Or what could be setting it off? Maybe I could dig a little deeper if I knew what it meant?
What exactly is it referring to when it says that the “properties are too large”?
Is this just the document size itself? Or is it the document properties? If it is the latter, as far as I know, I don’t at any stage do any writing to the document properties?
@Michael_McAdam, can you reproduce this bug when running your app in Xcode? If so, please set a breakpoint on exceptions (use the “+” button at the bottom of the breakpoint navigator) and when this specific exception happens, capture a backtrace by typing “bt” at the debugger console.
I don’t think that there is a huge change in the number of documents between when it fails and when it succeeds.
I am simply creating a replicator object: _replicator = [[CBLReplicator alloc] initWithConfig:replConfig];
And then running with: [_replicator start];
I don’t know if that helps to answer your question.
My only thought is that due to how the program works the documents get updated relatively regularly. It seems to be an issue that only lasts for a little while so my thought is this. (Based off a very limited understanding on how all of this works). The document properties get very large because there are a large number of revisions and when those are attempted to be pushed it fails. As time goes on, CBL automatically purges the older revisions and eventually reduces the size so that it can be synced. Again, I’m just spitballing here cause I don’t really know how all of this works.
Hmmm… CBL is only supposed to keep track of the last 20 revisions. Even if it were keeping more, it would take a lot of revisions to trigger this; something like 2,000. Is it possible your app modifies a single document this many times between replications?