-
Notifications
You must be signed in to change notification settings - Fork 28
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
There's a retain loop between SubscriptionListener and ListenerToken if listener is added by SubscriptionSession.add(_:ListenerType) #92
Comments
It didn't crash for me but cos of retain loop and caching the subscription didn't clean itself and was stuck providing the app with duplicate/invalid values. I fixed it by somehow cleaning the subscription manually. I will post a workaround when I'll be next time around my working device. |
There will be fix for this, so as soon as |
Still getting the error with 6.0.3 :( |
@luisescamilla13 hello. What exactly error do you get? |
@luisescamilla13 is it possible to show place. where you experience issue in same way, as shown in first message? |
@parfeon sure
This is the code where I initialize pubnub:
|
@luisescamilla13 do you store somewhere reference on |
@parfeon yes sir, my class has the following variable |
@luisescamilla13 is there any chance to have some minimum app which is able to reproduce this issue? With memory leak, we were able to reproduce it and fix, but I can't reproduce this one. |
@parfeon to be honest I haven't been able to reproduce it by myself, we just get this random crash every two or three weeks from different users. I'll let you know if I get more details. Thanks for the response. |
@luisescamilla13 thank you! |
Continue getting crashes with the cc @parfeon |
SubscriptionListener has a strong reference to SubscriptionToken, SubscriptionToken has a strong reference to SubscriptionListener through it's cancellation closure capture group.
The text was updated successfully, but these errors were encountered: