Skip to content

Memory leak on iOS #189

@OneupLee

Description

@OneupLee

I wrote a simple page with only one mapbox in it. When I repeatedly opened and closed the page, I manually GCed it and found that there were several MapBox instances in memory. Repeat until the app crashes.
image
I saw that version 0.4.3 fixed the memory leak problem, but I found that there is no memory leak on Android, and there is still a memory leak problem on iOS. The same goes for version 0.4.4.

test on iPhone 12 pro max, iOS 16.5, Samsung S20 Android13

flutter doctor
[✓] Flutter (Channel stable, 3.7.12, on macOS 13.3 22E252 darwin-arm64, locale
zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

image image image ![image](https://github.com/mapbox/mapbox-maps-flutter/assets/32166473/7736679c-c4cf-40b0-b16c-934157559e21)

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