Skip to content

Conversation

@polina-c
Copy link
Contributor

No description provided.

@github-actions github-actions bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Jul 13, 2023
@polina-c polina-c marked this pull request as ready for review July 13, 2023 23:38
@polina-c polina-c requested a review from goderbauer July 13, 2023 23:38
@polina-c polina-c changed the title Mark leak in text_selection_theme_test.dart. Mark leak some leaks. Jul 14, 2023
@polina-c polina-c changed the title Mark leak some leaks. Mark some leaks. Jul 14, 2023
await tester.pumpAndSettle();
});
},
// TODO(polina-c): remove after widgets/app.dart/defaultActions stops holding objects.
Copy link
Member

Choose a reason for hiding this comment

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

defaultActions is a static that is supposed to live for the duration of the application. So its expected to never be GCed and therefore is not a leak.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

defaultActions holds some disposed objects from GC, that is leak. Some object on retaining path should release the references.

Copy link
Member

Choose a reason for hiding this comment

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

What's the disposed object? From what I can tell, the objects in the defaultActions map are not disposable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The disposed object is ValueNotifier<_OverlayEntryWidgetState?>.
Full retaining path is looong and is linked to the issue: #130354

Copy link
Contributor Author

@polina-c polina-c Jul 14, 2023

Choose a reason for hiding this comment

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

This PR just test covers three tests for leaks.
I suggest to merge this PR and move the discussion if the detected leak is true or false positive, to the issue.

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

@polina-c polina-c added the autosubmit Merge PR when tree becomes green via auto submit App label Jul 17, 2023
@polina-c polina-c merged commit e337343 into flutter:master Jul 17, 2023
@polina-c polina-c deleted the text_selection_theme branch July 17, 2023 19:49
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jul 19, 2023
LouiseHsu pushed a commit to LouiseHsu/flutter that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants