NewPipe live listening FC
Checklist
- I am using the latest version - 0.21.13
- I checked, but didn't find any duplicates (open OR closed) of this issue in the repo.
- I have read the contribution guidelines given at https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md.
- This issue contains only one bug. I will open one issue for every bug report I want to file.
Steps to reproduce the bug
- Connect to a "not stable" network.
- Open a live video (of songs for example).
- 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
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.
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...
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.
I posted a comment in https://github.com/TeamNewPipe/NewPipe/pull/7349. Seeing as this is an issue with the PR, closing the issue.
Read next
- NewPipe weird glitching effect when pinching in popup mode
- NewPipe fixed scrolling on refresh in the feed
- NewPipe unexpected pauses
- NewPipe scroll to bottom/ top of a list
- NewPipe floating Action Button for search function
- Ability to play downloaded videos
- NewPipe replace tls configuration with NetCipher for all Android versions
- NewPipe drop support for Android 4.4 / Require Android 5+ / API 21+