-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Flutter framework is leaking in debug mode for gallery app. #107338
Comments
Why it is important to fix:
|
Hi @polina-c, Thanks for filing the issue. Labeling the issue for further investigation from the team. |
The file in the Google Drive seems private to me. Can you make sure it is publicly accessible? |
Fixed. Let me know if something is still wrong. |
The leaking state seems to be |
So far I've been unable to reproduce this. I tried running the https://github.com/polina-c/flutter/tree/leak-tracking2 branch of the framework with a compatible version of Gallery (flutter/gallery@1dfcd61) I then added this to
Next I started Gallery, went to the Crane screen, resized the window, and scrolled through the list. Initially I did not get any reports of leaks. However, after a few more seconds of scrolling I got a native code crash in the Dart runtime (apparently related to a stack overflow):
I also tried checking the Dart Observatory allocation profile while scrolling through Crane with the leak detector disabled. But I did not notice anything unusual. |
@jason-simmons , thanks for checking. Yes, crash happens sometimes for me. But other times I see leaks. Can we have GVC session? I sent you invite. |
Had discussion with Jason. Discoveries are:
|
Merged https://github.com/polina-c/flutter/tree/leak-tracking2 with flutter muster to make troubleshooting easier. |
I tested it with Flutter 3.0.1-0.0.pre.1889 and could not repro both crash and leaks. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to repro:
startAppLeakTracking(enabledFamilies: {'flutterRendering'});
If you remove WeakRef from DebugCreator (the WeakRef is here just in the flutter branch for the leak tracker), you will get the leaks earlier, on main screen of gallery, by resizing and scrolling:
https://github.com/polina-c/flutter/blob/0b01eaaf89ddde670fb5494d49be059f172c8c70/packages/flutter/lib/src/widgets/framework.dart#L6394
Commenting out this line does not fix the issue:
flutter/packages/flutter/lib/src/rendering/object.dart
Line 258 in d01c0bc
The text was updated successfully, but these errors were encountered: