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

Error when quickly rotating from landscape to portrait while loading video if auto rotation is set to "landscape" or "auto" #6990

Open
3 tasks done
Figim opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Figim
Copy link

Figim commented Jan 21, 2025

Steps to reproduce

You should do this quickly before the video opens.

1. Select auto or landscape as screen rotation. Enable auto rotation on the device
2. Turn on Auto fullscreen option for Player.
3. Keep the device horizontal.
4. Play any video
5. Rotate device to portrait orientation. Do this quickly.

Other

  1. To reproduce this error with auto rotation option, enable rotation on your device. The error will occur even if auto fullscreen is turned off

Expected behavior

No error

Actual behavior

XRecorder_20250121_03.mp4

LibreTube version

0.26.8 (58)

Android version

Android 12

Other details

java.lang.RuntimeException: Unable to create service com.github.libretube.services.VideoOnlinePlayerService: java.lang.IllegalStateException: Session ID must be unique. ID=com.github.libretube.services.VideoOnlinePlayerService
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4953)
at android.app.ActivityThread.access$1800(ActivityThread.java:310)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2300)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)
Caused by: java.lang.IllegalStateException: Session ID must be unique. ID=com.github.libretube.services.VideoOnlinePlayerService
at androidx.media3.session.MediaSession.(MediaSession.java:686)
at androidx.media3.session.MediaLibraryService$MediaLibrarySession.(MediaLibraryService.java:679)
at androidx.media3.session.MediaLibraryService$MediaLibrarySession$Builder.build(MediaLibraryService.java:659)
at com.github.libretube.services.AbstractPlayerService.createPlayerAndMediaSession(AbstractPlayerService.kt:305)
at com.github.libretube.services.AbstractPlayerService.onCreate(AbstractPlayerService.kt:246)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4940)
... 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.
@Figim Figim added the bug Something isn't working label Jan 21, 2025
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

1 participant