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

crash while playing a video in background (audio only) you play another video (video mode) #5960

Closed
3 tasks done
AnthillSudoku opened this issue May 1, 2024 · 1 comment
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@AnthillSudoku
Copy link

Steps to reproduce

  1. Play a video in backgroud (audio only)
  2. While the audio is playing, open another video (not audio only)

Expected behavior

The second video will play

Actual behavior

Crash

LibreTube version

0.23.0

Android version

13

Other details

java.lang.RuntimeException: Unable to stop service com.github.libretube.services.OnlinePlayerService@f0419b: java.lang.IllegalArgumentException: Receiver not registered: androidx.media3.common.util.NetworkTypeObserver$Receiver@32b5938
	at android.app.ActivityThread.handleStopService(ActivityThread.java:4706)
	at android.app.ActivityThread.-$$Nest$mhandleStopService(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2185)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7924)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Caused by: java.lang.IllegalArgumentException: Receiver not registered: androidx.media3.common.util.NetworkTypeObserver$Receiver@32b5938
	at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:1662)
	at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1836)
	at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:812)
	at com.github.libretube.services.OnlinePlayerService.onDestroy(SourceFile:34)
	at android.app.ActivityThread.handleStopService(ActivityThread.java:4686)
	... 9 more
    

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I will fill out all of the requested information in this form.
@AnthillSudoku AnthillSudoku added the bug Something isn't working label May 1, 2024
@Bnyro
Copy link
Member

Bnyro commented May 1, 2024

Duplicate of #5958

@Bnyro Bnyro marked this as a duplicate of #5958 May 1, 2024
@Bnyro Bnyro closed this as completed May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants