googlearchive / android-FingerprintDialog

Migrated:
https://github.com/android/security
Apache License 2.0
1.38k stars 477 forks source link

MainActivity leaked! #51

Closed onedaybegin closed 5 years ago

onedaybegin commented 6 years ago

When i start the app and then complete the fingerprint verification(successed),then i close the app,then i see the log that MainActivity leaked.

dbogoslovtsev commented 6 years ago

Same problem here, does anybody know how to fix it?

rafaelekol commented 5 years ago

I also getting multiple Memory Leaks. Here is one of them.

* android.support.constraint.ConstraintLayout has leaked:
* FingerprintManager$1.!(this$0)! (anonymous subclass of android.hardware.fingerprint.IFingerprintServiceReceiver$Stub)
* ↳ FingerprintManager.!(mAuthenticationCallback)!
* ↳ FingerprintManagerCompat$1.!(val$callback)! (anonymous subclass of android.hardware.fingerprint.FingerprintManager$AuthenticationCallback)
* ↳ FingerprintUiHelper.!(errorTextView)!
* ↳ AppCompatTextView.mParent
* ↳ ConstraintLayout

* Reference Key: 302313a9-6a36-4fdb-9352-d23f509667c9
* Device: OnePlus OnePlus ONEPLUS A3010 OnePlus3
* Android Version: 8.0.0 API: 26 LeakCanary: 1.6.2 0ebc1fc
* Durations: watch=5576ms, gc=353ms, heap dump=2186ms, analysis=17256ms

* Details:
* Instance of android.hardware.fingerprint.FingerprintManager$1
|   static $classOverhead = byte[288]@326037529 (0x136ef019)
|   this$0 = android.hardware.fingerprint.FingerprintManager@329780376 (0x13a80c98)
|   mDescriptor = "android.hardware.fingerprint.IFingerprintServiceReceiver"
|   mObject = 521804688064
|   mOwner = android.hardware.fingerprint.FingerprintManager$1@326810144 (0x137aba20)
|   shadow$_klass_ = android.hardware.fingerprint.FingerprintManager$1
...
rafaelekol commented 5 years ago

Found this link helpful.

codingjeremy commented 5 years ago

I am closing this issue/PR, as it has been migrated to the new repo linked above in the comments. Thank you!