I’ve released my app with CouchbaseLite-Swift 2.0.3
. During development and testing I didn’t spot any issues but when released to production to a larger number of users, number of crashes spiked. All of the issues seem to be linked to syncing. These are the 5 crashes that occur in CouchbaseLite-Swift 2.0.3. Each crash has a link to gist with stack trace, name of method where it crashes, number of total crashes and iOS versions distribution.
Crash report 1
- Crash in
CouchbaseLiteSwift uWS::WebSocketProtocol<false>::consume(char, unsigned int, void) + 44
- Total number of crashes: 18 crashes
-
iOS versions
- 11.4.1: 82%
- 11.2.5: 6%
- 11.4.0: 6%
- 11.3.1: 6%
Crash report 2
- Crash was introduced with
CouchbaseLite-Swift 2.0.3
, it does not have CouchbaseLiteSwift in stack trace however it seems to related to networking - Total number of crashes: 6 crashes
-
iOS versions
- 11.4.1: 66%
- 11.4.0: 17%
- 11.3.1: 17%
Crash report 3
- Crash in
CouchbaseLiteSwift litecore::blip::Connection::setWebSocket(litecore::websocket::WebSocket*, fleeceapi::AllocedDict const&) + 4256
- Total number of crashes: 4 crashes
-
iOS versions
- 11.4.1: 50%
- 11.3.0: 50%
Crash report 4
- Crashes in
CouchbaseLiteSwift litecore::websocket::WebSocketImpl::onReceive(fleece::slice) + 124
- Total number of crashes: 2 crashes
-
iOS versions
- 12.0.0: 100%
Crash report 5
- Crashes in
CouchbaseLiteSwift c4socket_gotHTTPResponse + 48
- Total number of crashes: 1 crash
-
iOS versions
- 11.4.1: 100%
Version: CouchbaseLite-Swift 2.0.3
Server: 2.0.0