-
Notifications
You must be signed in to change notification settings - Fork 128
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
Resolved - Swift Access Races in multi-threading causing memory issues #53
base: master
Are you sure you want to change the base?
Conversation
…to avoid swift access races.
thank you for fixing this, I had been working on tracking the same problem. your fork seems to do the trick for me. |
@@ -419,6 +420,8 @@ extension ActionCableClient { | |||
} | |||
|
|||
fileprivate func onMessage(_ message: Message) { | |||
|
|||
queue.sync { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should use ActionCableSerialQueue
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think sync operation can also be done with ActionCableSerialQueue
. Btw, thanks for your thoughts.
Are you going to merge the pull request? |
Since the release of iOS 13, we noticed a lot of new crashes (com.ActionCableClient.Conccurent EXC_BAD_ACCESS KERN_INVALID_ADDRESS) related to Action Cable Client and usually pointing to We've been using this PR in production for a week and all those crashes are gone, so thank you for your contribution! |
Thanks for the appreciation. It means a lot. |
@danielrhodes it would be great to see this merged. Alternatively - if you're not able to maintain this project any more for whatever reason, it would be great if you could let people know so that someone else can step in. thanks :) |
This has been tested by my team for multiple days and we did not found any multi-threading issue after QA. So I think i'ts stable now and you can merge it in new versions of it.