fix crash on ios LogMessage - #950
hamidmalek wants to merge 2 commits into
Conversation
twyatt
left a comment
There was a problem hiding this comment.
Apologies, it isn't clear to me how this PR is resolving the failure described in the PR description:
-[CBDescriptor service]: unrecognized selector sent to instance 0x128ac2400
The error describes trying to invoke service function on a CBDescriptor but this PR seems to be addressing nullability issues, of which we'd see a different error for if we had a nil reference problem?
Not at all. Not using of |
I see. Everywhere we use |
TBH, I don't know when exactly this matching happens, so that mismatch was not traceable for me. I just tested this code and it was not producing any issues, so I concluded maybe it's a mismatch. |
print something instead of return.
|
I think the fix here is barking up the wrong tree, and this is a second case, or related instance of #1118. The failure smells of zombies and the selector is being dispatched to a stale pointer that happens to house a If you could reproduce with I suspect (weakly, just guessing) this may be originating in I concur that the |
These changes fix the issue regarding inconsistence type inference in iOS. The original error is as follows: