-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[YouTubeAndroidPlayerAPI] YouTubeService has leaked IntentReceiver #166
Comments
Getting the same issue with my app |
Same thing here.. |
Did you guys find out anything? I'm getting the same error. |
I am also getting the same error |
Getting the same issue |
Over a year old, any news or updates on this? |
Any updates on this issue? I am experiencing the same issue within an app I am working on. For my particular instance, it only occurs on a Google Pixel (1st Generation) running Android 10. This crash happens within a Google Chrome browser that has no other tabs open, while running no other apps on the phone. Any information would be greatly appreciated! 2019-11-25 13:58:54.358 14281-14281/? E/ActivityThread: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver ahop@1326d50 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver ahop@1326d50 that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1588)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1368)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1515)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1488)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1476)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:627)
at ajiv.<init>(PG:44)
at ajke.get(PG:35)
at bdcx.get(PG:6)
at bdcw.get(PG:3)
at mwx.G(PG:155)
at ahng.a(PG:5)
at ahng.get(PG:4)
at bdcx.get(PG:6)
at mwz.a(PG:3)
at muc.<init>(PG:16)
at com.google.android.apps.youtube.embeddedplayer.service.service.jar.ApiPlayerService.<init>(PG:43)
at com.google.android.apps.youtube.embeddedplayer.service.service.jar.ApiPlayerFactoryService$1.run(PG:2)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2019-11-25 13:58:54.360 14281-14281/? E/ActivityThread: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver ahor@92cc8b4 that was originally registered here. Are you missing a call to unregisterReceiver()?
android.app.IntentReceiverLeaked: Service com.google.android.youtube.api.service.YouTubeService has leaked IntentReceiver ahor@92cc8b4 that was originally registered here. Are you missing a call to unregisterReceiver()?
at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1588)
at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1368)
at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1515)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1488)
at android.app.ContextImpl.registerReceiver(ContextImpl.java:1476)
at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:627)
at ahor.a(PG:12)
at ahow.<init>(PG:11)
at ahox.a(PG:9)
at ajke.get(PG:33)
at bdcx.get(PG:6)
at bdcw.get(PG:3)
at mwx.G(PG:155)
at ahng.a(PG:5)
at ahng.get(PG:4)
at bdcx.get(PG:6)
at mwz.a(PG:3)
at muc.<init>(PG:16)
at com.google.android.apps.youtube.embeddedplayer.service.service.jar.ApiPlayerService.<init>(PG:43)
at com.google.android.apps.youtube.embeddedplayer.service.service.jar.ApiPlayerFactoryService$1.run(PG:2)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930) |
Hi, I see this issue as well and would love a fix. |
I'm seeing the following issue happening sometimes:
Even though this is happening under the hood, it doesn't seem to impact the player, as I can still play videos normally. I've seen just another person reporting this on StackOverflow almost two years ago, so I wonder if this is my fault somehow?...
I am paying close attention to the context lifecycle (the parent context where my player is located) which is actually a
Fragment
containing aViewPager
, with the first page being the only one to contain myYouTubePlayerSupportFragment
. I'm initializing and releasing the player in the appropriate places:So any help on mitigating this issue will be very much appreciated.
The text was updated successfully, but these errors were encountered: