-
Notifications
You must be signed in to change notification settings - Fork 199
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
how to cleanup graciously #520
Comments
I have the same problem and it would be cool to get some advice on good design. I also have a problem when I do disconnect that 50% of the times I can not connect anymore and I get a PlatformError. The examples are not really helpful with a normal setup. |
Hi! We have a bug with some of the streams. I've made a bad, uninformed decision making the streams asynchronous, which causes the cancel function to be asynchronous as well (it returns immediately without awaiting the proper clean up). This needs to be fixed, while maintaining potential back compatibility (possible optional argument @ride4sun can you paste the platform error? Is it possible that you're destroying the client? What platform are you testing on? Could you guys add some thoughts as to what would be a good, simple example to this issue #443 ? |
This what I am seeing very often. A fast fix for that would be very appreciated because this renders This is the Callstack
|
@mikolak were you able to get a fix for this? If not, is there any 'good enough' catch alls that will allow it to at least not throw an exception? |
I can help, if needed. But I'll need some understanding of the bug and what it affects. |
I am still see the defect and desperately waiting for a fix. Did the info I
provided help?
…On Mon, Mar 1, 2021, 18:05 Adrian Lemus ***@***.***> wrote:
I can help, if needed. But I'll need some understanding of the bug and
what it affects.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#520 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BZ23ZO7BRQOFXPMBKXWDTBRBXDANCNFSM4QRKRSTA>
.
|
Hi! The proper fix is to make data streams single subscription, which will make This does not address the issue @ride4sun has, I have no idea why an uncaught Dart exception would make a peripheral not able to connect. Code 2 is operation cancelled and it can happen to all async operation that do not have the pair I won't have as much time for the library right now as Polidea has been sold and can no longer maintain the libraries. I'll try to keep maintaining this, but I'll have a limited time. Transition is possibly in progress. |
@mikolak thanks for all of your help/work. It's a shame this package might not be getting maintained anymore. |
Stay tuned, it should be fine and maintained. 🙂 |
@mikolak Is there any news on this. Can not wait to have this work better. |
@ride4sun I moved over to https://github.com/PhilipsHue/flutter_reactive_ble. |
Related to #487 |
my code, often have exception
The text was updated successfully, but these errors were encountered: