-
Notifications
You must be signed in to change notification settings - Fork 6k
Release shim bindings when detaching #13432
Conversation
matthew-carroll
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. Is there still more investigation that needs to happen into the reported leak?
| } | ||
|
|
||
| pluginBinding = null; | ||
| activityPluginBinding = null; |
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.
FYI, this isn't technically necessary because the engine will already be detached from the Activity before this executes.
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.
Discussed offline. Understood.
Though I'd keep them here since the current docs don't refer have the engine and activity callbacks refer to each other in terms of timing. So it would be a knowledge leak from the implementer side here to assume there is a sequence.
(though not a bad idea to actually add that to the javadoc, e.g. onDetachedFromEngine is guaranteed to call after all the ui component bindings had a chance to detach first and vice versa).
|
I couldn't repro the reported leak via leakcanary. I don't think there are further actions. |
git@github.com:flutter/engine.git/compare/0a8bd9dd6fbb...e73c9c8 git log 0a8bd9d..e73c9c8 --no-merges --oneline 2019-11-04 skia-flutter-autoroll@skia.org Roll src/third_party/skia 8e083eee8ece..4cc2dc64ff13 (1 commits) (flutter/engine#13543) 2019-11-04 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/mac-amd64 from ggsQ5... to XcaoM... (flutter/engine#13535) 2019-11-04 yjbanov@google.com fix getBoxesForRange for zero-length ranges (flutter/engine#13483) 2019-11-04 bkonyi@google.com Roll src/third_party/dart bbe2ac28c9..ab5cf0f854 (73 commits) (flutter/engine#13614) 2019-11-02 skia-flutter-autoroll@skia.org Roll src/third_party/skia 283ec65f632a..8e083eee8ece (32 commits) (flutter/engine#13489) 2019-11-02 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/mac-amd64 from FKqQ_... to ggsQ5... (flutter/engine#13490) 2019-11-02 xster@google.com Release shim bindings when detaching (flutter/engine#13432) 2019-11-01 gw280@google.com Add fuchsia.intl.PropertyProvider to our services on Fuchsia (flutter/engine#13486) 2019-11-01 fmil@google.com [dart] Makes the intl services available (flutter/engine#13460) 2019-11-01 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/linux-amd64 from 866GG... to dhwMR... (flutter/engine#13475) 2019-11-01 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/mac-amd64 from JngMB... to FKqQ_... (flutter/engine#13477) 2019-11-01 skia-flutter-autoroll@skia.org Roll src/third_party/skia 809ec77893be..283ec65f632a (14 commits) (flutter/engine#13472) 2019-11-01 dnfield@google.com Request a reattach when creating the text input plugin on Android (flutter/engine#13474) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC cbracken@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
git@github.com:flutter/engine.git/compare/0a8bd9dd6fbb...e73c9c8 git log 0a8bd9d..e73c9c8 --no-merges --oneline 2019-11-04 skia-flutter-autoroll@skia.org Roll src/third_party/skia 8e083eee8ece..4cc2dc64ff13 (1 commits) (flutter/engine#13543) 2019-11-04 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/mac-amd64 from ggsQ5... to XcaoM... (flutter/engine#13535) 2019-11-04 yjbanov@google.com fix getBoxesForRange for zero-length ranges (flutter/engine#13483) 2019-11-04 bkonyi@google.com Roll src/third_party/dart bbe2ac28c9..ab5cf0f854 (73 commits) (flutter/engine#13614) 2019-11-02 skia-flutter-autoroll@skia.org Roll src/third_party/skia 283ec65f632a..8e083eee8ece (32 commits) (flutter/engine#13489) 2019-11-02 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/mac-amd64 from FKqQ_... to ggsQ5... (flutter/engine#13490) 2019-11-02 xster@google.com Release shim bindings when detaching (flutter/engine#13432) 2019-11-01 gw280@google.com Add fuchsia.intl.PropertyProvider to our services on Fuchsia (flutter/engine#13486) 2019-11-01 fmil@google.com [dart] Makes the intl services available (flutter/engine#13460) 2019-11-01 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/linux-amd64 from 866GG... to dhwMR... (flutter/engine#13475) 2019-11-01 skia-flutter-autoroll@skia.org Roll fuchsia/sdk/core/mac-amd64 from JngMB... to FKqQ_... (flutter/engine#13477) 2019-11-01 skia-flutter-autoroll@skia.org Roll src/third_party/skia 809ec77893be..283ec65f632a (14 commits) (flutter/engine#13472) 2019-11-01 dnfield@google.com Request a reattach when creating the text input plugin on Android (flutter/engine#13474) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC cbracken@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
flutter/flutter#36898 doesn't repro, but there's a conceptual leak nevertheless where the shim registry and registrar hold onto bindings (which holds onto a bunch of other stuff) after detaching.