-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Mark some leaks. #130470
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
Mark some leaks. #130470
Conversation
This reverts commit 634975c.
| await tester.pumpAndSettle(); | ||
| }); | ||
| }, | ||
| // TODO(polina-c): remove after widgets/app.dart/defaultActions stops holding objects. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
goderbauer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.