App Crash during the pull replication with CB Lite v2.6

While testing the offline-online handling during the pull replication we observed one app crash. Also, the replicator status is showing as busy even though the network is not reachable. Let me know if any details available on this.

#### Network status change: Network not reachable
#### Pull Replicator Status: busy
2019-10-24 13:43:07.443301-0700 MyAppQA[3270:1406879] TIC TCP Conn Failed [73:0x282ffac40]: 1:50 Err(50)
2019-10-24 13:43:07.445338-0700 MyAppQA[3270:1406879] Task <13932EE3-E601-40F8-9CF9-29E08FAF7A01>.<0> HTTP load failed (error code: -1009 [1:50])
2019-10-24 13:43:07.445568-0700 MyAppQA[3270:1407637] NSURLConnection finished with error - code -1009
2019-10-24 13:43:07.456576-0700 MyAppQA[3270:1406870] CouchbaseLite Network WARNING: {C4SocketImpl#12}==> litecore::repl::C4SocketImpl wss://qa.service.cloud.data.com/sync_gateway/asset360/_blipsync @0x10ca7cc20
2019-10-24 13:43:07.456621-0700 MyAppQA[3270:1406870] CouchbaseLite Network WARNING: {C4SocketImpl#12} Unexpected or unclean socket disconnect! (reason=errno, code=57)
2019-10-24 13:43:07.489524-0700 MyAppQA[3270:1406870] CouchbaseLite Network WARNING: {C4SocketImpl#13}==> litecore::repl::C4SocketImpl wss://qa.service.cloud.data.com/sync_gateway/asset360/_blipsync @0x10cb0e0d0
2019-10-24 13:43:07.489690-0700 MyAppQA[3270:1406870] CouchbaseLite Network WARNING: {C4SocketImpl#13} Unexpected or unclean socket disconnect! (reason=errno, code=57)
#### Pull Replicator Status: busy
2019-10-24 13:43:07.512035-0700 MyAppQA[3270:1407746] CouchbaseLite Replicator ERROR: {Repl#14}==> litecore::repl::Replicator /var/mobile/Containers/Data/Application/A84F16AF-7EB7-4468-A83B-3F35C3230927/Library/Application Support/CouchbaseLite/asset360-a6ah-cc-edgis-qa.cblite2/ ->wss://qa.service.cloud.data.com/sync_gateway/asset360/_blipsync @0x12024e388
2019-10-24 13:43:07.512236-0700 MyAppQA[3270:1407746] CouchbaseLite Replicator ERROR: {Repl#14} Got LiteCore error: POSIX error 57 "Socket is not connected"
2019-10-24 13:43:07.533939-0700 MyAppQA[3270:1407636] CouchbaseLite Replicator ERROR: {Repl#15}==> litecore::repl::Replicator /var/mobile/Containers/Data/Application/A84F16AF-7EB7-4468-A83B-3F35C3230927/Library/Application Support/CouchbaseLite/asset360-a6ah-cc-edgis-qa.cblite2/ ->wss://qa.service.cloud.data.com/sync_gateway/asset360/_blipsync @0x10cb26ba8
2019-10-24 13:43:07.534209-0700 MyAppQA[3270:1407636] CouchbaseLite Replicator ERROR: {Repl#15} Got LiteCore error: POSIX error 57 "Socket is not connected"
2019-10-24 13:43:07.535803-0700 MyAppQA[3270:1406592] CouchbaseLite Replicator WARNING: CBLReplicator[*> URL[wss://qa.service.cloud.data.com/sync_gateway/asset360]] has already started (state = 4, status = 1); ignored.
2019-10-24 13:43:07.535842-0700 MyAppQA[3270:1406592] CouchbaseLite Replicator WARNING: CBLReplicator[<* URL[wss://qa.service.cloud.data.com/sync_gateway/asset360]] has already started (state = 4, status = 1); ignored.
CouchbaseLiteSwift was compiled with optimization - stepping may behave oddly; variables may not be available.

I couldn’t see any such issue with v2.5.

Could you please open a support ticket, since you are an enterprise customer?

Sure @jayahari.vavachan.

Hello @ajithkattacherry, I am facing the same issue in 2.6.3 version of the app. Did you get any solutions for this from the team. If you can post a high level solution for this problem, it would be helpful for us too.

Thanks

Not yet @Kishore_Kankata. still facing it with 2.6.4

@jayahari.vavachan CB Lite 2.8.0 Ios 15.1

Crashed: Repl->wss://abc.com/_blipsync
0 CouchbaseLiteSwift 0x1b7484 litecore::repl::Replicator::_onClose(litecore::websocket::CloseStatus, litecore::blip::Connection::State) + 1148
1 CouchbaseLiteSwift 0x14e66c litecore::actor::GCDMailbox::safelyCall(void () block_pointer) const + 28
2 CouchbaseLiteSwift 0x14e628 litecore::actor::GCDMailbox::enqueue(void () block_pointer) + 128
3 libdispatch.dylib 0x2914 _dispatch_call_block_and_release + 32
4 libdispatch.dylib 0x4660 _dispatch_client_callout + 20
5 libdispatch.dylib 0xbde4 _dispatch_lane_serial_drain + 672
6 libdispatch.dylib 0xc958 _dispatch_lane_invoke + 392
7 libdispatch.dylib 0x171a8 _dispatch_workloop_worker_thread + 656
8 libsystem_pthread.dylib 0x10f4 _pthread_wqthread + 288
9 libsystem_pthread.dylib 0xe94 start_wqthread + 8

@Krishan_Kumar GH issue is a right place to report an issue regarding the product, also mentioning in forums is fine. But try avoid posting everywhere.