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

LeakCanary: BathService has leaked #103

Open
AChep opened this issue Sep 3, 2015 · 0 comments
Open

LeakCanary: BathService has leaked #103

AChep opened this issue Sep 3, 2015 · 0 comments

Comments

@AChep
Copy link
Owner

AChep commented Sep 3, 2015

In com.achep.acdisplay:4.0-debug:77.
* com.achep.acdisplay.services.BathService has leaked:
* GC ROOT static android.os.UserManager.sInstance
* references android.os.UserManager.mContext
* references android.app.ContextImpl.mOuterContext
* leaks com.achep.acdisplay.services.BathService instance

* Reference Key: 6bc76298-0946-47bf-bd7d-ddb498830ba9
* Device: LGE google Nexus 4 occam
* Android Version: 5.1.1 API: 22 LeakCanary: 1.3.1
* Durations: watch=5432ms, gc=157ms, heap dump=6108ms, analysis=34855ms

* Details:
* Class android.os.UserManager
|   static $staticOverhead = byte[] [id=0x704b2ef9;length=272;size=288]
|   static DISALLOW_ADD_USER = java.lang.String [id=0x6fc498d8]
|   static DISALLOW_ADJUST_VOLUME = java.lang.String [id=0x6fc2a210]
|   static DISALLOW_APPS_CONTROL = java.lang.String [id=0x6fc49980]
|   static DISALLOW_CONFIG_BLUETOOTH = java.lang.String [id=0x6fc498f0]
|   static DISALLOW_CONFIG_CELL_BROADCASTS = java.lang.String [id=0x6fc49908]
|   static DISALLOW_CONFIG_CREDENTIALS = java.lang.String [id=0x6fc49920]
|   static DISALLOW_CONFIG_MOBILE_NETWORKS = java.lang.String [id=0x6fc49938]
|   static DISALLOW_CONFIG_TETHERING = java.lang.String [id=0x6fc49950]
|   static DISALLOW_CONFIG_VPN = java.lang.String [id=0x6fc2a240]
|   static DISALLOW_CONFIG_WIFI = java.lang.String [id=0x6fc49968]
|   static DISALLOW_CREATE_WINDOWS = java.lang.String [id=0x6fc2a258]
|   static DISALLOW_CROSS_PROFILE_COPY_PASTE = java.lang.String [id=0x6fc49998]
|   static DISALLOW_DEBUGGING_FEATURES = java.lang.String [id=0x6fc499b0]
|   static DISALLOW_FACTORY_RESET = java.lang.String [id=0x6fc499c8]
|   static DISALLOW_INSTALL_APPS = java.lang.String [id=0x6fc499e0]
|   static DISALLOW_INSTALL_UNKNOWN_SOURCES = java.lang.String [id=0x6fc499f8]
|   static DISALLOW_MODIFY_ACCOUNTS = java.lang.String [id=0x6fc49a10]
|   static DISALLOW_MOUNT_PHYSICAL_MEDIA = java.lang.String [id=0x6fc49a58]
|   static DISALLOW_OUTGOING_BEAM = java.lang.String [id=0x6fc49a40]
|   static DISALLOW_OUTGOING_CALLS = java.lang.String [id=0x6fc2a288]
|   static DISALLOW_REMOVE_USER = java.lang.String [id=0x6fc49a70]
|   static DISALLOW_SHARE_LOCATION = java.lang.String [id=0x6fc2a2a0]
|   static DISALLOW_SMS = java.lang.String [id=0x6fc2a2b8]
|   static DISALLOW_SU = java.lang.String [id=0x6fc2a2d0]
|   static DISALLOW_UNINSTALL_APPS = java.lang.String [id=0x6fc49a88]
|   static DISALLOW_UNMUTE_MICROPHONE = java.lang.String [id=0x6fc2a2e8]
|   static DISALLOW_USB_FILE_TRANSFER = java.lang.String [id=0x6fc49aa0]
|   static ENSURE_VERIFY_APPS = java.lang.String [id=0x6fc47898]
|   static KEY_RESTRICTIONS_PENDING = java.lang.String [id=0x6fc4aac0]
|   static PIN_VERIFICATION_FAILED_INCORRECT = -3
|   static PIN_VERIFICATION_FAILED_NOT_SET = -2
|   static PIN_VERIFICATION_SUCCESS = -1
|   static TAG = java.lang.String [id=0x6fc44070]
|   static sInstance = android.os.UserManager [id=0x12d7d570]
* Instance of android.os.UserManager
|   static $staticOverhead = byte[] [id=0x704b2ef9;length=272;size=288]
|   static DISALLOW_ADD_USER = java.lang.String [id=0x6fc498d8]
|   static DISALLOW_ADJUST_VOLUME = java.lang.String [id=0x6fc2a210]
|   static DISALLOW_APPS_CONTROL = java.lang.String [id=0x6fc49980]
|   static DISALLOW_CONFIG_BLUETOOTH = java.lang.String [id=0x6fc498f0]
|   static DISALLOW_CONFIG_CELL_BROADCASTS = java.lang.String [id=0x6fc49908]
|   static DISALLOW_CONFIG_CREDENTIALS = java.lang.String [id=0x6fc49920]
|   static DISALLOW_CONFIG_MOBILE_NETWORKS = java.lang.String [id=0x6fc49938]
|   static DISALLOW_CONFIG_TETHERING = java.lang.String [id=0x6fc49950]
|   static DISALLOW_CONFIG_VPN = java.lang.String [id=0x6fc2a240]
|   static DISALLOW_CONFIG_WIFI = java.lang.String [id=0x6fc49968]
|   static DISALLOW_CREATE_WINDOWS = java.lang.String [id=0x6fc2a258]
|   static DISALLOW_CROSS_PROFILE_COPY_PASTE = java.lang.String [id=0x6fc49998]
|   static DISALLOW_DEBUGGING_FEATURES = java.lang.String [id=0x6fc499b0]
|   static DISALLOW_FACTORY_RESET = java.lang.String [id=0x6fc499c8]
|   static DISALLOW_INSTALL_APPS = java.lang.String [id=0x6fc499e0]
|   static DISALLOW_INSTALL_UNKNOWN_SOURCES = java.lang.String [id=0x6fc499f8]
|   static DISALLOW_MODIFY_ACCOUNTS = java.lang.String [id=0x6fc49a10]
|   static DISALLOW_MOUNT_PHYSICAL_MEDIA = java.lang.String [id=0x6fc49a58]
|   static DISALLOW_OUTGOING_BEAM = java.lang.String [id=0x6fc49a40]
|   static DISALLOW_OUTGOING_CALLS = java.lang.String [id=0x6fc2a288]
|   static DISALLOW_REMOVE_USER = java.lang.String [id=0x6fc49a70]
|   static DISALLOW_SHARE_LOCATION = java.lang.String [id=0x6fc2a2a0]
|   static DISALLOW_SMS = java.lang.String [id=0x6fc2a2b8]
|   static DISALLOW_SU = java.lang.String [id=0x6fc2a2d0]
|   static DISALLOW_UNINSTALL_APPS = java.lang.String [id=0x6fc49a88]
|   static DISALLOW_UNMUTE_MICROPHONE = java.lang.String [id=0x6fc2a2e8]
|   static DISALLOW_USB_FILE_TRANSFER = java.lang.String [id=0x6fc49aa0]
|   static ENSURE_VERIFY_APPS = java.lang.String [id=0x6fc47898]
|   static KEY_RESTRICTIONS_PENDING = java.lang.String [id=0x6fc4aac0]
|   static PIN_VERIFICATION_FAILED_INCORRECT = -3
|   static PIN_VERIFICATION_FAILED_NOT_SET = -2
|   static PIN_VERIFICATION_SUCCESS = -1
|   static TAG = java.lang.String [id=0x6fc44070]
|   static sInstance = android.os.UserManager [id=0x12d7d570]
|   mContext = android.app.ContextImpl [id=0x12d70500]
|   mService = android.os.IUserManager$Stub$Proxy [id=0x12d7d560]
* Instance of android.app.ContextImpl
|   static $staticOverhead = byte[] [id=0x704b9a29;length=56;size=72]
|   static DEBUG = false
|   static EMPTY_FILE_LIST = java.lang.String[] [id=0x70359c10;length=0]
|   static SYSTEM_SERVICE_MAP = java.util.HashMap [id=0x7035a590]
|   static TAG = java.lang.String [id=0x6fbf9d30]
|   static WALLPAPER_FETCHER = android.app.ContextImpl$1 [id=0x703516d0]
|   static sNextPerContextServiceCacheIndex = 60
|   static sSharedPrefs = android.util.ArrayMap [id=0x12d670c0]
|   mActivityToken = null
|   mBasePackageName = java.lang.String [id=0x12c65120]
|   mCacheDir = null
|   mCodeCacheDir = null
|   mContentResolver = android.app.ContextImpl$ApplicationContentResolver [id=0x12d77880]
|   mDatabasesDir = null
|   mDisplay = null
|   mDisplayAdjustments = android.view.DisplayAdjustments [id=0x12d6dae0]
|   mExternalCacheDirs = null
|   mExternalFilesDirs = null
|   mExternalMediaDirs = null
|   mExternalObbDirs = null
|   mFilesDir = null
|   mMainThread = android.app.ActivityThread [id=0x12c41100]
|   mNoBackupFilesDir = null
|   mOpPackageName = java.lang.String [id=0x12c65120]
|   mOuterContext = com.achep.acdisplay.services.BathService [id=0x12d71f80]
|   mOverrideConfiguration = null
|   mPackageInfo = android.app.LoadedApk [id=0x12c044a0]
|   mPackageManager = android.app.ApplicationPackageManager [id=0x12d7fd80]
|   mPreferencesDir = null
|   mReceiverRestrictedContext = null
|   mResources = android.content.res.Resources [id=0x12c07b20]
|   mResourcesManager = android.app.ResourcesManager [id=0x12c68fe0]
|   mRestricted = false
|   mServiceCache = java.util.ArrayList [id=0x12d77860]
|   mSync = java.lang.Object [id=0x12d6daf0]
|   mTheme = null
|   mThemeResource = 0
|   mUser = android.os.UserHandle [id=0x12d6db00]
* Instance of com.achep.acdisplay.services.BathService
|   static $staticOverhead = byte[] [id=0x12d19801;length=64;size=80]
|   static ACTION_ADD_SERVICE = java.lang.String [id=0x12d76620]
|   static ACTION_REMOVE_SERVICE = java.lang.String [id=0x12d76640]
|   static EXTRA_SERVICE_CLASS = java.lang.String [id=0x6fbbe8d0]
|   static TAG = java.lang.String [id=0x12d766a0]
|   static monitor = java.lang.Object [id=0x12d6d720]
|   static sCreated = false
|   static sRunning = false
|   static sServiceMap = java.util.concurrent.ConcurrentHashMap [id=0x12d71400]
|   mLanguage = java.lang.String [id=0x12c65500]
|   mLocalBroadcastManager = android.support.v4.content.LocalBroadcastManager [id=0x12d77ac0]
|   mMap = java.util.HashMap [id=0x12d75220]
|   mNotificationManager = android.app.NotificationManager [id=0x12d6db10]
|   mReceiver = com.achep.acdisplay.services.BathService$1 [id=0x12d77840]
|   mActivityManager = android.app.ActivityManagerProxy [id=0x12c0b8f0]
|   mApplication = com.achep.acdisplay.App [id=0x12d363e0]
|   mClassName = java.lang.String [id=0x12c623c0]
|   mStartCompatibility = false
|   mThread = android.app.ActivityThread [id=0x12c41100]
|   mToken = android.os.BinderProxy [id=0x12c62380]
|   mBase = android.app.ContextImpl [id=0x12d70500]
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

1 participant