Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received unexpected rev crash #300

Closed
sellingsolutions opened this issue Apr 1, 2014 · 7 comments
Closed

Received unexpected rev crash #300

sellingsolutions opened this issue Apr 1, 2014 · 7 comments

Comments

@sellingsolutions
Copy link

17:00:59.436‖ �WARNING*** : CBL_Puller Received unexpected rev {1843AC66-0A77-4725-B81F-37725F960A8E #1-4ea22ec4dc08748ac06cd092a7ca9916}
17:00:59.437‖ �WARNING*** : CBL_Puller: Received unexpected rev {895a9227-135a-45c5-b0e3-636a7e719770 #1-91e1ba13609013fc91e8939a363b8fda}
17:00:59.437‖ �WARNING*** : CBL_Puller Received unexpected rev {67bb21c7-739b-43f9-9da9-ef24099650c5 #1-5fbdeb8181cd0254033e83de1d7adb59}
17:00:59.437‖ �WARNING*** : CBL_Puller Received unexpected rev {57F995F8-961E-4F60-84F4-BCE62A194B2A #1-c03172fa6796881a2b259d5418016bc6}
17:00:59.438‖ �WARNING*** : CBL_Puller Received unexpected rev {9463B25A-B740-48AF-958D-541BC1DAD55A #1-5af6016d806608d69b115d5e852ef412}
2014-04-01 17:00:59.438 iSpect[44369:3503] *** ASSERTION FAILED: Invalid sequence 0 (latest is 1374)
2014-04-01 17:00:59.438 iSpect[44369:3503] *** Assertion failure in -CBLSequenceMap removeSequence:, /Users/couchbase/jenkins/workspace/build_cblite_ios_stable/couchbase-lite-ios/Source/CBLSequenceMap.m:45

thread backtrace:
http://pastebin.com/77MdvhR5

@snej
Copy link
Contributor

snej commented Apr 1, 2014

What versions/revisions of CBL and the gateway?

@sellingsolutions
Copy link
Author

latest master on sync_gateway and beta 3 on cblite

@snej
Copy link
Contributor

snej commented Apr 1, 2014

Try updating Couchbase Lite to b3.1; there were some important fixes.

@snej
Copy link
Contributor

snej commented Apr 2, 2014

Notes: The "Received unexpected rev" warning is from CBL_Puller.m:483. It happens if the response to a _bulk_get request contains a revision that isn't one that was asked for. So either the gateway screwed up and returned the wrong revision, or CBL_Puller isn't identifying it correctly. Weird.

@tleyden
Copy link
Contributor

tleyden commented Apr 2, 2014

A network trace should be able to isolate whether the gateway is screwing up and returning the wrong revision.

@snej
Copy link
Contributor

snej commented Apr 3, 2014

Or just turning on “SyncVerbose” logging in CBL. But it sounds like this is intermittent so it may be hard to capture.

It does look as though when CBL receives an unexpected revision it should just ignore it — the crash came later on during processing such a revision. I can fix that easily.

snej added a commit that referenced this issue Apr 3, 2014
Don’t process such a revision; it’ll cause an exception later.
For #300
@jessliu jessliu added this to the 1.1 milestone May 28, 2014
@snej snej added the crash! label Jun 11, 2014
@snej snej added ready and removed ready labels Jun 20, 2014
@jessliu
Copy link

jessliu commented Jun 23, 2014

Hi @sellingsolutions as we have not heard back in some time and this issue was based off of an old Beta, we are closing out this issue. If you have any additional information that could help us reproduce this in 1.0.0, please add and re-open.

@jessliu jessliu closed this as completed Jun 23, 2014
@jessliu jessliu modified the milestones: 1.1.0, 1.0.3 Aug 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants