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

Can't avoid this leak #296

Closed
vbevans94 opened this issue Oct 2, 2015 · 1 comment
Closed

Can't avoid this leak #296

vbevans94 opened this issue Oct 2, 2015 · 1 comment

Comments

@vbevans94
Copy link

 In com.alterplay.mockupio.debug:1.2:4.
 * com.alterplay.mockupio.ui.activity.CreateEditProjectActivity has leaked:
 * GC ROOT android.view.Choreographer$FrameDisplayEventReceiver.mMessageQueue
 * references android.os.MessageQueue.mMessages
 * references android.os.Message.callback
 * references android.widget.Editor$Blink.this$0
 * references android.widget.Editor.mTextView
 * references com.alterplay.custompat.APEditText.mContext
 * leaks com.alterplay.mockupio.ui.activity.CreateEditProjectActivity instance
 * Reference Key: ff674f0e-72de-494f-b858-46374ae95818
 * Device: LGE google Nexus 4 occam
 * Android Version: 5.1.1 API: 22 LeakCanary: 1.3.1
 * Durations: watch=5001ms, gc=210ms, heap dump=4585ms, analysis=23514ms
 * Details:
 * Instance of android.view.Choreographer$FrameDisplayEventReceiver
 |   mFrame = 335656
 |   mHavePendingVsync = false
 |   mTimestampNanos = 45415245501194
 |   this$0 = android.view.Choreographer [id=0x12dd5c00]
 |   mCloseGuard = dalvik.system.CloseGuard [id=0x705d7708]
 |   mMessageQueue = android.os.MessageQueue [id=0x12c7be80]
 |   mReceiverPtr = -1213555120
 * Instance of android.os.MessageQueue
 |   mBlocked = false
 |   mIdleHandlers = java.util.ArrayList [id=0x12c7cbe0]
 |   mMessages = android.os.Message [id=0x12c811c0]
 |   mNextBarrierToken = 196
 |   mPendingIdleHandlers = android.os.MessageQueue$IdleHandler[] [id=0x12ded980;length=4]
 |   mPtr = -1214695808
 |   mQuitAllowed = false
 |   mQuitting = false
 * Instance of android.os.Message
 |   static $staticOverhead = byte[] [id=0x70746819;length=72;size=88]
 |   static CREATOR = android.os.Message$1 [id=0x705f7928]
 |   static FLAGS_TO_CLEAR_ON_COPY_FROM = 1
 |   static FLAG_ASYNCHRONOUS = 2
 |   static FLAG_IN_USE = 1
 |   static MAX_POOL_SIZE = 50
 |   static gCheckRecycle = true
 |   static sPool = android.os.Message [id=0x12ece080]
 |   static sPoolSize = 22
 |   static sPoolSync = java.lang.Object [id=0x705f7920]
 |   arg1 = 0
 |   arg2 = 0
 |   callback = android.widget.Editor$Blink [id=0x12df3640]
 |   data = null
 |   flags = 1
 |   next = android.os.Message [id=0x12f3c0c0]
 |   obj = null
 |   replyTo = null
 |   sendingUid = -1
 |   target = android.widget.Editor$Blink [id=0x12df3640]
 |   what = 0
 |   when = 45415764
 * Instance of android.widget.Editor$Blink
 |   mCancelled = false
 |   this$0 = android.widget.Editor [id=0x12c41100]
 |   mAsynchronous = false
 |   mCallback = null
 |   mLooper = android.os.Looper [id=0x12c7cbc0]
 |   mMessenger = null
 |   mQueue = android.os.MessageQueue [id=0x12c7be80]
 * Instance of android.widget.Editor
 |   static $staticOverhead = byte[] [id=0x7074b1f9;length=56;size=72]
 |   static BLINK = 500
 |   static DEBUG_UNDO = false
 |   static DRAG_SHADOW_MAX_TEXT_LENGTH = 20
 |   static EXTRACT_NOTHING = -2
 |   static EXTRACT_UNKNOWN = -1
 |   static TAG = java.lang.String [id=0x6fee1d10]
 |   static TEMP_POSITION = float[] [id=0x705f5ab0;length=2;size=24]
 |   mBlink = android.widget.Editor$Blink [id=0x12df3640]
 |   mCorrectionHighlighter = null
 |   mCreatedWithASelection = false
 |   mCursorAnchorInfoNotifier = android.widget.Editor$CursorAnchorInfoNotifier [id=0x12d7a8a0]
 |   mCursorCount = 0
 |   mCursorDrawable = android.graphics.drawable.Drawable[] [id=0x12d7a880;length=2]
 |   mCursorVisible = true
 |   mCustomSelectionActionModeCallback = null
 |   mDiscardNextActionUp = false
 |   mError = null
 |   mErrorPopup = null
 |   mErrorWasChanged = false
 |   mFrozenWithFocus = false
 |   mIgnoreActionUpEvent = false
 |   mInBatchEditControllers = false
 |   mInputContentType = null
 |   mInputMethodState = null
 |   mInputType = 8193
 |   mInsertionControllerEnabled = false
 |   mInsertionPointCursorController = null
 |   mKeyListener = android.text.method.TextKeyListener [id=0x12d92aa0]
 |   mLastDownPositionX = 0.0
 |   mLastDownPositionY = 0.0
 |   mPositionListener = null
 |   mPreserveDetachedSelection = false
 |   mSelectAllOnFocus = false
 |   mSelectHandleCenter = null
 |   mSelectHandleLeft = null
 |   mSelectHandleRight = null
 |   mSelectionActionMode = null
 |   mSelectionControllerEnabled = false
 |   mSelectionModifierCursorController = null
 |   mSelectionMoved = false
 |   mShowCursor = 45409621
 |   mShowErrorAfterAttach = false
 |   mShowSoftInputOnFocus = true
 |   mShowSuggestionRunnable = null
 |   mSpanController = android.widget.Editor$SpanController [id=0x12d7a960]
 |   mSpellChecker = null
 |   mSuggestionRangeSpan = null
 |   mSuggestionsPopupWindow = null
 |   mTempRect = null
 |   mTemporaryDetach = false
 |   mTextDisplayLists = null
 |   mTextIsSelectable = false
 |   mTextView = com.alterplay.custompat.APEditText [id=0x1302d400]
 |   mTouchFocusSelected = false
 |   mUndoInputFilter = null
 |   mUndoManager = null
 |   mUndoOwner = null
 |   mWordIterator = null
 * Instance of com.alterplay.custompat.APEditText
 |   static $staticOverhead = byte[] [id=0x12e78001;length=8;size=24]
 |   static ERROR_STATE = int[] [id=0x12e74130;length=1;size=16]
 |   isError = false
 |   mAllowTransformationLengthChange = false
 |   mAutoLinkMask = 0
 |   mBoring = null
 |   mBufferType = android.widget.TextView$BufferType [id=0x705f4e10]
 |   mChangeWatcher = android.widget.TextView$ChangeWatcher [id=0x12d46fd0]
 |   mCharWrapper = null
 |   mCurHintTextColor = -5000269
 |   mCurTextColor = -13421773
 |   mCurrentSpellCheckerLocaleCache = null
 |   mCursorDrawableRes = 17303287
 |   mDeferScroll = -1
 |   mDesiredHeightAtMeasure = -1
 |   mDispatchTemporaryDetach = false
 |   mDrawables = null
 |   mEditableFactory = android.text.Editable$Factory [id=0x705f3e78]
 |   mEditor = android.widget.Editor [id=0x12c41100]
 |   mEllipsize = null
 |   mFilters = android.text.InputFilter[] [id=0x73f10fa8;length=0]
 |   mFreezesText = false
 |   mGravity = 8388627
 |   mHighlightColor = 1711314568
 |   mHighlightPaint = android.graphics.Paint [id=0x12c6ce70]
 |   mHighlightPath = null
 |   mHighlightPathBogus = true
 |   mHint = java.lang.String [id=0x12d87c80]
 |   mHintBoring = null
 |   mHintLayout = null
 |   mHintTextColor = android.content.res.ColorStateList [id=0x12f4e400]
 |   mHorizontallyScrolling = true
 |   mIncludePad = true
 |   mLastLayoutDirection = -1
 |   mLastScroll = 0
 |   mLayout = null
 |   mLinkTextColor = android.content.res.ColorStateList [id=0x12e75c20]
 |   mLinksClickable = true
 |   mListeners = null
 |   mMarquee = null
 |   mMarqueeFadeMode = 0
 |   mMarqueeRepeatLimit = 3
 |   mMaxMode = 1
 |   mMaxWidth = 2147483647
 |   mMaxWidthMode = 2
 |   mMaximum = 1
 |   mMinMode = 1
 |   mMinWidth = 0
 |   mMinWidthMode = 2
 |   mMinimum = 1
 |   mMovement = android.text.method.ArrowKeyMovementMethod [id=0x12e741d0]
 |   mOldMaxMode = 1
 |   mOldMaximum = 2147483647
 |   mPreDrawListenerDetached = false
 |   mPreDrawRegistered = true
 |   mPreventDefaultMovement = false
 |   mRestartMarquee = false
 |   mSavedHintLayout = null
 |   mSavedLayout = null
 |   mSavedMarqueeModeLayout = null
 |   mScroller = null
 |   mShadowColor = 0
 |   mShadowDx = 0.0
 |   mShadowDy = 0.0
 |   mShadowRadius = 0.0
 |   mSingleLine = true
 |   mSpacingAdd = 0.0
 |   mSpacingMult = 1.0
 |   mSpannableFactory = android.text.Spannable$Factory [id=0x705f3ef0]
 |   mTempRect = null
 |   mTemporaryDetach = false
 |   mText = android.text.SpannableStringBuilder [id=0x12df3190]
 |   mTextColor = android.content.res.ColorStateList [id=0x12d7a760]
 |   mTextDir = android.text.TextDirectionHeuristics$TextDirectionHeuristicInternal [id=0x705f3f70]
 |   mTextEditSuggestionItemLayout = 17367260
 |   mTextPaint = android.text.TextPaint [id=0x12c056d0]
 |   mTextSelectHandleLeftRes = 17303293
 |   mTextSelectHandleRes = 17303296
 |   mTextSelectHandleRightRes = 17303299
 |   mTransformation = android.text.method.SingleLineTransformationMethod [id=0x12e742c0]
 |   mTransformed = android.text.method.ReplacementTransformationMethod$SpannedReplacementCharSequence [id=0x12de4280]
 |   mUserSetTextScaleX = false
 |   mAccessibilityCursorPosition = -1
 |   mAccessibilityDelegate = null
 |   mAccessibilityTraversalAfterId = -1
 |   mAccessibilityTraversalBeforeId = -1
 |   mAccessibilityViewId = -1
 |   mAnimator = null
 |   mAttachInfo = null
 |   mAttributes = null
 |   mBackground = android.graphics.drawable.InsetDrawable [id=0x12d672b0]
 |   mBackgroundRenderNode = null
 |   mBackgroundResource = 2130837613
 |   mBackgroundSizeChanged = true
 |   mBackgroundTint = null
 |   mBottom = 0
 |   mCachingFailed = false
 |   mClipBounds = null
 |   mContentDescription = null
 |   mContext = com.alterplay.mockupio.ui.activity.CreateEditProjectActivity [id=0x12da12f0]
 |   mCurrentAnimation = null
 |   mDrawableState = int[] [id=0x12de47e0;length=3;size=24]
 |   mDrawingCache = null
 |   mDrawingCacheBackgroundColor = 0
 |   mFloatingTreeObserver = android.view.ViewTreeObserver [id=0x12c81c40]
 |   mGhostView = null
 |   mHasPerformedLongPress = false
 |   mID = 2131558488
 |   mInputEventConsistencyVerifier = null
 |   mKeyedTags = null
 |   mLabelForId = -1
 |   mLastIsOpaque = false
 |   mLayerPaint = null
 |   mLayerType = 0
 |   mLayoutInsets = null
 |   mLayoutParams = android.widget.LinearLayout$LayoutParams [id=0x12c81f40]
 |   mLeft = 0
 |   mLeftPaddingDefined = true
 |   mListenerInfo = null
 |   mMatchIdPredicate = null
 |   mMatchLabelForPredicate = null
 |   mMeasureCache = null
 |   mMeasuredHeight = 0
 |   mMeasuredWidth = 0
 |   mMinHeight = 0
 |   mMinWidth = 0
 |   mNestedScrollingParent = null
 |   mNextFocusDownId = -1
 |   mNextFocusForwardId = -1
 |   mNextFocusLeftId = -1
 |   mNextFocusRightId = -1
 |   mNextFocusUpId = -1
 |   mOldHeightMeasureSpec = -2147483648
 |   mOldWidthMeasureSpec = -2147483648
 |   mOutlineProvider = android.view.ViewOutlineProvider$1 [id=0x705f4c48]
 |   mOverScrollMode = 1
 |   mOverlay = null
 |   mPaddingBottom = 12
 |   mPaddingLeft = 0
 |   mPaddingRight = 8
 |   mPaddingTop = 20
 |   mParent = android.widget.LinearLayout [id=0x1302c800]
 |   mPendingCheckForLongPress = null
 |   mPendingCheckForTap = null
 |   mPerformClick = null
 |   mPrivateFlags = -2130571262
 |   mPrivateFlags2 = 1188872
 |   mPrivateFlags3 = 0
 |   mRecreateDisplayList = false
 |   mRenderNode = android.view.RenderNode [id=0x12d79e80]
 |   mResources = android.content.res.Resources [id=0x12c078e0]
 |   mRight = 0
 |   mRightPaddingDefined = true
 |   mScrollCache = null
 |   mScrollX = 0
 |   mScrollY = 0
 |   mSendViewScrolledAccessibilityEvent = null
 |   mSendViewStateChangedAccessibilityEvent = null
 |   mSendingHoverAccessibilityEvents = false
 |   mStateListAnimator = null
 |   mSystemUiVisibility = 0
 |   mTag = null
 |   mTempNestedScrollConsumed = null
 |   mTop = 0
 |   mTouchDelegate = null
 |   mTouchSlop = 16
 |   mTransformationInfo = null
 |   mTransientStateCount = 0
 |   mTransitionName = null
 |   mUnscaledDrawingCache = null
 |   mUnsetPressedState = null
 |   mUserPaddingBottom = 12
 |   mUserPaddingEnd = -2147483648
 |   mUserPaddingLeft = 0
 |   mUserPaddingLeftInitial = 0
 |   mUserPaddingRight = 8
 |   mUserPaddingRightInitial = 8
 |   mUserPaddingStart = -2147483648
 |   mVerticalScrollFactor = 0.0
 |   mVerticalScrollbarPosition = 0
 |   mViewFlags = 405028865
 |   mWindowAttachCount = 0
 * Instance of com.alterplay.mockupio.ui.activity.CreateEditProjectActivity
 |   static $staticOverhead = byte[] [id=0x12c27001;length=8;size=24]
 |   static EXTRA_PROJECT_ID = java.lang.String [id=0x12d4bc20]
 |   buttonDelete = com.alterplay.custompat.APButton [id=0x13032400]
 |   editHeight = com.alterplay.custompat.APEditText [id=0x13031c00]
 |   editName = com.alterplay.custompat.APEditText [id=0x1302d400]
 |   editWidth = com.alterplay.custompat.APEditText [id=0x13030800]
 |   layoutScreenSize = android.widget.LinearLayout [id=0x1302e800]
 |   layoutSize = android.widget.LinearLayout [id=0x1302f800]
 |   loadingView = android.widget.FrameLayout [id=0x13032c00]
 |   presenter = com.alterplay.mockupio.ui.activity.CreateEditProjectPresenter [id=0x12c29190]
 |   sizesAdapter = com.alterplay.mockupio.ui.adapter.ScreenSizeSpinnerAdapter [id=0x12ddce20]
 |   spinnerProjectType = android.support.v7.widget.AppCompatSpinner [id=0x1302e400]
 |   spinnerScreenSize = android.support.v7.widget.AppCompatSpinner [id=0x1302f400]
 |   typesAdapter = com.alterplay.mockupio.ui.adapter.ProjectTypeSpinnerAdapter [id=0x12ddcbb0]
 |   requireUpdatePreferences = com.alterplay.mockupio.data.prefs.BooleanPreference [id=0x12d920e0]
 |   mDelegate = android.support.v7.app.AppCompatDelegateImplV14 [id=0x12ef92a0]
 |   mCreated = true
 |   mFragments = android.support.v4.app.FragmentController [id=0x12c74a90]
 |   mHandler = android.support.v4.app.FragmentActivity$1 [id=0x12c8d620]
 |   mOptionsMenuInvalidated = false
 |   mReallyStopped = true
 |   mRequestedPermissionsFromFragment = false
 |   mResumed = false
 |   mRetaining = false
 |   mStopped = true
 |   mActionBar = null
 |   mActivityInfo = android.content.pm.ActivityInfo [id=0x12d54080]
 |   mActivityTransitionState = android.app.ActivityTransitionState [id=0x12c0ac00]
 |   mAllLoaderManagers = android.util.ArrayMap [id=0x12dddaa0]
 |   mApplication = com.alterplay.mockupio.MainApp [id=0x12c8f620]
 |   mCalled = true
 |   mChangeCanvasToTranslucent = false
 |   mChangingConfigurations = false
 |   mCheckedForLoaderManager = true
 |   mComponent = android.content.ComponentName [id=0x12d7d080]
 |   mConfigChangeFlags = 0
 |   mContainer = android.app.Activity$1 [id=0x12c74a60]
 |   mCurrentConfig = android.content.res.Configuration [id=0x12c00580]
 |   mDecor = null
 |   mDefaultKeyMode = 0
 |   mDefaultKeySsb = null
 |   mDestroyed = true
 |   mDoReportFullyDrawn = false
 |   mEmbeddedID = null
 |   mEnableDefaultActionBarUp = false
 |   mEnterTransitionListener = android.app.SharedElementCallback$1 [id=0x705f3c88]
 |   mExitTransitionListener = android.app.SharedElementCallback$1 [id=0x705f3c88]
 |   mFinished = true
 |   mFragments = android.app.FragmentManagerImpl [id=0x12c80ac0]
 |   mHandler = android.os.Handler [id=0x12c8d600]
 |   mIdent = 3384326
 |   mInstanceTracker = android.os.StrictMode$InstanceTracker [id=0x12c74a70]
 |   mInstrumentation = android.app.Instrumentation [id=0x12c6cf10]
 |   mIntent = android.content.Intent [id=0x12d520c0]
 |   mLastNonConfigurationInstances = null
 |   mLoaderManager = null
 |   mLoadersStarted = false
 |   mMainThread = android.app.ActivityThread [id=0x12c35100]
 |   mManagedCursors = java.util.ArrayList [id=0x12c8d5e0]
 |   mManagedDialogs = null
 |   mMenuInflater = null
 |   mParent = null
 |   mReferrer = java.lang.String [id=0x12d53720]
 |   mResultCode = 0
 |   mResultData = null
 |   mResumed = false
 |   mSearchManager = null
 |   mStartedActivity = false
 |   mStopped = true
 |   mTemporaryPause = false
 |   mTitle = java.lang.String [id=0x12d63c20]
 |   mTitleColor = 0
 |   mTitleReady = true
 |   mToken = android.os.BinderProxy [id=0x12d530e0]
 |   mTranslucentCallback = null
 |   mUiThread = java.lang.Thread [id=0x737ac000]
 |   mVisibleBehind = false
 |   mVisibleFromClient = true
 |   mVisibleFromServer = false
 |   mVoiceInteractor = null
 |   mWindow = com.android.internal.policy.impl.PhoneWindow [id=0x12d57b00]
 |   mWindowAdded = false
 |   mWindowManager = android.view.WindowManagerImpl [id=0x12c8da40]
 |   mInflater = com.android.internal.policy.impl.PhoneLayoutInflater [id=0x12c7ef70]
 |   mOverrideConfiguration = null
 |   mResources = android.content.res.Resources [id=0x12c078e0]
 |   mTheme = android.content.res.Resources$Theme [id=0x12c8da60]
 |   mThemeResource = 2131230851
 |   mBase = android.app.ContextImpl [id=0x12c04200]

@pyricau
Copy link
Member

pyricau commented Jan 4, 2016

Duplicates #297

@pyricau pyricau closed this as completed Jan 4, 2016
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