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

High Memoey leak #3676

Closed
amruth-movano opened this issue May 5, 2024 · 4 comments
Closed

High Memoey leak #3676

amruth-movano opened this issue May 5, 2024 · 4 comments

Comments

@amruth-movano
Copy link

Describe the bug

Hi Team, I am facing memory leaks at so many points in amplify state machine listen function.
File Name - AWSCognitoAuthPlugin + Configure
Function - listenToStateMachineChanges()

let stateSequences = await authStateMachine.listen()

Steps To Reproduce

Its reproducible on each app launch.
Memory leak is happening when we call amplify configure.

Expected behavior

Memory leak should not be there.

Amplify Framework Version

2.29.3

Amplify Categories

DataStore

Dependency manager

Swift PM

Swift version

5.0

CLI version

NA

Xcode version

15.2

Relevant log output

Please see attached screenshots -

Is this a regression?

Yes

Regression additional context

Previosuly we were using 2.26.2 and recenetly we updated to 2.29.3 and we are seeing this ,memory leaks

Please see attached screenshots for memory leaks points.

Screenshot 2024-05-05 at 2 09 19 PM Screenshot 2024-05-05 at 2 09 30 PM Screenshot 2024-05-05 at 2 09 42 PM Screenshot 2024-05-05 at 2 09 51 PM Screenshot 2024-05-05 at 2 10 00 PM

Platforms

iOS

OS Version

iOS 17.0

Device

iPhone 15 Plus

Specific to simulators

No response

Additional context

No response

@harsh62
Copy link
Member

harsh62 commented May 5, 2024

Thanks for opening the issue. Can you please try updating to the latest version of Amplify?

The issue has already been addressed by the Amplify team.

@amruth-movano
Copy link
Author

@harsh62 Thanks for the reply. Will update it to latest version of amplify

@amruth-movano
Copy link
Author

@harsh62 I have verified, there are no memory leaks in listenToStateMachineChanges. Thanks

Copy link
Contributor

github-actions bot commented May 5, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants