Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[android] Animating camera with tilt and map padding set couses big memory leaks in nativeCode leading to OOM #15411

Description

@2Rec

Animating camera with tilt and map padding set couses big memory leaks in nativeCode.

Steps to reproduce. Profiler from Android Studio shows huge memory usage. 1 minute -> from 120MB to over 500MB in native code.

  1. Set Map padding for example map.setPadding(0, 1000, 0, 0)
  2. Constantly updating one after another cameraPosition
    map.easeCamera(CameraUpdateFactory.newCameraPosition(cameraPosition), 1000, false)

Expected behavior

No leaks, no crashes, smooth movement

Actual behavior

  • Memory leaks, OOM crash

Configuration

Android versions: 8.0.0
Device models: HTC U11
Mapbox SDK versions: 8.2.1

Activity

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

    AndroidMapbox Maps SDK for Android

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions