{"action":"created","issue":{"url":"https://api.github.com/repos/sangcomz/FishBun/issues/7","labels_url":"https://api.github.com/repos/sangcomz/FishBun/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/sangcomz/FishBun/issues/7/comments","events_url":"https://api.github.com/repos/sangcomz/FishBun/issues/7/events","html_url":"https://github.com/sangcomz/FishBun/issues/7","id":120008376,"number":7,"title":"Memory leak in BaseProperty","user":{"login":"sohayb","id":2195533,"avatar_url":"https://avatars.githubusercontent.com/u/2195533?v=3","gravatar_id":"","url":"https://api.github.com/users/sohayb","html_url":"https://github.com/sohayb","followers_url":"https://api.github.com/users/sohayb/followers","following_url":"https://api.github.com/users/sohayb/following{/other_user}","gists_url":"https://api.github.com/users/sohayb/gists{/gist_id}","starred_url":"https://api.github.com/users/sohayb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohayb/subscriptions","organizations_url":"https://api.github.com/users/sohayb/orgs","repos_url":"https://api.github.com/users/sohayb/repos","events_url":"https://api.github.com/users/sohayb/events{/privacy}","received_events_url":"https://api.github.com/users/sohayb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sangcomz/FishBun/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-02T18:39:39Z","updated_at":"2015-12-30T05:51:49Z","closed_at":null,"body":"Hello, I got a leak from the BaseProperty in FishBun class. Below is what I got from LeakCanary:\r\n````\r\nIn com.bla:1.0:1.\r\n* com.bla.activities.CreateAdActivity has leaked:\r\n* GC ROOT static com.sangcomz.fishbun.FishBun.baseProperty\r\n* references com.sangcomz.fishbun.FishBun$BaseProperty.context\r\n* leaks com.bla.activities.CreateAdActivity instance\r\n\r\n* Reference Key: 29e7fa3b-8067-4189-8d00-f564c57888bd\r\n* Device: Genymotion generic Google Nexus 5 - 5.1.0 - API 22 - 1080x1920 vbox86p\r\n* Android Version: 5.1 API: 22 LeakCanary: 1.3.1\r\n* Durations: watch=5010ms, gc=113ms, heap dump=650ms, analysis=2721ms\r\n\r\n* Details:\r\n* Class com.sangcomz.fishbun.FishBun\r\n|   static $staticOverhead = byte[] [id=0x1317fb41;length=8;size=24]\r\n|   static baseProperty = com.sangcomz.fishbun.FishBun$BaseProperty [id=0x12e554d0]\r\n* Instance of com.sangcomz.fishbun.FishBun$BaseProperty\r\n|   arrayPaths = java.util.ArrayList [id=0x12c269e0]\r\n|   context = com.bla.activities.CreateAdActivity [id=0x12d6f180]\r\n* Instance of com.bla.activities.CreateAdActivity\r\n|   mAddImageButton = android.support.v7.widget.AppCompatImageButton [id=0x13151800]\r\n|   mButtonContainer = android.widget.FrameLayout [id=0x13151400]\r\n|   mImageContainer = android.widget.RelativeLayout [id=0x13150400]\r\n|   mImageView = android.support.v7.widget.AppCompatImageView [id=0x13150800]\r\n|   mPaths = java.util.ArrayList [id=0x13046d20]\r\n|   mProgressBar = me.zhanghai.android.materialprogressbar.MaterialProgressBar [id=0x13150c00]\r\n|   mSubCategory = com.bla.models.SubCategory [id=0x1319df60]\r\n|   mToolbar = android.support.v7.widget.Toolbar [id=0x1314e000]\r\n|   metEmail = com.bla.utilities.ui.MaterialEditText [id=0x1319e3c0]\r\n|   mDelegate = android.support.v7.app.AppCompatDelegateImplV14 [id=0x13159dd0]\r\n|   mCreated = true\r\n|   mFragments = android.support.v4.app.FragmentController [id=0x130365f0]\r\n|   mHandler = android.support.v4.app.FragmentActivity$1 [id=0x13163fe0]\r\n|   mMediaController = null\r\n|   mOptionsMenuInvalidated = false\r\n|   mReallyStopped = true\r\n|   mRequestedPermissionsFromFragment = false\r\n|   mResumed = false\r\n|   mRetaining = false\r\n|   mStopped = true\r\n|   mActionBar = null\r\n|   mActivityInfo = android.content.pm.ActivityInfo [id=0x12f6b180]\r\n|   mActivityTransitionState = android.app.ActivityTransitionState [id=0x130240c0]\r\n|   mAllLoaderManagers = android.util.ArrayMap [id=0x1319eb60]\r\n|   mApplication = com.bla.BlaApplication [id=0x12c84910]\r\n|   mCalled = true\r\n|   mChangeCanvasToTranslucent = false\r\n|   mChangingConfigurations = false\r\n|   mCheckedForLoaderManager = true\r\n|   mComponent = android.content.ComponentName [id=0x130b4080]\r\n|   mConfigChangeFlags = 0\r\n|   mContainer = android.app.Activity$1 [id=0x130365c0]\r\n|   mCurrentConfig = android.content.res.Configuration [id=0x130a8e20]\r\n|   mDecor = null\r\n|   mDefaultKeyMode = 0\r\n|   mDefaultKeySsb = null\r\n|   mDestroyed = true\r\n|   mDoReportFullyDrawn = false\r\n|   mEmbeddedID = null\r\n|   mEnableDefaultActionBarUp = false\r\n|   mEnterTransitionListener = android.app.SharedElementCallback$1 [id=0x7169c768]\r\n|   mExitTransitionListener = android.app.SharedElementCallback$1 [id=0x7169c768]\r\n|   mFinished = true\r\n|   mFragments = android.app.FragmentManagerImpl [id=0x12f39580]\r\n|   mHandler = android.os.Handler [id=0x13163fc0]\r\n|   mIdent = 874714590\r\n|   mInstanceTracker = android.os.StrictMode$InstanceTracker [id=0x130365d0]\r\n|   mInstrumentation = android.app.Instrumentation [id=0x12c58fb0]\r\n|   mIntent = android.content.Intent [id=0x13021080]\r\n|   mLastNonConfigurationInstances = null\r\n|   mLoaderManager = null\r\n|   mLoadersStarted = false\r\n|   mMainThread = android.app.ActivityThread [id=0x12c3d100]\r\n|   mManagedCursors = java.util.ArrayList [id=0x13163f80]\r\n|   mManagedDialogs = null\r\n|   mMenuInflater = null\r\n|   mParent = null\r\n|   mReferrer = java.lang.String [id=0x12c7b5e0]\r\n|   mResultCode = 0\r\n|   mResultData = null\r\n|   mResumed = false\r\n|   mSearchManager = null\r\n|   mStartedActivity = false\r\n|   mStopped = true\r\n|   mTemporaryPause = false\r\n|   mTitle = java.lang.String [id=0x12e85640]\r\n|   mTitleColor = 0\r\n|   mTitleReady = true\r\n|   mToken = android.os.BinderProxy [id=0x12c7b1c0]\r\n|   mTranslucentCallback = null\r\n|   mUiThread = java.lang.Thread [id=0x74d52000]\r\n|   mVisibleBehind = false\r\n|   mVisibleFromClient = true\r\n|   mVisibleFromServer = true\r\n|   mVoiceInteractor = null\r\n|   mWindow = com.android.internal.policy.impl.PhoneWindow [id=0x12d5ae00]\r\n|   mWindowAdded = true\r\n|   mWindowManager = android.view.WindowManagerImpl [id=0x13167200]\r\n|   mInflater = com.android.internal.policy.impl.PhoneLayoutInflater [id=0x13162c40]\r\n|   mOverrideConfiguration = null\r\n|   mResources = android.content.res.Resources [id=0x12c068e0]\r\n|   mTheme = android.content.res.Resources$Theme [id=0x13167220]\r\n|   mThemeResource = 2131427383\r\n|   mBase = android.app.ContextImpl [id=0x12f27900]\r\n````\r\nthanks a lot"},"comment":{"url":"https://api.github.com/repos/sangcomz/FishBun/issues/comments/167941460","html_url":"https://github.com/sangcomz/FishBun/issues/7#issuecomment-167941460","issue_url":"https://api.github.com/repos/sangcomz/FishBun/issues/7","id":167941460,"user":{"login":"super-mario123","id":7745890,"avatar_url":"https://avatars.githubusercontent.com/u/7745890?v=3","gravatar_id":"","url":"https://api.github.com/users/super-mario123","html_url":"https://github.com/super-mario123","followers_url":"https://api.github.com/users/super-mario123/followers","following_url":"https://api.github.com/users/super-mario123/following{/other_user}","gists_url":"https://api.github.com/users/super-mario123/gists{/gist_id}","starred_url":"https://api.github.com/users/super-mario123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/super-mario123/subscriptions","organizations_url":"https://api.github.com/users/super-mario123/orgs","repos_url":"https://api.github.com/users/super-mario123/repos","events_url":"https://api.github.com/users/super-mario123/events{/privacy}","received_events_url":"https://api.github.com/users/super-mario123/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T05:51:49Z","updated_at":"2015-12-30T05:51:49Z","body":"@sangcomz every time it occured, I run in device,and used LeakCanary."}}