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

Leak in AccountManager$AmsTask #1042

Closed
vanniktech opened this issue Jun 29, 2018 · 1 comment
Closed

Leak in AccountManager$AmsTask #1042

vanniktech opened this issue Jun 29, 2018 · 1 comment

Comments

@vanniktech
Copy link
Contributor

Follow up from #97. Here's the information.

In com.moovel.kvv.debug:1.0.22-SNAPSHOTB0:240.
* com.moovel.msp.screens.prebooking.PreBookingActivity has leaked:
* GC ROOT android.accounts.AccountManager$AmsTask$Response.this$1
* references android.accounts.AccountManager$9.mActivity (anonymous subclass of android.accounts.AccountManager$AmsTask)
* leaks com.moovel.msp.screens.prebooking.PreBookingActivity instance

* Retaining: 3.6 kB.
* Reference Key: ab5b5be2-2b3f-42e2-9beb-d9eaaa8d458d
* Device: Google google Android SDK built for x86_64 sdk_gphone_x86_64
* Android Version: P API: 27 LeakCanary: 1.5.4 74837f0
* Durations: watch=5004ms, gc=144ms, heap dump=764ms, analysis=11738ms

* Details:
* Instance of android.accounts.AccountManager$AmsTask$Response
|   static $class$superClass = android.accounts.IAccountManagerResponse$Stub
|   static $class$accessFlags = 524288
|   static $class$virtualMethodsOffset = 2
|   static $class$dexClassDefIndex = 5891
|   static $class$status = -536870912
|   static $class$vtable = null
|   static $classOverhead = byte[244]@1895039209 (0x70f400e9)
|   static $class$shadow$_monitor_ = 536870912
|   static $class$ifTable = java.lang.Object[6]@1893662328 (0x70defe78)
|   static $class$objectSizeAllocFastPath = 32
|   static $class$classFlags = 0
|   static $class$classLoader = null
|   static $class$objectSize = 28
|   static $class$extData = null
|   static $class$numReferenceStaticFields = 0
|   static $class$componentType = null
|   static $class$copiedMethodsOffset = 4
|   static $class$referenceInstanceOffsets = 19
|   static $class$classSize = 368
|   static $class$iFields = 1897249404
|   static $class$dexCache = java.lang.DexCache@1893540072 (0x70dd20e8)
|   static $class$sFields = 0
|   static $class$clinitThreadId = 0
|   static $class$primitiveType = 131072
|   static $class$numReferenceInstanceFields = 1
|   static $class$methods = 1898560232
|   static $class$name = java.lang.String@1896676280 (0x710cfbb8)
|   static $class$shadow$_klass_ = java.lang.Class
|   static $class$dexTypeIndex = 113
|   this$1 = android.accounts.AccountManager$9@328773896 (0x1398b108)
|   mDescriptor = java.lang.String@1895694856 (0x70fe0208)
|   mObject = 128265232676544
|   mOwner = android.accounts.AccountManager$AmsTask$Response@326915640 (0x137c5638)
|   shadow$_klass_ = android.accounts.AccountManager$AmsTask$Response
|   shadow$_monitor_ = 0
* Instance of android.accounts.AccountManager$9
|   static $class$superClass = android.accounts.AccountManager$AmsTask
|   static $class$accessFlags = 524288
|   static $class$virtualMethodsOffset = 1
|   static $class$dexClassDefIndex = 4971
|   static $class$status = -536870912
|   static $class$vtable = null
|   static $classOverhead = byte[236]@325653393 (0x13691391)
|   static $class$shadow$_monitor_ = 0
|   static $class$ifTable = java.lang.Object[8]@329921088 (0x13aa3240)
|   static $class$objectSizeAllocFastPath = 64
|   static $class$classFlags = 0
|   static $class$classLoader = null
|   static $class$objectSize = 64
|   static $class$extData = null
|   static $class$numReferenceStaticFields = 0
|   static $class$componentType = null
|   static $class$copiedMethodsOffset = 2
|   static $class$referenceInstanceOffsets = 16367
|   static $class$classSize = 360
|   static $class$iFields = 128267550820320
|   static $class$dexCache = java.lang.DexCache@1893540072 (0x70dd20e8)
|   static $class$sFields = 0
|   static $class$clinitThreadId = 5536
|   static $class$primitiveType = 131072
|   static $class$numReferenceInstanceFields = 4
|   static $class$methods = 128267550820392
|   static $class$name = null
|   static $class$shadow$_klass_ = java.lang.Class
|   static $class$dexTypeIndex = 110
|   this$0 = android.accounts.AccountManager@326916232 (0x137c5888)
|   val$account = android.accounts.Account@328773984 (0x1398b160)
|   val$authTokenType = java.lang.String@326916288 (0x137c58c0)
|   val$optionsIn = android.os.Bundle@328774008 (0x1398b178)
|   mActivity = com.moovel.msp.screens.prebooking.PreBookingActivity@328716112 (0x1397cf50)
|   mCallback = null
|   mHandler = null
|   mResponse = android.accounts.AccountManager$AmsTask$Response@326915640 (0x137c5638)
|   this$0 = android.accounts.AccountManager@326916232 (0x137c5888)
|   callable = null
|   outcome = android.os.Bundle@328773960 (0x1398b148)
|   runner = null
|   state = 2
|   waiters = null
|   shadow$_klass_ = android.accounts.AccountManager$9
|   shadow$_monitor_ = 0
* Instance of com.moovel.msp.screens.prebooking.PreBookingActivity
|   static $class$superClass = com.moovel.mvp.DaggerMVPActivity
|   static $class$accessFlags = 524289
|   static $class$virtualMethodsOffset = 3
|   static $class$dexClassDefIndex = 6062
|   static $class$status = -536870912
|   static $class$vtable = null
|   static $classOverhead = byte[4452]@328073721 (0x138e01f9)
|   static $class$shadow$_monitor_ = 1073743244
|   static ACTIVITY_RESULT_PIN = java.lang.String@326596128 (0x13777620)
|   static $class$ifTable = java.lang.Object[46]@328083912 (0x138e29c8)
|   static $class$objectSizeAllocFastPath = 296
|   static $class$classFlags = 0
|   static $class$classLoader = dalvik.system.PathClassLoader@325764960 (0x136ac760)
|   static PARAM_BUNDLE_USERREQUIREMENTS = java.lang.String@326836184 (0x137b1fd8)
|   static $class$objectSize = 292
|   static $class$extData = null
|   static $class$numReferenceStaticFields = 8
|   static DIALOG_PARAM_DATA = java.lang.String@326594000 (0x13776dd0)
|   static $class$componentType = null
|   static $class$copiedMethodsOffset = 13
|   static $class$referenceInstanceOffsets = -1073741824
|   static $class$classSize = 4608
|   static ACTIVITY_RESULT_PROFILE = java.lang.String@326596168 (0x13777648)
|   static $class$iFields = 128267498570616
|   static PARAM_BUNDLE_PAYREQUIREMENTS = java.lang.String@326836032 (0x137b1f40)
|   static PIN_PRC_DIALOG = java.lang.String@326839640 (0x137b2d58)
|   static $class$dexCache = java.lang.DexCache@2024083888 (0x78a511b0)
|   static $class$sFields = 128267498570480
|   static $class$clinitThreadId = 5472
|   static $class$primitiveType = 131072
|   static $class$numReferenceInstanceFields = 2
|   static USER_PRC_DIALOG = java.lang.String@326599392 (0x137782e0)
|   static $class$methods = 128267498570656
|   static $class$name = java.lang.String@328084112 (0x138e2a90)
|   static $class$shadow$_klass_ = java.lang.Class
|   static PAYMENT_PRC_DIALOG = java.lang.String@326608408 (0x1377a618)
|   static $class$dexTypeIndex = 652
|   payRequirements = null
|   userRequirements = java.util.RegularEnumSet@328716712 (0x1397d1a8)
|   delegate = com.moovel.mvp.MVPAndroidDelegate@328716736 (0x1397d1c0)
|   presenter = com.moovel.msp.screens.prebooking.PreBookingPresenter@328716752 (0x1397d1d0)
|   frameworkFragmentInjector = dagger.android.DispatchingAndroidInjector@328716816 (0x1397d210)
|   supportFragmentInjector = dagger.android.DispatchingAndroidInjector@328716832 (0x1397d220)
|   mDelegate = android.support.v7.app.AppCompatDelegateImplN@328716848 (0x1397d230)
|   mResources = null
|   mThemeId = 2131820550
|   mCreated = true
|   mFragments = android.support.v4.app.FragmentController@328716992 (0x1397d2c0)
|   mHandler = android.support.v4.app.FragmentActivity$1@328717008 (0x1397d2d0)
|   mNextCandidateRequestIndex = 0
|   mPendingFragmentActivityResults = android.support.v4.util.SparseArrayCompat@328717040 (0x1397d2f0)
|   mReallyStopped = true
|   mRequestedPermissionsFromFragment = false
|   mResumed = false
|   mRetaining = false
|   mStopped = true
|   mStartedActivityFromFragment = false
|   mStartedIntentSenderFromFragment = false
|   mExtraDataMap = android.support.v4.util.SimpleArrayMap@328717064 (0x1397d308)
|   mLifecycleRegistry = android.arch.lifecycle.LifecycleRegistry@328717088 (0x1397d320)
|   mActionBar = null
|   mActionModeTypeStarting = 0
|   mActivityInfo = android.content.pm.ActivityInfo@328717120 (0x1397d340)
|   mActivityTransitionState = android.app.ActivityTransitionState@328717272 (0x1397d3d8)
|   mApplication = com.moovel.kvv.KvvApplication@325771504 (0x136ae0f0)
|   mAutoFillIgnoreFirstResumePause = false
|   mAutoFillResetNeeded = false
|   mAutofillManager = null
|   mAutofillPopupWindow = null
|   mCalled = true
|   mCanEnterPictureInPicture = false
|   mChangeCanvasToTranslucent = false
|   mChangingConfigurations = false
|   mComponent = android.content.ComponentName@328717328 (0x1397d410)
|   mConfigChangeFlags = 0
|   mCurrentConfig = android.content.res.Configuration@328717344 (0x1397d420)
|   mDecor = null
|   mDefaultKeyMode = 0
|   mDefaultKeySsb = null
|   mDestroyed = true
|   mDoReportFullyDrawn = false
|   mEmbeddedID = null
|   mEnableDefaultActionBarUp = false
|   mEnterTransitionListener = android.app.SharedElementCallback$1@1893607864 (0x70de29b8)
|   mExitTransitionListener = android.app.SharedElementCallback$1@1893607864 (0x70de29b8)
|   mFinished = true
|   mFragments = android.app.FragmentController@328717456 (0x1397d490)
|   mHandler = android.os.Handler@328717472 (0x1397d4a0)
|   mHasCurrentPermissionsRequest = false
|   mIdent = 139189718
|   mInstanceTracker = android.os.StrictMode$InstanceTracker@328717504 (0x1397d4c0)
|   mInstrumentation = android.app.Instrumentation@326959560 (0x137d01c8)
|   mIntent = android.content.Intent@328717520 (0x1397d4d0)
|   mLastAutofillId = 1073741824
|   mLastNonConfigurationInstances = null
|   mMainThread = android.app.ActivityThread@325583328 (0x136801e0)
|   mManagedCursors = java.util.ArrayList@328717584 (0x1397d510)
|   mManagedDialogs = null
|   mMenuInflater = null
|   mParent = null
|   mReferrer = java.lang.String@328717608 (0x1397d528)
|   mRestoredFromBundle = false
|   mResultCode = 0
|   mResultData = null
|   mResumed = false
|   mSearchEvent = null
|   mSearchManager = null
|   mStartedActivity = false
|   mStopped = true
|   mTaskDescription = android.app.ActivityManager$TaskDescription@328717648 (0x1397d550)
|   mTemporaryPause = false
|   mTitle = java.lang.String@326932072 (0x137c9668)
|   mTitleColor = 0
|   mTitleReady = true
|   mToken = android.os.BinderProxy@328717688 (0x1397d578)
|   mTranslucentCallback = null
|   mUiThread = java.lang.Thread@1956980544 (0x74a52740)
|   mVisibleFromClient = true
|   mVisibleFromServer = false
|   mVoiceInteractor = null
|   mWindow = com.android.internal.policy.PhoneWindow@328717712 (0x1397d590)
|   mWindowAdded = true
|   mWindowManager = android.view.WindowManagerImpl@328718080 (0x1397d700)
|   mInflater = com.android.internal.policy.PhoneLayoutInflater@328718104 (0x1397d718)
|   mOverrideConfiguration = null
|   mResources = android.content.res.Resources@328718152 (0x1397d748)
|   mTheme = android.content.res.Resources$Theme@328718192 (0x1397d770)
|   mThemeResource = 2131820550
|   mBase = android.app.ContextImpl@328718208 (0x1397d780)
|   shadow$_klass_ = com.moovel.msp.screens.prebooking.PreBookingActivity
|   shadow$_monitor_ = 1073745130
* Excluded Refs:
| Field: android.view.textservice.SpellCheckerSession$1.this$0
| Field: android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue (always)
| Thread:FinalizerWatchdogDaemon (always)
| Thread:main (always)
| Thread:LeakCanary-Heap-Dump (always)
| Class:java.lang.ref.WeakReference (always)
| Class:java.lang.ref.SoftReference (always)
| Class:java.lang.ref.PhantomReference (always)
| Class:java.lang.ref.Finalizer (always)
| Class:java.lang.ref.FinalizerReference (always)
@pyricau pyricau added this to the 1.6 milestone Jun 29, 2018
@pyricau
Copy link
Member

pyricau commented Jun 29, 2018

Thanks! Actually I just realized this has been fixed already: #993

@pyricau pyricau closed this as completed Jun 29, 2018
@pyricau pyricau removed this from the 1.6 milestone Jun 29, 2018
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

2 participants