Closed simon-st closed 1 month ago
This issue seems to be similar, but not exactly the same
Thank you for sharing, we are looking into it.
was this resolved?
Hey, bumping in to check if you still face this with GMS latest versions? Please share any video recrding and bug report if you can with latest versions.
I tried this again with the latest main branch of identity-samples
repo and running CredentialManagerSample
in profile mode from AS. Rotated the screen a few times while the passkey bottom sheet was open and then took a heap dump that shows one instance being leaked per rotation. It looks like the reference to the activity is kept in CredentialManager
as you can see in below screenshot.
I did this test on a Pixel 8 emulator that is completely updated.
Video: https://github.com/android/identity-samples/assets/1965839/430de945-2f8b-4d7d-a384-18d17697062f
Heap dump screenshot:
Thanks, would you mind creating a bug with all details required in that template? Sharing here : https://issuetracker.google.com/issues/new?component=1301097&template=1773864
here you go: https://issuetracker.google.com/issues/338398658
Thank you, closing from here so that we can track and respond at one place. Please refer to the bug link for next steps :)
Steps to reproduce:
debugImplementation("com.squareup.leakcanary:leakcanary-android:2.12")
)Note: I also checked in the Android Studio profiling heap dump and it also shows the same leak.
The problem seems to be in the android CredentialManager, not in the CredentialManagerSample app.
Affected credentials library versions:
1.2.0-beta03
and1.2.0
LeakCanary output: