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

Memory leak #230

Closed
khasanakv opened this issue Sep 27, 2024 · 4 comments
Closed

Memory leak #230

khasanakv opened this issue Sep 27, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@khasanakv
Copy link

khasanakv commented Sep 27, 2024

Current Behavior

Memory increase while sending analytics

image

send analytics parallel memory just increasing

Environment

  • SDK Version:1.9.2
  • OS Info: iOS 17.5
@khasanakv khasanakv added the bug Something isn't working label Sep 27, 2024
@crleona
Copy link
Collaborator

crleona commented Sep 27, 2024

Hi @khasanakv are you able to provide more details and confirm that you're using 1.9.2? We fixed a similar issue in #221, which should be included in 1.9.2.

@YunusDeveloper
Copy link

I also reproduce this memory leak in version 1.9.2.

let amplitudeConfig = Configuration(
           apiKey: myApiKey,
           flushIntervalMillis: 1,
           autocapture: [.appLifecycles, .elementInteractions, .elementInteractions, .sessions]
)

when I configure Amplitude and adding options if add .sessions option memory leak reproduces if I remove no it doesn't happen

@crleona
Copy link
Collaborator

crleona commented Oct 1, 2024

Well, we don't appear to have a leak, but we are hanging on to memory longer than we need it - this should be fixed in #232. Thanks @khasanakv for the report and @YunusDeveloper for the repro steps.

@crleona
Copy link
Collaborator

crleona commented Oct 1, 2024

The fix has been released in 1.9.3

@crleona crleona closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants