You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[flutter_tools] "OS Error: The handle is invalid" while trying to set echo mode on STDIN #129198
StdinException: Error setting terminal echo mode, OS Error: The handle is invalid., errno = 6
at Stdin.echoMode=(stdio_patch.dart:85)
at AnsiTerminal.singleCharMode=(terminal.dart:309)
at TerminalHandler.setupTerminal(resident_runner.dart:1678)
at RunCommand.runCommand.<anonymous closure>(run.dart:748)
at _rootRunUnary(zone.dart:1407)
at _CustomZone.runUnary(zone.dart:1308)
at <asynchronous gap>(async)
Even though we check if stdinHasTerminal right before this
It appears The handle is invalid., errno = 6 is all the information we are getting from Windows here. From a cursory Google search, it appears one way this can happen is if a process tries to interact with a handle when it is invalid (e.g. already closed).
From a cursory Google search, it appears one way this can happen is if a process tries to interact with a handle when it is invalid (e.g. already closed).
Not sure if the reports we're getting from real users if STDIN could possibly be closed, since their terminal session was still active (and they saw the github issue link coming from STDOUT from the tool). That being said, I have no idea what's going on :)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
christopherfujino commentedon Jun 20, 2023
cc @andrewkolos
andrewkolos commentedon Jun 23, 2023
It appears
The handle is invalid., errno = 6is all the information we are getting from Windows here. From a cursory Google search, it appears one way this can happen is if a process tries to interact with a handle when it is invalid (e.g. already closed).This issue has appeared before. See this issue query: https://github.com/flutter/flutter/issues?q=%22OS+Error%3A+The+handle+is+invalid%22
Due to the lack of repro of repro steps and relatively low number of users affected at this time, I won't be prioritizing this issue.
christopherfujino commentedon Jun 23, 2023
Not sure if the reports we're getting from real users if STDIN could possibly be closed, since their terminal session was still active (and they saw the github issue link coming from STDOUT from the tool). That being said, I have no idea what's going on :)
[flutter_tools] catch StdinException when setting terminal to SingleC…
github-actions commentedon Oct 25, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[flutter_tools] catch StdinException when setting terminal to SingleC…