Skip to content

[ Tool ] Ignore invalid UTF-8 from ADB's stdout - #178170

Merged
auto-submit[bot] merged 1 commit into
masterfrom
fix_adb_malformed
Nov 7, 2025
Merged

[ Tool ] Ignore invalid UTF-8 from ADB's stdout#178170
auto-submit[bot] merged 1 commit into
masterfrom
fix_adb_malformed

Conversation

@bkonyi

Copy link
Copy Markdown
Contributor

This was incorrectly updated as part of #177470

This was incorrectly updated as part of #177470
@bkonyi
bkonyi requested a review from a team as a code ownerNovember 7, 2025 18:49
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actionsgithub-actionsBot added tool Affects the "flutter" command-line tool. See also t: labels. team-android Owned by Android platform team labels Nov 7, 2025

@gemini-code-assistgemini-code-assistBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request corrects an issue in AdbLogReader where invalid UTF-8 characters from adb's stdout could cause a crash. The change aligns the stdout stream processing with that of the stderr stream by applying a Utf8Decoder configured to ignore errors. This is a good fix that improves the robustness of log parsing and prevents potential crashes from malformed logcat output.

@reidbakerreidbaker added autosubmit Merge PR when tree becomes green via auto submit App and removed autosubmit Merge PR when tree becomes green via auto submit App labels Nov 7, 2025
@reidbaker

Copy link
Copy Markdown
Contributor

Non blocking: is it possible to add a regression test for this case?

@bkonyi

Copy link
Copy Markdown
ContributorAuthor

Non blocking: is it possible to add a regression test for this case?

It doesn't look like it'll be trivial without some refactoring of our FakeProcessManager and related classes.

@bkonyibkonyi added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 7, 2025
@auto-submit
auto-submitBot added this pull request to the merge queueNov 7, 2025
Merged via the queue into master with commit df1d648Nov 7, 2025
153 checks passed
@auto-submit
auto-submitBot deleted the fix_adb_malformed branch November 7, 2025 20:27
@flutter-dashboardflutter-dashboardBot removed the autosubmit Merge PR when tree becomes green via auto submit App label Nov 7, 2025
bkonyi added a commit that referenced this pull request Nov 7, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 8, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 9, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 9, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 11, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 11, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 11, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 12, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 13, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 14, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 14, 2025
auto-submitBot pushed a commit to flutter/packages that referenced this pull request Nov 14, 2025
Manual roll requested by tarrinneal@google.com
flutter/flutter@ee23168...c3f2704
2025-11-08 engine-flutter-autoroll@skia.org Roll Dart SDK from cf69b162e2eb to 34902d333e4d (19 revisions) (flutter/flutter#178183)
2025-11-07 engine-flutter-autoroll@skia.org Roll Skia from 513b15b675f5 to 38d87df93572 (5 revisions) (flutter/flutter#178179)
2025-11-07 bkonyi@google.com [ Tool ] Ignore invalid UTF-8 from ADB's stdout (flutter/flutter#178170)
2025-11-07 engine-flutter-autoroll@skia.org Roll Skia from 581d1ecd5029 to 513b15b675f5 (1 revision) (flutter/flutter#178165)
2025-11-07 jason-simmons@users.noreply.github.com Reland "Update all uses of mutable SkPath methods to use SkPathBuilder" (flutter/flutter#178142)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
IvoneDjaja pushed a commit to IvoneDjaja/flutter that referenced this pull request Nov 22, 2025
reidbaker pushed a commit to AbdeMohlbi/flutter that referenced this pull request Dec 10, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 11, 2026
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
)
Manual roll requested by tarrinneal@google.com
flutter/flutter@ee23168...c3f2704
2025-11-08 engine-flutter-autoroll@skia.org Roll Dart SDK from cf69b162e2eb to 34902d333e4d (19 revisions) (flutter/flutter#178183)
2025-11-07 engine-flutter-autoroll@skia.org Roll Skia from 513b15b675f5 to 38d87df93572 (5 revisions) (flutter/flutter#178179)
2025-11-07 bkonyi@google.com [ Tool ] Ignore invalid UTF-8 from ADB's stdout (flutter/flutter#178170)
2025-11-07 engine-flutter-autoroll@skia.org Roll Skia from 581d1ecd5029 to 513b15b675f5 (1 revision) (flutter/flutter#178165)
2025-11-07 jason-simmons@users.noreply.github.com Reland "Update all uses of mutable SkPath methods to use SkPathBuilder" (flutter/flutter#178142)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC stuartmorgan@google.com,tarrinneal@google.com on the revert to ensure that a human
is aware of the problem.
To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@bkonyi@reidbaker