-
Notifications
You must be signed in to change notification settings - Fork 43
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
Authentication exception #347
Comments
Hello JP, Have you been able to reproduce this? Just by chance, do you have any details about the scenario that triggers this crash?. I've been unable to spot a flow that would open the websocket, without calling any of the authentication calls. Currently, these are the flows that open the WebSocket:
This bug would require any of the 3 flows outlined above, with a nil authToken. Would you please confirm that you're not setting the Thank you! |
Hi Jorge, No, I am not able to reproduce it, we have a low volume of this kind of crashes. Thanks |
@jphribovsek sorry about the lag on this one!. Would you please confirm if SPWebSocketInterface, line 149 looks like this for you?:
Is it possible you're destroying the Simperium instance at any point? (that would be one potential candidate for this, since clientID property is never nil'ed out, but the reference between SPWebSocketInterface and Simperium is weak). Thanks! |
Yes, I confirm. In our latest release, we have had only one crash report related to that, this is very low priority. I would be ok if we close this issue for now, and reopen if that becomes a problem again. |
@jphribovsek this crash would be triggered by a dirty dealloc (say, the instance wasn't properly logged-out), while a network glitch occurred, and a websocket reconnection got triggered. Nuking the Simperium instance isn't the common scenario, but as long as the app performs a clean signout, this shouldn't be a problem. If needed, please, feel free to reopen. Thank you! |
I've been able to trigger this crash. Although the real problem here is not to wait until the Signout call completes, i'll add a workaround so at least it doesn't assert during unit tests. |
@jphribovsek fix for the assertion merged into develop. Important:Please, note that an error will be logged. Not waiting for the signout's completion, and starting sync'ing again might lead to data loss, if the Thank you! |
We have a few crash reports regarding a missing auth token, even though we have checks in place to not start simperium if token is nil
The text was updated successfully, but these errors were encountered: