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

Video playback crashes after pausing for a few hours #8917

Closed
6 tasks done
akinhet opened this issue Sep 1, 2022 · 2 comments
Closed
6 tasks done

Video playback crashes after pausing for a few hours #8917

akinhet opened this issue Sep 1, 2022 · 2 comments
Labels
duplicate Issue or discussion is a duplicate of an existing issue or discussion template ignored The user didn't follow the template/instructions (or removed them)

Comments

@akinhet
Copy link

akinhet commented Sep 1, 2022

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.23.3 (I've noticed the bug before, but I'm not sure in what versions exactly)

Steps to reproduce the bug

  1. Play a video
  2. Pause it for about 8 hrs or more (hard to say exactly as most of the time it happend to me when I started the video before going to bed and unpaused it after waking up)
  3. Unpause it
  4. The video plays for a few seconds
  5. The playback crashes
  6. The only way to continue to watch the video is to close it and open it again (e.g. from history)

Expected behavior

The video continues to play normally.

Actual behavior

The video crashes after a few seconds of playback (after playing all of the buffer?), then after clicking the play button it loads indefinitely.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_BAD_HTTP_STATUS] occurred while playing https://www.youtube.com/watch?v=opp0MKcNRko
  • Content Country: PL
  • Content Language: pl-PL
  • App Language: pl_PL
  • Service: YouTube
  • Version: 0.23.3
  • OS: Linux Redmi/camellian_eea/camellian:11/RP1A.200720.011/V12.5.4.0.RKSEUOR:user/release-keys 11 - 30
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:641)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:613)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:236)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 403
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(YoutubeHttpDataSource.java:422)
	at com.google.android.exoplayer2.upstream.DefaultDataSource.open(DefaultDataSource.java:258)
	at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:786)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:599)
	at com.google.android.exoplayer2.upstream.StatsDataSource.open(StatsDataSource.java:84)
	at com.google.android.exoplayer2.source.chunk.ContainerMediaChunk.load(ContainerMediaChunk.java:124)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:412)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:923)


Affected Android/Custom ROM version

Android 11 (MIUI 12.5.5)

Affected device model

Xiaomi Redmi Note 10 5G

Additional information

No response

@akinhet akinhet added bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Sep 1, 2022
@akinhet
Copy link
Author

akinhet commented Sep 1, 2022

If I had to guess the problem exists because the connection to the server times out and after exhausting the video buffer the player has nothing left to serve, so it tries to contact the server, but because of the timeout the server sends back HTTP 403.

I'm not sure though why the video does not load after the crash.

@AudricV
Copy link
Member

AudricV commented Sep 27, 2022

If I had to guess the problem exists because the connection to the server times out and after exhausting the video buffer the player has nothing left to serve, so it tries to contact the server, but because of the timeout the server sends back HTTP 403.

This is not related to timeouts, the streaming URLs have expired (on YouTube, they are valid for 21540 seconds).

  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.

Duplicate of #5730. Please search (better, with different keywords?) for duplicates the next time you want to open an issue. Thank you.

@AudricV AudricV closed this as completed Sep 27, 2022
@AudricV AudricV added template ignored The user didn't follow the template/instructions (or removed them) duplicate Issue or discussion is a duplicate of an existing issue or discussion and removed bug Issue is related to a bug needs triage Issue is not yet ready for PR authors to take up labels Sep 27, 2022
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 template ignored The user didn't follow the template/instructions (or removed them)
Projects
None yet
Development

No branches or pull requests

2 participants