{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/794","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/794/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/794/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/794","id":91393119,"number":794,"title":"crashing somewhere (near MYGetCertificateDigest?)","user":{"login":"hermanccw","id":1000084,"avatar_url":"https://avatars.githubusercontent.com/u/1000084?v=3","gravatar_id":"","url":"https://api.github.com/users/hermanccw","html_url":"https://github.com/hermanccw","followers_url":"https://api.github.com/users/hermanccw/followers","following_url":"https://api.github.com/users/hermanccw/following{/other_user}","gists_url":"https://api.github.com/users/hermanccw/gists{/gist_id}","starred_url":"https://api.github.com/users/hermanccw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermanccw/subscriptions","organizations_url":"https://api.github.com/users/hermanccw/orgs","repos_url":"https://api.github.com/users/hermanccw/repos","events_url":"https://api.github.com/users/hermanccw/events{/privacy}","received_events_url":"https://api.github.com/users/hermanccw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/crash!","name":"crash!","color":"e11d21"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/needsmoreinfo","name":"needsmoreinfo","color":"0052cc"},{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/labels/review","name":"review","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2015-06-27T00:45:57Z","updated_at":"2016-08-23T18:36:13Z","closed_at":"2016-01-12T18:57:29Z","body":"Hi there,\r\n\r\nWe have a crash log that looks like the following:\r\n\r\n```\r\nThread : Fatal Exception: NSInternalInconsistencyException\r\n0  CoreFoundation                 0x2a2d8fef __exceptionPreprocess\r\n1  libobjc.A.dylib                0x3858ac8b objc_exception_throw\r\n2  CoreFoundation                 0x2a2d8ec5 +[NSException raise:format:]\r\n3  Foundation                     0x2afd7f17 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]\r\n4  myApp                          0x003ab95b \r\n5  myApp                          0x003ad7d7 \r\n6  myApp                          0x003ad8ed \r\n7  myApp                          0x003b9577 MYGetCertificateDigest\r\n8  myApp                          0x003b2d13 MYGetCertificateDigest\r\n9  myApp                          0x003c10af CBLStatusFromBulkDocsResponseItem\r\n10 myApp                          0x003c22af CBLWarnUntrustedCert\r\n11 CFNetwork                      0x29e1ae29 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke\r\n12 CFNetwork                      0x29e1ade3 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]\r\n13 CFNetwork                      0x29e1aed5 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:]\r\n14 CFNetwork                      0x29d2ec87 ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke\r\n15 CFNetwork                      0x29dcc0d5 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2\r\n16 CFNetwork                      0x29d1fa35 RunloopBlockContext::_invoke_block(void const*, void*)\r\n17 CoreFoundation                 0x2a1e8c6d CFArrayApplyFunction\r\n18 CFNetwork                      0x29d1f8ef RunloopBlockContext::perform()\r\n19 CFNetwork                      0x29d1f7b5 MultiplexerSource::perform()\r\n20 CFNetwork                      0x29d1f649 MultiplexerSource::_perform(void*)\r\n21 CoreFoundation                 0x2a29efaf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__\r\n22 CoreFoundation                 0x2a29e3bf __CFRunLoopDoSources0\r\n23 CoreFoundation                 0x2a29ca25 __CFRunLoopRun\r\n24 CoreFoundation                 0x2a1e9201 CFRunLoopRunSpecific\r\n25 CoreFoundation                 0x2a1e9013 CFRunLoopRunInMode\r\n26 Foundation                     0x2af5213d -[NSRunLoop(NSRunLoop) runMode:beforeDate:]\r\n27 myApp                          0x003ae96f CBLCompareRevIDs\r\n28 Foundation                     0x2b0173bb __NSThread__main__\r\n29 libsystem_pthread.dylib        0x38c5ee23 _pthread_body\r\n30 libsystem_pthread.dylib        0x38c5ed97 _pthread_start\r\n31 libsystem_pthread.dylib        0x38c5cb20 thread_start\r\n```\r\n\r\nSeem like we are crashing on MYGetCertificateDigest but we don't talk to our db with SSL.\r\n\r\nSeems like it happened during ```CBLCompareRevIDs```\r\n\r\nAny ideas?\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/comments/241831450","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/794#issuecomment-241831450","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/794","id":241831450,"user":{"login":"combinatorial","id":216050,"avatar_url":"https://avatars.githubusercontent.com/u/216050?v=3","gravatar_id":"","url":"https://api.github.com/users/combinatorial","html_url":"https://github.com/combinatorial","followers_url":"https://api.github.com/users/combinatorial/followers","following_url":"https://api.github.com/users/combinatorial/following{/other_user}","gists_url":"https://api.github.com/users/combinatorial/gists{/gist_id}","starred_url":"https://api.github.com/users/combinatorial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/combinatorial/subscriptions","organizations_url":"https://api.github.com/users/combinatorial/orgs","repos_url":"https://api.github.com/users/combinatorial/repos","events_url":"https://api.github.com/users/combinatorial/events{/privacy}","received_events_url":"https://api.github.com/users/combinatorial/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T18:36:13Z","updated_at":"2016-08-23T18:36:13Z","body":"Here are the details of the crash we are seeing...\r\n\r\nUsing couchbase lite 1.2.1 for iOS we are seeing an assertion failure recorded on crashlytics with the following stack on a thread named CouchbaseLite.\r\n\r\n`Fatal Exception: NSInternalInconsistencyException\r\n!_changeTracker`\r\n\r\n    15 Concepts                       0x1005e0c9c _AssertFailed + 470248\r\n    16 Concepts                       0x100589880 -[CBLRestPuller startChangeTracker] + 112844\r\n    17 Concepts                       0x100589304 -[CBLRestPuller beginReplicating] + 111440\r\n    18 Concepts                       0x100588530 __45-[CBLRestReplicator fetchRemoteCheckpointDoc]_block_invoke + 107900\r\n    19 Concepts                       0x100587adc __61-[CBLRestReplicator sendAsyncRequest:path:body:onCompletion:]_block_invoke + 105256\r\n    20 Concepts                       0x10059ab38 -[CBLRemoteRequest respondWithResult:error:] + 183172\r\n    21 Concepts                       0x10059c1ec -[CBLRemoteJSONRequest connectionDidFinishLoading:] + 188984\r\n    22 CFNetwork                      0x18231d6a0 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 80\r\n    23 CFNetwork                      0x18231d630 -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 200\r\n    24 CFNetwork                      0x18231d7a4 -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56\r\n    25 CFNetwork                      0x18218339c ___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 100\r\n    26 CFNetwork                      0x18227741c ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 108\r\n    27 libdispatch.dylib              0x1815ed47c _dispatch_client_callout + 16\r\n    28 libdispatch.dylib              0x1815f67b8 _dispatch_block_invoke + 540\r\n    29 CFNetwork                      0x18216fac0 RunloopBlockContext::_invoke_block(void const*, void*) + 36"}}
{"actor":{"display_login":"combinatorial"}}