-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#17646Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.perf: memoryPerformance issues related to memoryPerformance issues related to memoryplatform-androidAndroid applications specificallyAndroid applications specifically
Description
In Add2App, when closing a FlutterView by calling finish() on the activity that hosts the view, a leak is present. The offender is a method channel that we have in a long living delegate that we've created which is given the DartExecutor from the engine that we've created and cached.
It seems that some the channel ends up having a reference to a TextInputPlugin instance which has a reference to the FlutterView which never gets released when the FlutterView is closed.
I'm attaching the screenshots of the leak.
Metadata
Metadata
Assignees
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: performanceRelates to speed or footprint issues (see "perf:" labels)Relates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.perf: memoryPerformance issues related to memoryPerformance issues related to memoryplatform-androidAndroid applications specificallyAndroid applications specifically