Skip to content

FlutterEngineRegistrar memory leaks iOS #36767

@ened

Description

@ened

Steps to Reproduce

  1. Build and run a Flutter project with a multiple native plugins, for example:
  geolocator: ^5.0.1
  google_maps_flutter: ^0.5.13
  1. Open XCode to run the App
  2. Open the memory analyzer, find that for now there are 3 FlutterEngineRegistrar objects

Screen Shot 2019-07-23 at 16 45 46

Logs

- no logs are generated by the App during this time -
$ flutter doctor -v
[✓] Flutter (Channel dev, v1.8.2, on Mac OS X 10.14.6 18G84, locale en-US)
    • Flutter version 1.8.2 at /Users/ened/dev/flutter
    • Framework revision 0a39d8d92e (13 days ago), 2019-07-10 19:17:14 -0700
    • Engine revision 75387dbc14
    • Dart version 2.5.0 (build 2.5.0-dev.0.0 b5aeaa6796)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /usr/local/opt/android-sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • ANDROID_HOME = /usr/local/opt/android-sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.3, Build version 10G8
    • CocoaPods version 1.7.4

[✓] iOS tools - develop for iOS devices
    • ios-deploy 1.9.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 37.1.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.36.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.2.0

[✓] Connected device (1 available)
    • Sebastian Roth’s iPhone • 8abb0e857d6f964b7cb479db5f40cb70da7954b9 • ios • iOS 12.4

• No issues found!

/cc @gaaclarke

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions