Skip to content

Conversation

@Dimilkalathiya
Copy link
Contributor

@Dimilkalathiya Dimilkalathiya commented Apr 22, 2024

Part of #141198

FixesCupertinoFullscreenDialogTransition widget leaks

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: cupertino flutter/packages/flutter/cupertino repository f: routes Navigator, Router, and related APIs. labels Apr 22, 2024
@Dimilkalathiya
Copy link
Contributor Author

cc: @polina-c this one reduces leaks by 330 :)

@Dimilkalathiya
Copy link
Contributor Author

@polina-c framework_tests_impeller seems to be failing and from looking at logs editable_text_cursor_test.dart has something to do with this, i ran tests but except of leaks logs test-cases are passing.

does this has something to do with current changes in PR?

@polina-c polina-c added the a: leak tracking Issues and PRs related to memory leaks detected by leak_tracker label Apr 22, 2024
@polina-c
Copy link
Contributor

Looks good. Can you opt-in some test, to make bot stop complaining about test coverage?

Copy link
Contributor

@ValentinVignal ValentinVignal left a comment

Choose a reason for hiding this comment

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

I have the same comments as for #147133

@Dimilkalathiya
Copy link
Contributor Author

Dimilkalathiya commented Apr 23, 2024

@ValentinVignal Again, thanks for review :)
i'll fix things as per your suggestions

@Dimilkalathiya
Copy link
Contributor Author

@polina-c Do we need test here? since it does not change outside behaviour, if so what kind of test would be good fit for this?

@polina-c
Copy link
Contributor

@polina-c Do we need test here? since it does not change outside behaviour, if so what kind of test would be good fit for this?

Since this PR fixes a leak, it would be great to opt-in a test to track this fixed leak.

@Dimilkalathiya
Copy link
Contributor Author

@polina-c I have added test-case as discussed, let me know we are good go.

At first i tried to add opt-in into existing testcase but it seems all CupertinoPageRoute test are all paired with CupertinoApp which it self leaks CurvedAnimation so i had to create new testcase with MaterialApp would that be okay?

Also, added null assigned to curve after disposal

@flutter flutter deleted a comment from flutter-dashboard bot Apr 25, 2024
@polina-c
Copy link
Contributor

@polina-c framework_tests_impeller seems to be failing and from looking at logs editable_text_cursor_test.dart has something to do with this, i ran tests but except of leaks logs test-cases are passing.

does this has something to do with current changes in PR?

It seems they passed now.

@Dimilkalathiya
Copy link
Contributor Author

Dimilkalathiya commented Apr 25, 2024

@polina-c added empty line

@Dimilkalathiya
Copy link
Contributor Author

@polina-c @ValentinVignal Added mentioned changes 👀

@polina-c
Copy link
Contributor

This is not addressed yet: #147168 (comment)

@Dimilkalathiya
Copy link
Contributor Author

@polina-c please check now

@polina-c polina-c merged commit cc9ac7d into flutter:master Apr 26, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 27, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 27, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Apr 27, 2024
flutter/flutter@2e80670...f9933b6

2024-04-27 [email protected] Roll Flutter Engine from 5205e3683a0a to 20fb62ba1455 (1 revision) (flutter/flutter#147449)
2024-04-27 [email protected] Roll Flutter Engine from e14649ea0c80 to 5205e3683a0a (1 revision) (flutter/flutter#147448)
2024-04-27 [email protected] Roll Flutter Engine from 87f489c1bed4 to e14649ea0c80 (1 revision) (flutter/flutter#147446)
2024-04-27 [email protected] Roll Flutter Engine from cecf5aa8a778 to 87f489c1bed4 (1 revision) (flutter/flutter#147445)
2024-04-27 [email protected] Roll Flutter Engine from 8af10eba3ef3 to cecf5aa8a778 (1 revision) (flutter/flutter#147444)
2024-04-27 [email protected] [macOS] Eliminate flutter_gallery_macos__start_up benchmark (flutter/flutter#147442)
2024-04-27 [email protected] Roll Flutter Engine from bc055398f42a to 8af10eba3ef3 (1 revision) (flutter/flutter#147441)
2024-04-27 [email protected] Roll Flutter Engine from c410180e5bba to bc055398f42a (7 revisions) (flutter/flutter#147440)
2024-04-26 [email protected] Add tests for character_activator.0.dart API example. (flutter/flutter#147384)
2024-04-26 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.2 to 3.25.3 (flutter/flutter#147437)
2024-04-26 [email protected] Add integration test for asset transformation feature (flutter/flutter#145715)
2024-04-26 [email protected] Added missing tests for Table api example `table.0.dart`. (flutter/flutter#147318)
2024-04-26 [email protected] Catch any `FileSystemException` thrown when trying to read the template manifest during `flutter create` (flutter/flutter#145620)
2024-04-26 [email protected] fixes `CupertinoFullscreenDialogTransition` leaks (flutter/flutter#147168)
2024-04-26 [email protected] Fix helperMaxLines and errorMaxLines documentation (flutter/flutter#147409)
2024-04-26 [email protected] Refactor route focus node creation (flutter/flutter#147390)
2024-04-26 [email protected] Roll Packages from fde908d to dd01140 (5 revisions) (flutter/flutter#147420)

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 [email protected],[email protected],[email protected] 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
TecHaxter pushed a commit to TecHaxter/flutter_packages that referenced this pull request May 22, 2024
flutter/flutter@2e80670...f9933b6

2024-04-27 [email protected] Roll Flutter Engine from 5205e3683a0a to 20fb62ba1455 (1 revision) (flutter/flutter#147449)
2024-04-27 [email protected] Roll Flutter Engine from e14649ea0c80 to 5205e3683a0a (1 revision) (flutter/flutter#147448)
2024-04-27 [email protected] Roll Flutter Engine from 87f489c1bed4 to e14649ea0c80 (1 revision) (flutter/flutter#147446)
2024-04-27 [email protected] Roll Flutter Engine from cecf5aa8a778 to 87f489c1bed4 (1 revision) (flutter/flutter#147445)
2024-04-27 [email protected] Roll Flutter Engine from 8af10eba3ef3 to cecf5aa8a778 (1 revision) (flutter/flutter#147444)
2024-04-27 [email protected] [macOS] Eliminate flutter_gallery_macos__start_up benchmark (flutter/flutter#147442)
2024-04-27 [email protected] Roll Flutter Engine from bc055398f42a to 8af10eba3ef3 (1 revision) (flutter/flutter#147441)
2024-04-27 [email protected] Roll Flutter Engine from c410180e5bba to bc055398f42a (7 revisions) (flutter/flutter#147440)
2024-04-26 [email protected] Add tests for character_activator.0.dart API example. (flutter/flutter#147384)
2024-04-26 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.2 to 3.25.3 (flutter/flutter#147437)
2024-04-26 [email protected] Add integration test for asset transformation feature (flutter/flutter#145715)
2024-04-26 [email protected] Added missing tests for Table api example `table.0.dart`. (flutter/flutter#147318)
2024-04-26 [email protected] Catch any `FileSystemException` thrown when trying to read the template manifest during `flutter create` (flutter/flutter#145620)
2024-04-26 [email protected] fixes `CupertinoFullscreenDialogTransition` leaks (flutter/flutter#147168)
2024-04-26 [email protected] Fix helperMaxLines and errorMaxLines documentation (flutter/flutter#147409)
2024-04-26 [email protected] Refactor route focus node creation (flutter/flutter#147390)
2024-04-26 [email protected] Roll Packages from fde908d to dd01140 (5 revisions) (flutter/flutter#147420)

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 [email protected],[email protected],[email protected] 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
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 6, 2024
@polina-c polina-c changed the title fixes CupertinoFullscreenDialogTransition leaks fixes CupertinoFullscreenDialogTransition leaks [prod-leak-fix] Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: leak tracking Issues and PRs related to memory leaks detected by leak_tracker f: cupertino flutter/packages/flutter/cupertino repository f: routes Navigator, Router, and related APIs. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants