ably-cocoa icon indicating copy to clipboard operation
ably-cocoa copied to clipboard

App crash on Ably close

Open fbarbat opened this issue 2 years ago • 2 comments

Which version of the Ably SDK are you using?

1.2.19

On which platform does the issue happen?

macOS 13.3.1

Are you using Carthage?

No

Are you using Cocoapods?

No (We are using SPM)

Which version of Xcode are you using?

14.2

What did you do?

Added this line of code to our project.

activeAbly?.close()

Then:

  1. Create an Ably instance
  2. Use a tool to block internet access to the app (for example, Little Snitch)
  3. Destroy the Ably instance using close
  4. Turn off wifi. The app will crash immediately here.

What did you expect to happen?

The app not to crash and not to leak memory after calling close.

What happened instead?

The app crashes sometimes in prod. If following the repro steps, it always crashes.

We saw that you might have fixed this in https://github.com/ably/ably-cocoa/pull/1565/files However, last release (1.2.19) was released in Dec 8, 2022 and this fix was merged on Mar 27, 2023. When are you shipping a new release?

Thank you.

┆Issue is synchronized with this Jira Task by Unito

fbarbat avatar May 10 '23 12:05 fbarbat

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3574

sync-by-unito[bot] avatar May 10 '23 12:05 sync-by-unito[bot]

@fbarbat You can now try version 1.2.20.

maratal avatar Jun 08 '23 14:06 maratal

Closing due to inactivity. Please reach out if you're still having issues.

umair-ably avatar May 22 '24 11:05 umair-ably