-
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
CBL crash in -[CBLReplication bg_updateProgress:] #220
Comments
Crash is at the end of the block with the one-line body: |
Actually it's not the NSError that's been prematurely dealloced, but one of its properties (the userInfo?) |
I've gone through every place in Couchbase Lite that creates an NSError with a userInfo, and didn't see any ref-counting problems. @nl, is it possible your application code is over-releasing the userInfo of an NSError obtained from a CBLReplication, probably in an observer (KVO or NSNotification) method? |
The entire app is using ARC as well, so not sure how that would happen. Will try to replicate this. |
Hello Nicolas and Jens, Here is the console: Here are the stacks:
Hope it helps ! |
Thanks, Laurent. Looks like the same situation, but in your crash the NSError is already dealloced before any application notification code gets invoked. Which means it isn't the app's fault. Hm. |
Ah, got it! I hadn't been looking at the beta 2 version of CBLReplicator.m. That source file has changed a lot in master since beta 2, and there's a problem in the older code that doesn't exist anymore. I can fix it easily in a patch on the stable branch. |
NOTE: This patch was made on the stable branch as a fix for beta 2. It does _not_ need to be merged into master, because CBLReplicator has been rewritten since beta 2 and this bug doesn’t exist there. Fixes #220
I applied the fix directly to the |
Thank you ! |
Hard to replicate, but here's a crash log.
The text was updated successfully, but these errors were encountered: