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

Fatal error after network connection issues #541

Open
PawlikMichal25 opened this issue Aug 12, 2024 · 3 comments
Open

Fatal error after network connection issues #541

PawlikMichal25 opened this issue Aug 12, 2024 · 3 comments
Labels
bug Something isn't working. It's clear that this does need to be fixed.

Comments

@PawlikMichal25
Copy link

PawlikMichal25 commented Aug 12, 2024

It seems to me you don't get notifications from closed issues, so I'm opening new one regarding #531 (comment) because the bug is still not fixed

┆Issue is synchronized with this Jira Task by Unito

@ttypic
Copy link
Contributor

ttypic commented Aug 12, 2024

Hey @PawlikMichal25,

Thank you for creating a new issue! I'm having some difficulty reproducing it. If possible, could you please enable verbose logging for Ably and attach the logs to the issue?

@PawlikMichal25
Copy link
Author

Have you followed these steps: #531 (comment) with newest version of Ably and not got any errors?

@ttypic
Copy link
Contributor

ttypic commented Aug 12, 2024

Yes, I see. The fix currently only works for hot reloads; it doesn't apply to hot restarts because they recreate the app from scratch, and we rely on sequential IDs to sync listeners between the platform implementation and Dart code. Unfortunately, we’re unable to detect hot restarts to gracefully clean up listeners on the platform side. There is an open issue for this in the Flutter repo: flutter/flutter#10437. We’ll work on refactoring the code to remove the need for sequential IDs for listeners, but I can't provide an ETA at this time. Since this issue only occurs during hot restarts in the development process, and the fix involves refactoring several parts of the codebase, it’s not currently a high-priority bug for us.

@ttypic ttypic added the bug Something isn't working. It's clear that this does need to be fixed. label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

No branches or pull requests

2 participants