-
Notifications
You must be signed in to change notification settings - Fork 298
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
Assertion failure in MYBackgroundMonitor beginBackgroundTaskNamed #1368
Comments
There aren't any debug symbols for CBL so the stack frames show bogus names like This should have been fixed in 1.2.1; see #1006. |
I am definitely using 1.2.1 |
Ah, there was also #1152 which is likely what you're hitting — that's fixed in 1.3. (So is the lack of debug symbols, so if you try with the 1.3 dev preview and it still crashes, we'll at least know where...) |
I can confirm this is fixed with those changes. |
I am seeing a fairly common crash through monitoring our live build (#6 most common crash). It is not something I can reproduce at the moment. But here are the details I have...
This is the raw crash stack...
Crashlytics reports the exception as:
"Fatal Exception: NSInternalInconsistencyException Assertion failed: Background task already running"
Digging through the couchbase lite code this would point to this line of code being where the assertion is failing...
https://github.com/snej/MYUtilities/blob/99e03aeaafd09fd7a3c7717ee4efd33007faee02/MYBackgroundMonitor.m#L66
which is called while the app is being backgrounded...
couchbase-lite-ios/Source/CBLRestReplicator+Backgrounding.m
Line 54 in 0705423
which would be consistent with the
UIApplication _applicationDidEnterBackground
portion of the stack above.It does seem that there are two places that
appBackgrounding
can be called...couchbase-lite-ios/Source/CBLRestReplicator+Backgrounding.m
Line 32 in 0705423
couchbase-lite-ios/Source/API/CBLDatabase.m
Line 73 in d7b1eac
The text was updated successfully, but these errors were encountered: