Skip to content

fix rare flutter_tools logging crash in daemon mode - #14401

Merged
jcollins-g merged 2 commits into
flutter:masterfrom
jcollins-g:ansi-terminal-crash
Feb 1, 2018
Merged

jcollins-g merged 2 commits into
flutter:masterfrom
jcollins-g:ansi-terminal-crash

Conversation

@jcollins-g

@jcollins-g jcollins-g commented Jan 31, 2018 •

Copy link
Copy Markdown
Contributor

Fixes #13993. Implements the simpler solution described in this comment, forcing terminal to return an AnsiTerminal in the case where context doesn't populate it. To be sure that this works, I removed manual population of AnsiTerminal from all the relevant places to make sure it would be obvious if the fallback didn't function.

I'm open to doing the larger refactor described, but it might take some time -- also open to other suggestions on how to accomplish this in a bulletproof manner.

@jcollins-g jcollins-g changed the title fix occasional flutter_tools logging crash in daemon mode fix rare flutter_tools logging crash in daemon mode Jan 31, 2018
@jcollins-g
jcollins-g requested a review from devoncarew February 1, 2018 17:06
@jcollins-g
jcollins-g merged commit c81a5ed into flutter:master Feb 1, 2018
@jcollins-g
jcollins-g deleted the ansi-terminal-crash branch February 1, 2018 17:30
a-siva added a commit that referenced this pull request Feb 2, 2018
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request May 14, 2018
* Populate AnsiTerminal in context for daemon launches

* Strip out AnsiTerminal additions to context since they are no longer needed
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AnsiTerminal not populated correctly in the flutter_tools context for daemon runs

3 participants