polymorphicshade / NewPipe

A fork of NewPipe with SponsorBlock functionality.
GNU General Public License v3.0
3.23k stars 106 forks source link

Network error on sponsor segments #339

Closed limejet closed 1 year ago

limejet commented 1 year ago

Checklist

Affected version

0.25.1

Steps to reproduce the bug

  1. open the video with sponsorblock segments mentioned in the crash log
  2. play the video until the first segment (fittingly, it's just after Colin goes "we need a plan! and a sponsor!" at 0:40)

Expected behavior

the video should skip the sponsorblock segment and keep playing.

Actual behavior

The segment is skipped, but the player then immediately throws a network error and stops. trying to resume results in another immediate error. mashing the jog buttons sometimes makes the video play again, but it's hard to reproduce.

Screenshots/Screen recordings

/

https://github.com/polymorphicshade/NewPipe/assets/4407285/03a3ad7c-4f3b-45f6-a182-cc85257e1380

Logs

Exception

com.google.android.exoplayer2.ExoPlaybackException: Source error
    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:644)
    at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:616)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loopOnce(Looper.java:346)
    at android.os.Looper.loop(Looper.java:475)
    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:263)
    at com.google.android.exoplayer2.upstream.TeeDataSource.open(TeeDataSource.java:52)
    at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(CacheDataSource.java:796)
    at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(CacheDataSource.java:609)
    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:1137)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
    at java.lang.Thread.run(Thread.java:1012)


Affected Android/Custom ROM version

Android 13, build 64.1.A.0.929, kernel 5.10.136-android12756862

Affected device model

Sony Xperia 5 IV (model number XQ-CQ54)

Additional information

only thing that may be relevant is that this is on hotel wifi, so it may be congested? It's not to any noticeable degree though.

limejet commented 1 year ago

An update: this was not reproducible after waiting a few hours. Considering that the error is question seems to be a 403, is there a possibility that this has something to do with the new youtube thing where they limit the number of videos you can watch per day with an ad blocker? in that case I guess this is an upstream issue.

Atemu commented 1 year ago

This is a general NewPipe error. The sponsor skip just happens to trigger it because it's a skip.