Skip to content
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

Fix of the crash in the ARTOSReachability #1453

Merged
merged 4 commits into from
Aug 1, 2022

Conversation

maratal
Copy link
Collaborator

@maratal maratal commented Jul 30, 2022

Closes #1380 and probably #593

maratal added 3 commits July 30, 2022 17:50
… one.

This is actual cause of crash due to ghost `SCNetworkReachabilityRef` instance in memory after it was overwritten without `release` during reconnections attempts.
In case when `ARTRealtimeInternal` is deallocated (for example when a new `ARTRealtime` object created), those ghost instances begin to refer to a dead `ARTOSReachability` instances in the `SCNetworkReachabilityContext` structure.
We pass `_queue` already, why run loop was even used?
@github-actions github-actions bot temporarily deployed to staging/pull/1453/jazzydoc July 30, 2022 16:37 Inactive
@maratal maratal merged commit c5354ac into main Aug 1, 2022
@maratal maratal deleted the fix/1380-crash-in-ARTOSReachability branch August 1, 2022 11:10
maratal pushed a commit that referenced this pull request Jul 19, 2023
…dd-to-IDL

[EDX-175] Document the stats types and add to the IDL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

SCNetworkReachabilitySetCallback (Crashed: io.ably.main)
2 participants