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 when deepAR.createARView(withFrame:) #30

Open
wammy67 opened this issue Mar 17, 2024 · 3 comments
Open

Memory leak when deepAR.createARView(withFrame:) #30

wammy67 opened this issue Mar 17, 2024 · 3 comments

Comments

@wammy67
Copy link

wammy67 commented Mar 17, 2024

Description:

I've encountered a memory leak issue when creating and creating instances of ARView provided by the DeepAR framework in my iPadOS application. This leak persists even after explicitly removing the view from its superview and setting the reference to nil.

Steps to Reproduce:

  • Initialize a new ARView instance using deepAR.createARView(withFrame:)
  • Add the view to a superview.

IMAGE 2024-03-17 20:28:54

Environment:
DeepAR SDK version: 5.5.2
iPadOS version: 16.4.1
Device: iPad pro gen 3
Xcode version: 15.1

I appreciate your assistance in addressing this issue. Please let me know if you require any further information or clarification.

Stacktrace:

IMAGE 2024-03-17 20:29:17

@igor-aradski
Copy link
Contributor

Could you check if the issue is present with the newest version of the SDK?
Also, could you test it on the quickstart example or provide the minimal changes necessary to reproduce the bug?

Thank you!

@MikheilMuchaidze
Copy link

Hello Igor, sorry fo a late reply but I tried things on example app and will describe not.
So first of all in your example app you have navigation from one controller to another but it isn't properly configured so when you build you are instantly on the screen with camera view on it. I configured app so that you start from blank screen with button to navigate to a screen with DeepAR view. And here begins problem.
I'll describe steps to create memory leak.

  1. Config app to have nagivation to a screen with DeepAR functionalities
  2. Load app with first screen
  3. Press button to navigate to a DeepAR screen
  4. Go back on the initial screen
  5. Go again to a DeepAR screen and in this moments memory leak appears, I guess on reinit of DeepAR enging?

I have tested on Iphone 13 pro max, lates iOS, and latest DeepAR (5.6.4)
So problem exists on example app too and also with ours

image
image
image

@MikheilMuchaidze
Copy link

@igor-aradski

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

3 participants