-
Notifications
You must be signed in to change notification settings - Fork 2k
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
-[SRProxyConnect _dequeueInput] crash #421
Comments
@CodeFei, can you share the full stack trace for all the threads by any chance? |
|
here is the full stack, and I have checked other thread state doesn't find useful info. |
Seeing a similar crash. Crash report for all threads: https://gist.github.com/michaelkirk/8ceccf89d270c2df37fdc9d28a2d1e40 It wasn't in our top crashes until updating from 7373546 to b0aabde. This could be because it's a new crash, or because we've reduced the noise of our other top crashes in the meanwhile (substantially because of #156 - thanks!).
update: still seeing this as of 8096fef. |
We have a related crash – it's in the same method, but a different error message: Fatal Exception: NSInternalInconsistencyException
We're using the HEAD of this branch. |
Huh, I actually am not sure how that is even possible, taking into account that _inputQueue is assigned only once at initialization time and it's Memory corruption? :( |
Does this method need synchronization, since it sets the streams' delegates (in What I mean is, should the body of this method be handed over to be executed on the |
Quite possibly, but taking into account that it's a single open procedure, I don't think this actually is the bottleneck. What is probably happening is the ping back from the NSStream, when SRProxyConnect was already deallocated, which is a weird fruit by itself, since we make sure that we remove the delegates/remove the streams from runloop on dealloc. @erikprice, would you have an http/socks proxy handy that I could use to debug this? |
I'm taking another look and trying to understand how we might experience EXC_BAD_ACCESS in What are the circumstances under which
I have to confess I'm not sure exactly what you're asking for here, can you elaborate? |
Most of the logic in Would love to know if you can encounter this on a general connection as well (aka no proxy). |
Erik and I are trying to figure out this crash in our app. We haven’t yet set up a proxy to try to drive the case where the code handles NSStreamEventHasBytesAvailable, but while we’re working on that, we’d like your take on the following theory: The comment in (1) |
Yup, seems logical. |
Has anyone tried #455 in production? Anything interesting happen to crash rates in |
We're using that fix in production, and we haven't seen any crashes in |
Whee! Thanks @erikprice for confirming. I am going to close this issue in this case. |
See: facebookincubator/SocketRocket#421 Which is one of our more popular crashes, and happening more frequently with iOS10. // FREEBIE
See: facebookincubator/SocketRocket#421 Which is one of our more popular crashes, and happening more frequently with iOS10. // FREEBIE
Previously we were seeing this crash several times every day. Since releasing this update 10 days ago, we haven't seen it once. 👍 Thank you @erikprice, @michaelmorton, and @nlutsenko! |
the master branch, pod "SocketRocket", :git => 'https://github.com/facebook/SocketRocket.git', :commit => '0af058c'
The text was updated successfully, but these errors were encountered: