Skip to content

Background crash while Chromecast is connected #1573

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

Open
3 tasks
Terrance opened this issue Feb 10, 2025 · 0 comments
Open
3 tasks

Background crash while Chromecast is connected #1573

Terrance opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Terrance
Copy link

Describe the bug

Not consistently reproducible, but I've been alerted of this on more than one occasion.

  1. Connect to Chromecast
  2. Put app in background
  3. Leave it for a bit
    • App crashes in the background, Chromecast disconnects (sooner than the usual idle timeout)

Logs

FATAL EXCEPTION: main
Process: org.jellyfin.mobile, PID: 11428
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.Activity.runOnUiThread(java.lang.Runnable)' on a null object reference
        at org.jellyfin.mobile.player.cast.ChromecastSession.setSession(SourceFile:10)
        at org.jellyfin.mobile.player.cast.ChromecastConnection$6$1.onSessionEnded(SourceFile:3)
        at org.jellyfin.mobile.player.cast.ChromecastConnection$6$1.onSessionEnded(SourceFile:1)
        at M3.C.q(SourceFile:234)
        at com.google.android.gms.internal.cast.q.onTransact(SourceFile:51)
        at android.os.Binder.transact(Binder.java:1188)
        at m.qi.c(:com.google.android.gms.dynamite_dynamitemodulesc@[email protected] (190400-0):8)
        at m.xd.f(:com.google.android.gms.dynamite_dynamitemodulesc@[email protected] (190400-0):12)
        at m.xo.i(:com.google.android.gms.dynamite_dynamitemodulesc@[email protected] (190400-0):79)
        at m.wz.z(:com.google.android.gms.dynamite_dynamitemodulesc@[email protected] (190400-0):81)
        at m.qj.onTransact(:com.google.android.gms.dynamite_dynamitemodulesc@[email protected] (190400-0):21)
        at android.os.Binder.transact(Binder.java:1188)
        at com.google.android.gms.internal.cast.a.l0(SourceFile:8)
        at M3.h.c(SourceFile:17)
        at M3.I.onApplicationDisconnected(SourceFile:6)
        at L3.H.run(SourceFile:98)
        at android.os.Handler.handleCallback(Handler.java:942)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loopOnce(Looper.java:240)
        at android.os.Looper.loop(Looper.java:351)
        at android.app.ActivityThread.main(ActivityThread.java:8377)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

Application version

2.6.2

Where did you install the app from?

F-Droid

Device information

OnePlus Nord CE

Android version

Android 13

Jellyfin server version

10.10.5

Which video player implementations does this bug apply to?

  • Web player (default)
  • Integrated player (ExoPlayer)
  • External player (VLC, mpv, MX Player)
@Terrance Terrance added the bug Something isn't working label Feb 10, 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