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: MediaService has leaked #104

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

LeakCanary: MediaService has leaked #104

AChep opened this issue Sep 3, 2015 · 2 comments

Comments

@AChep
Copy link
Owner

AChep commented Sep 3, 2015

In com.achep.acdisplay:4.0-debug:77.
* com.achep.acdisplay.services.MediaService has leaked:
* GC ROOT android.service.notification.NotificationListenerService$INotificationListenerWrapper.this$0
* leaks com.achep.acdisplay.services.MediaService instance

* Reference Key: 93186f6d-f36e-4be8-a490-30f8036083dd
* Device: LGE google Nexus 4 occam
* Android Version: 5.1.1 API: 22 LeakCanary: 1.3.1
* Durations: watch=5011ms, gc=130ms, heap dump=5169ms, analysis=26028ms

* Details:
* Instance of android.service.notification.NotificationListenerService$INotificationListenerWrapper
|   this$0 = com.achep.acdisplay.services.MediaService [id=0x12c00e80]
|   mDescriptor = java.lang.String [id=0x6fc18e70]
|   mObject = -1191237640
|   mOwner = android.service.notification.NotificationListenerService$INotificationListenerWrapper [id=0x12e7bac0]
* Instance of com.achep.acdisplay.services.MediaService
|   static $staticOverhead = byte[] [id=0x12d14001;length=16;size=32]
|   static TAG = java.lang.String [id=0x12d7fe60]
|   static sService = com.achep.acdisplay.services.MediaService [id=0x12c0d400]
|   mAudioManager = null
|   mBinder = com.achep.acdisplay.services.MediaService$B [id=0x12e7b9c0]
|   mExternalListener = null
|   mNotificationListener = com.achep.acdisplay.notifications.NotificationListenerLollipop [id=0x12c02ef0]
|   mRegistered = false
|   mRemoteController = null
|   TAG = java.lang.String [id=0x12e7b920]
|   mCurrentUser = 0
|   mNoMan = null
|   mRankingMap = android.service.notification.NotificationListenerService$RankingMap [id=0x12de87a0]
|   mSystemContext = null
|   mWrapper = android.service.notification.NotificationListenerService$INotificationListenerWrapper [id=0x12e7bac0]
|   mActivityManager = android.app.ActivityManagerProxy [id=0x12c268f0]
|   mApplication = com.achep.acdisplay.App [id=0x12d333e0]
|   mClassName = java.lang.String [id=0x12e62e80]
|   mStartCompatibility = false
|   mThread = android.app.ActivityThread [id=0x12c41100]
|   mToken = android.os.BinderProxy [id=0x12e62e40]
|   mBase = android.app.ContextImpl [id=0x12c7da00]
@MM-Lehmann
Copy link

confirmed. had the same issue. Tried to add my gist here directly bu failed. I guess I have to read up on gists first.

In com.achep.acdisplay:4.0-debug:77.
* com.achep.acdisplay.services.MediaService has leaked:
* GC ROOT com.achep.acdisplay.services.MediaService$B.this$0
* leaks com.achep.acdisplay.services.MediaService instance

* Reference Key: 246075e3-2106-469e-ab91-a21b45d7aaf1
* Device: Motorola motorola XT890 XT890
* Android Version: 4.4.4 API: 19 LeakCanary: 1.3.1
* Durations: watch=5003ms, gc=232ms, heap dump=1101ms, analysis=29638ms

* Details:
* Instance of com.achep.acdisplay.services.MediaService$B
|   this$0 = com.achep.acdisplay.services.MediaService [id=0x955c4890]
|   mDescriptor = null
|   mOwner = null
|   mObject = -1197912064
* Instance of com.achep.acdisplay.services.MediaService
|   static $staticOverhead = byte[] [id=0x95289361;length=48;size=64]
|   static TAG = java.lang.String [id=0x95513b80]
|   static sService = com.achep.acdisplay.services.MediaService [id=0x9551e260]
|   mAudioManager = android.media.AudioManager [id=0x955c4fd0]
|   mBinder = com.achep.acdisplay.services.MediaService$B [id=0x955c4a70]
|   mExternalListener = null
|   mNotificationListener = com.achep.acdisplay.notifications.NotificationListenerJellyBeanMR2 [id=0x955c4a60]
|   mRemoteController = android.media.RemoteController [id=0x955c4be0]
|   mRegistered = false
|   TAG = java.lang.String [id=0x955c4a40]
|   mNoMan = null
|   mWrapper = null
|   mActivityManager = android.app.ActivityManagerProxy [id=0x95244780]
|   mApplication = com.achep.acdisplay.App [id=0x95281130]
|   mClassName = java.lang.String [id=0x9523f5b0]
|   mToken = android.os.BinderProxy [id=0x9523f5f0]
|   mThread = android.app.ActivityThread [id=0x952440e0]
|   mStartCompatibility = false
|   mBase = android.app.ContextImpl [id=0x955c4ac0]

@MM-Lehmann
Copy link

This is something a found with a quick search. May it be relevant?
http://stackoverflow.com/questions/12069821/android-service-has-leaked-even-though-it-is-supposedly-not-running

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