Skip to content

Memory doesn't release when after map render #226

Closed

Description

@thuydao

For example, I go to user interface > back to main screen > go to user interface again. The memory not reduce.

Activity

  1. lj64 commented on Jul 1, 2020

    @lj64

    I have the same problem.

    App is crashing on ios when using the map a lot.
    It is very easy to reproduce in example app.
    Just enter one page with map, go back, enter again, go back.
    Repeat several times and app will crash.

    In my case on iphone 6s:

    • open and close Full screen map 47 times, then crash
    • open and close User interface 28 times, then crash

    In my project it takes 16-18 times to open and close map page before it crashes.
    The only log from xcode that I had after app crashing was:
    Message from debugger: Terminated due to memory issue

  2. kleeb commented on Jul 2, 2020

    @kleeb

    +1

  3. m0nac0 commented on Jul 2, 2020

    @m0nac0
    Collaborator

    @thuydao @kleeb Is this only on iOS?

  4. kleeb commented on Jul 2, 2020

    @kleeb

    Yes. I reproduced that even on the example app

  5. kuhnroyal commented on Jul 29, 2020

    @kuhnroyal

    This seems to happen only on iOS. Does anyone know if this happens in the flutter-mapbox-gl plugin or in the native code?

  6. kuhnroyal commented on Jul 30, 2020

    @kuhnroyal

    Inspecting this with XCode instruments you can see the MapboxMapController does not get cleaned up. The reference count keeps going up.

  7. thirteenthstep commented on Jul 31, 2020

    @thirteenthstep
    Contributor

    Pull Request #370 should fix this

  8. tobrun commented on Nov 7, 2020

    @tobrun
    Collaborator

    #370 merged, please reach out if still an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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