-
Notifications
You must be signed in to change notification settings - Fork 10
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
'Future already completed' exception on iOS and macOS #24
Comments
Hey I've just checked out your repo and it runs just fine for me (iOS simulator) after changing the IP address. What flutter channel are you on? It's possible a recent change has caused the issue. Cheers |
Also, what version of remotedev-server are you using? this exception may be caused by a change to the javascript package, not Flutter |
Hey Michael, thanks for this! I'm on the dev channel for flutter, [email protected] EDIT: I'm going to switch to stable and try
UPDATE:
Thanks very much for your help! |
The only thing I can think of is the client is receiving the |
Sweet thanks Michael! I followed your thought and added a check for My plan at this point will be to use this edited version of Thanks again for your help. |
The Completer docs say:
So even if receiving the START message twice is an error in remotedev-server, we shouldn't be calling complete twice. If you've already done the change I'd be happy to accept a PR for this. Would just need a test to verify the behaviour. |
Thanks Michael, I had a go at writing a test but I haven't really worked with sockets before and I got a bit lost (even with plenty of your examples there). Also the exception has disappeared :-) I updated the OS, maybe that was it. I'd be happy to plough through if you think it's worth it but otherwise I'll leave it at that and be happy it's working for me again. Thanks for the great package! |
I'm having the same issue. The error doesn't appear consistently though.
|
I've started getting this exception recently
[ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: Bad state: Future already completed
Stack Trace
I made a minimal repro: https://github.com/nickmeinhold/test_rdt, it's just the starter project with the
redux_remote_devtools
package andadded to
main.dart
Thanks!
The text was updated successfully, but these errors were encountered: