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

Videos playing in the background randomly stop #7535

Closed
4 tasks done
TheMCNerd2017 opened this issue Dec 13, 2021 · 18 comments
Closed
4 tasks done

Videos playing in the background randomly stop #7535

TheMCNerd2017 opened this issue Dec 13, 2021 · 18 comments
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion

Comments

@TheMCNerd2017
Copy link

TheMCNerd2017 commented Dec 13, 2021

Checklist

Steps to reproduce the bug

  1. Go to any video
  2. Click on the Background button to start playing the video in the background
  3. Wait a few minutes. You can do anything during this time or let the device idle. The video should stop playing on it's own and the Android media notification may still show the pause button as if the video is playing normally. Sometimes it shows the hourglass instead as if the video is loading despite the video already being loaded. If the issue doesn't happen try another video, as the issue seems to happen randomly and at random times.

Actual behavior

Whatever video is playing in the background stops and the Android media notification sometimes still shows the pause icon as if the video is still playing. Trying to make the video play by clicking pause/play does not work and actually causes the Android media notification to become out of sync with NewPipe (possibly another bug). Scrubbing in the Android media notification to any time makes the video resume playing at the time you've scrubbed to, though the audio may become distorted.

Expected behavior

Whatever video is playing in the background should continue to play until the video ends.

Screenshots/Screen recordings

Logs

Device info

  • Android version/Custom ROM version: GrapheneOS 12 (SQ1A.211205.008.2021121012)
  • Device model: Pixel 4 XL
@TheMCNerd2017 TheMCNerd2017 added the bug Issue is related to a bug label Dec 13, 2021
@TheMCNerd2017
Copy link
Author

OK turns out this issue happens regardless of whether the device is locked or not, and resuming playback by scrubbing sometimes results in the audio becoming distorted.

@TheMCNerd2017 TheMCNerd2017 changed the title Videos playing in the background randomly stop when device is locked Videos playing in the background randomly stop Dec 13, 2021
@genesisaix
Copy link

I can confirm the exact same behavior on 0.21.14;

  • running sound in background and it somewhat randomly (10min+) freeze, I am guessing it has something to do with end of buffer
  • sound gets distorted afterwards if I manage to resume; low volume (on same volume bar) or noisy
  • Closing the application allow for another 10-13ish minutes of error-free listening

Samsung S10 (8gb ram)
Android 11 / 1.june 2021
Kernel 4.14.113-22340597

/love to all of Newpipes contributors

@adueppen
Copy link

I'm experiencing this behavior as well, only on 0.21.14. Tracks are stopping randomly after 5-10 minutes and when I try to bring them back by either scrubbing back in the track or skipping to the next one, it comes back with extremely low-quality distorted audio only in my left ear.

Device: Pixel 5a, Android 12 2021-11-05 with kernel 4.19.191-g7a0aca88361d-ab7709095

@timsu92
Copy link

timsu92 commented Dec 14, 2021

Me too on 0.21.14. However, I'm not facing this as same time as other people's. I listen to lots of music containing short singles and long albums, and all those randomly stop somewhere in the last minute.
Furthermore, I paused and played a song the other day, and the music played on right ear only but not distorted.

Device: Samsung S21, Android 11, stock rom, kernel 5.4.61-qgki-22265714

@x1n1t
Copy link

x1n1t commented Dec 14, 2021

i can confirm the same behavior on this exact version
a playlist plays in background for few minutes and then randomly stops. if i manage to resume it plays with noticeable distortions until i reopen the app

@drewsat
Copy link

drewsat commented Dec 16, 2021

Yep I have this issue as well

@ssaagamemer
Copy link

same and notification not show

@NoahJelen
Copy link

NoahJelen commented Dec 19, 2021

I have this same problem except newpipe buffers to hell too. I'm using a Pixel 3a XL with CalyxOS (Android 11). If you want a workaround, I recommend downgrading to 0.21.3 for the time being.

@Danielmb87
Copy link

Danielmb87 commented Dec 22, 2021

I have the same issue which makes listening to music a rather frustrating task.

This issue sounds very similar, could it be the same issue? I wasn't able to download the apk and try it (definitely operator error, haha) but maybe someone else could try it to see if it resolves the issue:
#7529

Edit: tried again and managed to install the debug apk without media parser and it resolves this issue for me. Like everyone else I am on Android 11 and was using latest release (0.21.14)

@AudricV
Copy link
Member

AudricV commented Dec 22, 2021

Please test if the APK of #7555 solved the issue and let us know here, in this issue.

@andrewferguson
Copy link

@TiA4f8R I tried out #7555's APK this morning and it has resolved the issue for me.
Great job on such a quick fix!

@timsu92
Copy link

timsu92 commented Dec 23, 2021

@TiA4f8R Mostly running well in totally 4 hours today, expect it paused several times tonight, but resumed in few seconds after I lit up the screen. However, the network is still connected before I lit it up as I can see it in my laptop which was sharing its internet access through WIFI.
After some minutes of encountering the situation above, it popped-up a notification saying that it encountered an error, which turned out to be socket timeout. And this is the formatted report: error_log.txt
I know this isn't likely your fault. Just FYI~

@TheMCNerd2017
Copy link
Author

@TiA4f8R Do I need to uninstall the current version of NewPipe on my mobile device before I try out the test APK of #7555? Also do I need to be signed-in to download it? The "app" text in the Artifacts section on my mobile device isn't clickable for some reason.

@AudricV
Copy link
Member

AudricV commented Dec 23, 2021

@TheMCNerd2017

Do I need to uninstall the current version of NewPipe on my mobile device before I try out the test APK of #7555?

No, this APK will be installed as a separate app.

Also do I need to be signed-in to download it?

Yes, unfortunately, you need to be logged on GitHub (that's not a restriction within our control).

The "app" text in the Artifacts section on my mobile device isn't clickable for some reason.

Then use this direct link to the APK instead: https://github.com/TeamNewPipe/NewPipe/suites/4706181150/artifacts/128965460

@TheMCNerd2017
Copy link
Author

@TiA4f8R OK, I'll install the test APK and use it for a while and see if the issue is fixed. Also the reason the text in the Artifacts section was not clickable on my mobile device was because I was not signed in (and the direct link gives a 404 error as well, also because I was not signed in). I was able to download it on my desktop.

@TheMCNerd2017
Copy link
Author

@TiA4f8R Alright I've used the test APK for a while now and the issue doesn't come up.

@genesisaix
Copy link

genesisaix commented Dec 24, 2021

@TiA4f8R I downloaded the APK from your link and can confirm that the issues described earlier no longer prevail here. Thanks for the information on how to go about to download this.

Edit: removed some text already stated by TiA (I obviously did not read good enough)

@AudricV
Copy link
Member

AudricV commented Dec 24, 2021

This fix is included on the new version we released, 0.21.15. Download it to get ride of this issue!

Closing this issue as a duplicate of #7529, which has been fixed with #7555.

@AudricV AudricV closed this as completed Dec 24, 2021
@AudricV AudricV added duplicate Issue or discussion is a duplicate of an existing issue or discussion and removed bug Issue is related to a bug labels Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion
Projects
None yet
Development

No branches or pull requests