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

Strong reference cycle - objects not released from memory #129

Closed
alekkova opened this issue Apr 18, 2024 · 3 comments
Closed

Strong reference cycle - objects not released from memory #129

alekkova opened this issue Apr 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@alekkova
Copy link

Describe the bug

Strong reference cycle between CameraPreviewViewModel and LivenessCaptureSession prevents objects to be released from memory after each liveness session. Please see screenshots from Xcode Memory Graph.

Screenshot 2024-04-18 at 15 27 06

Screenshot 2024-04-18 at 15 27 18

Steps To Reproduce

Steps to reproduce the behavior:
1. Perform full liveness session flow.
2. Perform another full liveness session flow.
3. Observe Xcode Memory Graph -> objects keep accumulating.

Expected behavior

Objects are released from memory after liveness session is completed.

Swift Liveness Version

1.2.9

Xcode version

15.2

Relevant log output

No response

Is this a regression?

No

Regression additional context

No response

OS Version

iOS 17

Device

iPhone 15

Specific to simulators

No response

Additional context

No response

@phantumcode phantumcode added the bug Something isn't working label Apr 18, 2024
@phantumcode
Copy link
Contributor

@alekkova Thanks for submitting the issue. We'll investigate and provide updates here.

@phantumcode
Copy link
Contributor

Fixed in version 1.2.12

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

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
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants