Skip to content

Potential memory leak issue in iOS #54937

@ksantiyanont

Description

@ksantiyanont

We found a potential memory leak issue in iOS when our application is starting to crash more and more often in iOS. So, we created a test application to try to narrow down the scope. We found that even in our simple test app, the issue is still observable.

Steps to Reproduce

  1. Clone https://github.com/noleplay81/FlutterPluginMemoryTest/tree/IncludeHereMapView
  2. Run the application
  3. After open and close the main map screen multiple times, the app will crash

Expected results: Application continue to run smoothly

Actual results: Application crash, out of memory

Logs Here is a sample profile from one of the test runs we did:

1586752846243

[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.1 19B88, locale ko-KR)
    • Flutter version 1.12.13+hotfix.9 at /Users/*****/documents/flutter
    • Framework revision f139b11009 (13 days ago), 2020-03-30 13:57:30 -0700
    • Engine revision af51afceb8
    • Dart version 2.7.2
 
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at /Users/*****/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
 
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.8.4
 
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
 
[✓] VS Code (version 1.43.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
 
[✓] Connected device (1 available)
    • ***** • ceb23a85ee8489e850d733d2ea4f35202d316802 • ios • iOS 13.3.1

Metadata

Metadata

Assignees

Labels

a: platform-viewsEmbedding Android/iOS views in Flutter appsc: performanceRelates to speed or footprint issues (see "perf:" labels)customer: vroomengineflutter/engine related. See also e: labels.perf: memoryPerformance issues related to memoryplatform-iosiOS applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions