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
Crash on BNCServerInterface.m line 158 -[BNCServerInterface genericHTTPRequest:retryNumber:log:callback:retryHandler:] #548
Comments
Thanks for the heads up. I'm looking into this now. Which version of the SDK are you using? |
hi!
thank you.
we're using the latest version ( - v0.12.24)
…On 2017. Jan 14., Sat at 15:57, Edward Smith ***@***.***> wrote:
Thanks for the heads up. I'm looking into this now.
Which version of the SDK are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#548 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFKlYB267ZgGXJPze09o2JJzZu1PMpPMks5rSPBtgaJpZM4LjmkD>
.
|
@itchingpixels I am unable to reproduce any of the crashes you've reported. Could you please send us your Branch-related code so that we can take a look? Feel free to send it to integrations@branch.io and reference the github issue in the email. Also we have a Swift Testbed that you can take a look at as a reference implementation. Please let us know. |
Thank you. The testbed project looks exactly how we have Branch integrated. We're investigating the latter - I'm not sure if it's connected. We'd love to sort these out as soon as possible. We started seeing these crashes after upgrading first to 0.12.19 (may be a good clue) |
We had changes in this version related to
|
|
by looking at the stack trace (block_copy, block_object_assign, etc), I'd point to the unconventional (static?) declaration of NSURLSessionCompletionHandler at the top of BNCServerInterface.m. |
@itchingpixels Unfortunately, I am still unable to reproduce.
Sorry for the headache :( |
Hi! I had a close look at the stack trace of the screenshot above, and realised that [Branch initalizeSession] is called when I call Branch.getInstance().loadRewards... I guess that's the cause of the crash that only we can reproduce. Do you think calling loadRewards and then calling initSession() could lead to crashes? I'm asking because there's a binary waiting for review, which I'm happy to reject and re-upload, if you say so. Thank you for your time! And sorry for this. Mark |
Actually this should still work. If you call a branch method before initializing first, we will initialize under the hood and the call to init afterwards will be a no-op. Perhaps try to not call loadRewards before and see if it doesn't crash in your local env? Maybe there are some conditions where our approach fails. |
Hi! Thanks for the info.
Recommendations:
Let me know what you think. I'll submit a PR for 1. |
At the same time, I modified our code and we'll be calling initSession first. But we're still calling them one after the other, potentially within miliseconds. |
PR submitted for point 1. |
Thanks a lot for the analysis and the PR! We will review and potentially add to our next release. Were you able to test the PR on your app and see if it mitigated any of the crashes? |
I'll definitely do that, but unfortunately our next release is 7 days away. I think I'll be able to confirm if this fixes the problem. Will report back as soon as I know something! This is mission critical for us at the moment, since we also see another crash that's really similar to this, which could be coming from the same source (although because it's happening inside an NSOperationQueue (also BAD_ACCESS), all the additional stack trace info is lost). That's impacting 4% of the sessions. |
Thank you for all your work on this! I've merged your fix plus some other fixes into our beta branch. You can read about our beta program and the beta branch here: https://branch.app.link/Beta-Info I can't test the SDK fully at the moment, but the small amount of testing I've done seems good. I think you will be able to pull the code from the beta branch for your upcoming release. |
See comment for issue #548 . |
That's great news, thank you! Will report back about the results:) |
@itchingpixels i am going to close the crash issues for now since Ed released the beta with the fix you've suggested + some more. If you are still noticing crashes, feel free to re-open. Thanks for all your help! |
Glad that I found this thread. I recently released an update to my iOS app and updated Branch to 0.12.24 (was 0.12.20). Since then, I have been experiencing these CF Network crashes. I am not experienced and couldn't find much info from crashlytics reports. The crashes are similar to the second url (http://crashes.to/s/117dea8947c) posted by @itchingpixels |
Did you try the Branch beta release that fixes this? It's an immediate fix for this problem. Here's info about our beta program: https://branch.app.link/Beta-Info Otherwise, I'm going to finish the QA work on the beta branch and release to master early this week. |
Yes, I have updated the app and it is waiting for review. I was unable to reproduce the crash at my end. I'll let you know how it goes. |
Hi! I had updated to 0.12.25 beta as per the docs. 147 users updated and just now received a new crash:
|
I've since both master and beta branches to 0.12.26 which will solve this exact problem. |
We haven't seen crashes from Branch since upgrading to the beta. Sample size over 50k devices. |
Ok @E-B-Smith, will update the app to 0.12.26 maybe next week, only this one crash reported so far for 0.12.25 beta. |
Excellent! Thanks for reporting back. I really appreciate the feedback. |
Hi,
We've seen 55 of these crashes coming from Branch in the last 7 days (10k sessions per day).
The text was updated successfully, but these errors were encountered: