Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Guard against usage after async callbacks in RenderAndroidView, unregister listener #108496

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

Merged
merged 3 commits into from
Jul 28, 2022

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Jul 27, 2022

xref b/186978412

When this code was written, render object disposal wasn't a thing. When I implemented that, I didn't realize there were async methods being used in this render object.

The test in this patch is basically a clone of an existing test, but it disposes the RO before completing some of the async operations. Without the changes in the implementation the test fails.

@flutter-dashboard flutter-dashboard bot added the framework flutter/packages/flutter repository. See also f: labels. label Jul 27, 2022
@dnfield dnfield requested a review from bparrishMines July 27, 2022 23:27
Copy link
Contributor

@stuartmorgan-g stuartmorgan-g left a comment

Choose a reason for hiding this comment

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

Looks like a mock in another test needs updating, but otherwise LGTM. Thanks for investigating this!

We should definitely cherry-pick this to beta (and maybe even stable?).

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2022
Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@auto-submit
Copy link
Contributor

auto-submit bot commented Jul 28, 2022

  • The status or check suite Linux flutter_plugins has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2022
@dnfield
Copy link
Contributor Author

dnfield commented Jul 28, 2022

Is the flutter_plugins failure a known issue? Looks like mockito deprecated something that plugins is using?

@goderbauer
Copy link
Member

goderbauer commented Jul 28, 2022

Is the flutter_plugins failure a known issue? Looks like mockito deprecated something that plugins is using?

/cc @Piinks Is this the same issue that turned the tree red?

@Piinks
Copy link
Contributor

Piinks commented Jul 28, 2022

Yeah it is the same failure that has the tree red

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 28, 2022
@auto-submit auto-submit bot merged commit 0cc7db5 into flutter:master Jul 28, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jul 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 29, 2022
godofredoc added a commit that referenced this pull request Aug 2, 2022
…108831)

* Guard against usage after async callbacks in RenderAndroidView, unregister listener (#108496)

* Roll flutter/plugins (#108556)

Co-authored-by: Dan Field <[email protected]>
Co-authored-by: stuartmorgan <[email protected]>
@KourosBey KourosBey mentioned this pull request Aug 10, 2022
8 tasks
camsim99 pushed a commit to camsim99/flutter that referenced this pull request Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants