-
Notifications
You must be signed in to change notification settings - Fork 600
memory leak #413
Comments
Thanks for the details. We'll take a look. |
I'd like to add to this which might be relevant. I'm seeing StrictMode violation and that my activity has leaked This is what I see every time I rotate screen (I do not wish to disable this). I've also tried using WeakReference for holding my ArFragment reference, same thing. I'm using sceneform 1.5.1
|
I am able to reproduce this leak. I'll work on a fix. |
I've fixed this in our codebase. This did not make the 1.6.0 release train however so will be in a release after that. |
Reported as google-ar#413 The ViewTreeObserver & listener kept a reference to the fragment after the view & activity were destroyed.
Here is the Pull Request if you want to build an updated version of the ux library. |
@malik-at-work @claywilkinson |
Reported as google-ar#413 The ViewTreeObserver & listener kept a reference to the fragment after the view & activity were destroyed.
I have found a memory leak when closing a session. (stopping & destroying the arCore activity)
found using the Android Profiler.
There are some objects with names like "bkm", "big", "bff", etc. that get increased by 2 after a session was opened. So after opening a session 7 times these objects have an allocation count of 14.
I have tested this Memory Leak in several different ArCore samples.
new samples and older ones.
the Memory Leak happens in every single one of them! every time the Activity is destroyed.
it never happens if the Activity is saved and stopped.
i also have created an App that does nothing except
set the content view to: com.google.ar.sceneform.ux.ArFragment
and the Memory Leak happens every time.
every session increases the memory by an average of 3,5 MB.
The text was updated successfully, but these errors were encountered: