NewPipe live listening FC

Checklist

Steps to reproduce the bug

  1. Connect to a "not stable" network.
  2. Open a live video (of songs for example).
  3. Listen it in background.

Actual behavior

The app shows an error about the "interruption of the video data" and once opened again in foreground it crashes.

Expected behavior

Screenshots/Screen recordings

Logs

java.lang.RuntimeException: Error receiving broadcast Intent { act=org.schabi.newpipe.debug.seamlesstransitionplayers.VideoDetailFragment.ACTION_VIDEO_FRAGMENT_RESUMED flg=0x10 } in org.schabi.newpipe.player.Player$3@5996f45
    at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1815)
    at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8582)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:563)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1133)
Caused by: java.lang.NullPointerException
    at java.util.Objects.requireNonNull(Objects.java:220)
    at org.schabi.newpipe.player.Player.useVideoSource(Player.java:4149)
    at org.schabi.newpipe.player.Player.onBroadcastReceived(Player.java:1171)
    at org.schabi.newpipe.player.Player.access$200(Player.java:205)
    at org.schabi.newpipe.player.Player$3.onReceive(Player.java:1098)
    at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1805)
    ... 9 more

Device info

  • Android version/Custom ROM version: 12/One Ui 4.0
  • Device model: S21
Asked Jan 08 '22 12:01
avatar 9Orlaf2
9Orlaf2

4 Answer:

It seems like you're using the APK from #7349, not a stable NewPipe version. Please try to reproduce this issue on 0.21.13 proper. If you can consistently reproduce with #7349's APK but not on 0.21.13, please post a comment on https://github.com/issues/TeamNewPipe/NewPipe/7349 with a link to this issue.

1
Answered Dec 09 '21 at 12:27
avatar  of mhmdanas
mhmdanas

It seems like you're using the APK from #7349, not a stable NewPipe version. Please try to reproduce this issue on 0.21.13 proper. If you can consistently reproduce with #7349's APK but not on 0.21.13, please post a comment on https://github.com/issues/TeamNewPipe/NewPipe/7349 with a link to this issue.

I'll try...

1
Answered Dec 09 '21 at 14:00
avatar  of 9Orlaf2
9Orlaf2

Ok this is seems a problem of the specific build taken from this pull https://github.com/TeamNewPipe/NewPipe/pull/7349

The problem in question (from what I understand) is related to Live videos cache. In practice it's not big enough to always make this PR work correctly.

1
Answered Dec 09 '21 at 15:06
avatar  of 9Orlaf2
9Orlaf2

I posted a comment in https://github.com/TeamNewPipe/NewPipe/pull/7349. Seeing as this is an issue with the PR, closing the issue.

1
Answered Dec 09 '21 at 15:42
avatar  of mhmdanas
mhmdanas