Skip to content

baseActivity 中 netEvent内存泄漏 #3

@Louisyong9527

Description

@Louisyong9527

In cn.white.ymc.wanandroidmaster:1.0:1.

  • cn.white.ymc.wanandroidmaster.ui.home.HomeActivity has leaked:

  • static BaseActivity.!(netEvent)!

  • ↳ HomeActivity

  • Reference Key: c8d4c552-fe3f-4f6d-b4c7-019d71669e32

  • Device: Xiaomi Xiaomi MIX 2 chiron

  • Android Version: 8.0.0 API: 26 LeakCanary: 1.6.2 0ebc1fc

  • Durations: watch=5669ms, gc=134ms, heap dump=1176ms, analysis=4615ms

  • Details:

  • Class cn.white.ymc.wanandroidmaster.base.BaseActivity
    | static $classOverhead = byte[4]@317498225 (0x12eca371)
    | static netEvent = cn.white.ymc.wanandroidmaster.ui.home.HomeActivity@317493480 (0x12ec90e8)

  • Instance of cn.white.ymc.wanandroidmaster.ui.home.HomeActivity
    | static $classOverhead = byte[4288]@317493817 (0x12ec9239)
    | floatButton = android.support.design.widget.FloatingActionButton@317682920 (0x12ef74e8)
    | fragmentList = java.util.ArrayList@317683536 (0x12ef7750)
    | frameLayout = android.widget.FrameLayout@317683560 (0x12ef7768)
    | lastIndex = 0
    | mExitTime = 0
    | mOnNavigationItemSelectedListener = cn.white.ymc.wanandroidmaster.ui.home.HomeActivity$1@317684208 (0x12ef79f0)
    | navigation = android.support.design.widget.BottomNavigationView@317684224 (0x12ef7a00)
    | toolbarCommon = android.support.v7.widget.Toolbar@317684896 (0x12ef7ca0)
    | activity = cn.white.ymc.wanandroidmaster.ui.home.HomeActivity@317493480 (0x12ec90e8)
    | appDavikActivityUtil = cn.white.ymc.wanandroidmaster.util.davik.AppDavikActivityUtil@317685672 (0x12ef7fa8)
    | bun = cn.white.ymc.wanandroidmaster.ui.home.HomeActivity_ViewBinding@317685680 (0x12ef7fb0)
    | context = cn.white.ymc.wanandroidmaster.base.MyApplication@317620144 (0x12ee7fb0)
    | mDelegate = android.support.v7.app.AppCompatDelegateImplN@317685696 (0x12ef7fc0)
    | mResources = null
    | mThemeId = 2131624234
    | mCreated = true
    | mFragments = android.support.v4.app.FragmentController@317685840 (0x12ef8050)
    | mHandler = android.support.v4.app.FragmentActivity$1@317685856 (0x12ef8060)
    | mLoaderManager = null
    | mNextCandidateRequestIndex = 0
    | mPendingFragmentActivityResults = android.support.v4.util.SparseArrayCompat@317685888 (0x12ef8080)
    | mReallyStopped = false
    | mRequestedPermissionsFromFragment = false
    | mResumed = true
    | mRetaining = false
    | mStopped = false
    | mViewModelStore = null
    | mStartedActivityFromFragment = false
    | mStartedIntentSenderFromFragment = false
    | mExtraDataMap = android.support.v4.util.SimpleArrayMap@317685912 (0x12ef8098)
    | mLifecycleRegistry = android.arch.lifecycle.LifecycleRegistry@317685936 (0x12ef80b0)
    | mActionBar = null
    | mActionModeTypeStarting = 0
    | mActivityInfo = android.content.pm.ActivityInfo@317685968 (0x12ef80d0)
    | mActivityTransitionState = android.app.ActivityTransitionState@317686120 (0x12ef8168)
    | mApplication = cn.white.ymc.wanandroidmaster.base.MyApplication@317620144 (0x12ee7fb0)
    | mAutoFillResetNeeded = false
    | mAutofillManager = null
    | mAutofillPopupWindow = null
    | mCalled = true
    | mChangeCanvasToTranslucent = false
    | mChangingConfigurations = false
    | mComponent = android.content.ComponentName@317686176 (0x12ef81a0)
    | mConfigChangeFlags = 0
    | mCurrentConfig = android.content.res.Configuration@317686192 (0x12ef81b0)
    | mDecor = com.android.internal.policy.DecorView@317456680 (0x12ec0128)
    | mDefaultKeyMode = 0
    | mDefaultKeySsb = null
    | mDestroyed = false
    | mDoReportFullyDrawn = false
    | mEmbeddedID = null
    | mEnableDefaultActionBarUp = false
    | mEnterTransitionListener = android.app.SharedElementCallback$1@1872954312 (0x6fa303c8)
    | mExitTransitionListener = android.app.SharedElementCallback$1@1872954312 (0x6fa303c8)
    | mFinished = false
    | mFragments = android.app.FragmentController@317686312 (0x12ef8228)
    | mHandler = android.os.Handler@317686328 (0x12ef8238)
    | mHasCurrentPermissionsRequest = false
    | mIdent = 247401085
    | mInstanceTracker = android.os.StrictMode$InstanceTracker@317686360 (0x12ef8258)
    | mInstrumentation = android.app.Instrumentation@317686376 (0x12ef8268)
    | mIntent = android.content.Intent@317686448 (0x12ef82b0)
    | mInterceptor = miui.contentcatcher.InterceptorProxy@317511208 (0x12ecd628)
    | mLastAutofillId = 1073741823
    | mLastNonConfigurationInstances = null
    | mMainThread = android.app.ActivityThread@317458968 (0x12ec0a18)
    | mManagedCursors = java.util.ArrayList@317686520 (0x12ef82f8)
    | mManagedDialogs = null
    | mMenuInflater = null
    | mParent = null
    | mReferrer = "cn.white.ymc.wanandroidmaster"
    | mResultCode = 0
    | mResultData = null
    | mResumed = true
    | mSearchEvent = null
    | mSearchManager = null
    | mStartedActivity = false
    | mStopped = false
    | mTaskDescription = android.app.ActivityManager$TaskDescription@317686592 (0x12ef8340)
    | mTemporaryPause = false
    | mTitle = "WanAndroid"
    | mTitleColor = 0
    | mTitleReady = true
    | mToken = android.os.BinderProxy@317682592 (0x12ef73a0)
    | mTranslucentCallback = null
    | mUiThread = java.lang.Thread@1930491856 (0x7310f7d0)
    | mVisibleBehind = false
    | mVisibleFromClient = true
    | mVisibleFromServer = true
    | mVoiceInteractor = null
    | mWindow = com.android.internal.policy.PhoneWindow@317493112 (0x12ec8f78)
    | mWindowAdded = true
    | mWindowManager = android.view.WindowManagerImpl@317682832 (0x12ef7490)
    | mInflater = com.android.internal.policy.PhoneLayoutInflater@317682016 (0x12ef7160)
    | mOverrideConfiguration = null
    | mResources = android.content.res.MiuiResources@317686632 (0x12ef8368)
    | mTheme = android.content.res.Resources$Theme@317686680 (0x12ef8398)
    | mThemeResource = 2131624234
    | mBase = android.app.ContextImpl@317686696 (0x12ef83a8)
    | shadow$klass = cn.white.ymc.wanandroidmaster.ui.home.HomeActivity
    | shadow$monitor = -2000022903

  • Excluded Refs:
    | Field: android.os.Message.obj
    | Field: android.os.Message.next
    | Field: android.os.Message.target
    | Field: android.view.inputmethod.InputMethodManager.mNextServedView
    | Field: android.view.inputmethod.InputMethodManager.mServedView
    | Field: android.view.inputmethod.InputMethodManager.mServedInputConnection
    | Field: android.view.inputmethod.InputMethodManager.mCurRootView
    | Field: android.accounts.AccountManager$AmsTask$Response.this$1
    | Field: android.view.accessibility.AccessibilityNodeInfo.mOriginalText
    | Field: com.android.internal.policy.BackdropFrameRenderer.mDecorView
    | 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)」
    —————————

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions