Skip to content

There seems to be a memory leak in this package #274

@zhuscat

Description

@zhuscat

Reproducible example

https://github.com/zhuscat/expo-test-healthkit-lib

Steps to reproduce

Image

As shown in the image, first tap “Request HealthKit Permission” to authorize. After tapping “Fetch Workout Data” once, memory usage is about 200 MB (I have 490 workouts and 43 000+ heart-rate data points). Then I rapidly tap “Fetch Workout Data” and watch memory climb in Xcode. When it reaches 1 GB I stop tapping, wait until CPU usage drops to a low level, and continue observing; the memory never falls back to 200 MB.

Memory usage after first tap

Image

Keep tap until memory usage achieve 1G

Image

Stop tapping but memory usage never falls back to 200MB

Image

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