-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Windows Release] Bad state: StreamSink is bound to a stream #46
Comments
I am having the very same issue, it happens only when running the .exe from flutter build. Running the app using flutter run --release does not present the bug. |
I just verified and the same issue happens when building an .exe using flutter build windows --debug So far the only exception I was able to catch was the one described above If you have a Gitlab account @alextekartik I can share the source I am working on. It's a very simple project, not much more than a minimum reproducible example. |
Actually @alextekartik here you go: https://github.com/savy-91/mvp-process-run-bug |
Oh sorry, I delete my demo repo because I switch to Process class in dart:io. |
@VergeDX No problem, I understand, process_run is just a wrapper around dart:io with some convenient helper regarding the environment and script command. @savy-91 Thanks for the repo, I was able to reproduce. Indeed puzzling and I was able to reproduce the issue just by calling stdout.flush(). And calling it twice on Windows release (build) mode hangs... I guess this should be reported to the flutter team. |
I'm currently running 0.13.1 and also getting this same error when running either Debug or Release from the .exe files. Running flutter build windows will work fine and the .exe version logs that error. |
In windows release build, I noticed a wierd behavior: The first Future of
await Shell().run()
will stuck in waiting status.But later Future of
await Shell().run() can be done
, but throws the Exception:Bad state: StreamSink is bound to a stream
...I make a demo for reproduce this bug: https://github.com/VergeDX/untitled/tree/demo
I'm using Flutter 2.0.6 (installed by choco), I also tried Flutter 2.2.0. But the bug still here.
I'm a noob for Flutter and English, If any information needed, please let me know.
The text was updated successfully, but these errors were encountered: