Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Memory leak when paginating over a large table #623

Closed
vojto opened this issue Feb 6, 2025 · 1 comment
Closed

bug: Memory leak when paginating over a large table #623

vojto opened this issue Feb 6, 2025 · 1 comment
Labels
bug/fix Something isn't working needs: triage

Comments

@vojto
Copy link

vojto commented Feb 6, 2025

Plugin version: 7.0.0

Platform(s): iOS

Current behavior:

Paginating with pages of size 500 over a table with 10k rows each holding about 12k worth of data results in 700MB in allocated memory (measured using Safari inspector on physical iPhone) which is never freed.

Expected behavior:

Memory should be garbage collected after each page since the data isn't retained anywhere.

Steps to reproduce/Related code:

Listed in repo: https://github.com/vojto/dbtest

Other information:

Example output in Memory tab in Safari:

Image

Capacitor doctor:

💊   Capacitor Doctor  💊

Latest Dependencies:

  @capacitor/cli: 7.0.1
  @capacitor/core: 7.0.1
  @capacitor/android: 7.0.1
  @capacitor/ios: 7.0.1

Installed Dependencies:

  @capacitor/android: not installed
  @capacitor/cli: 7.0.1
  @capacitor/core: 7.0.1
  @capacitor/ios: 7.0.1

[success] iOS looking great! 👌
@vojto vojto added bug/fix Something isn't working needs: triage labels Feb 6, 2025
@vojto
Copy link
Author

vojto commented Feb 11, 2025

This turns out to be a Capacitor bug: ionic-team/capacitor#7883

@vojto vojto closed this as completed Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Something isn't working needs: triage
Projects
None yet
Development

No branches or pull requests

1 participant