polymorphicshade / NewPipe

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

Frequent network errors #335

Open PrincessMiki opened 1 year ago

PrincessMiki commented 1 year ago

Checklist

Affected version

0.25.1

Steps to reproduce the bug

On 2 videos,

https://www.youtube.com/watch?v=glM7KMoDUFc

https://www.youtube.com/watch?v=xA1101Vj6-A

I got network errors. I kept on refreshing 1 video and it worked eventually. But when i tried them in newpipe upstream, nothing happened.

Expected behavior

No network errors

Actual behavior

I got network errors. I kept on refreshing 1 video and it worked eventually. But when i tried them in newpipe upstream, nothing happened.

Screenshots/Screen recordings

No response

Logs

Exception

[com.google.android](http://com.google.android/).exoplayer2.ExoPlaybackException: Source error
    at [com.google.android](http://com.google.android/).exoplayer2.ExoPlayerImplInternal.handleIoException([ExoPlayerImplInternal.java:644](http://exoplayerimplinternal.java:644/))
    at [com.google.android](http://com.google.android/).exoplayer2.ExoPlayerImplInternal.handleMessage([ExoPlayerImplInternal.java:616](http://exoplayerimplinternal.java:616/))
    at android.os.Handler.dispatchMessage([Handler.java:102](http://handler.java:102/))
    at android.os.Looper.loop([Looper.java:246](http://looper.java:246/))
    at [android.os.HandlerThread.run](http://android.os.handlerthread.run/)([HandlerThread.java:67](http://handlerthread.java:67/))
Caused by: [com.google.android](http://com.google.android/).exoplayer2.upstream.HttpDataSource$HttpDataSourceException: [java.net](http://java.net/).SocketTimeoutException: failed to connect to rr4---[sn-vgqsknzl.googlevideo.com/74.125.161.201](http://sn-vgqsknzl.googlevideo.com/74.125.161.201) (port 443) from /192.168.0.79 (port 35812) after 8000ms
    at [org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open](http://org.schabi.newpipe.player.datasource.youtubehttpdatasource.open/)([YoutubeHttpDataSource.java:389](http://youtubehttpdatasource.java:389/))
    at [com.google.android.exoplayer2.upstream.DefaultDataSource.open](http://com.google.android.exoplayer2.upstream.defaultdatasource.open/)([DefaultDataSource.java:263](http://defaultdatasource.java:263/))
    at [com.google.android.exoplayer2.upstream.TeeDataSource.open](http://com.google.android.exoplayer2.upstream.teedatasource.open/)([TeeDataSource.java:52](http://teedatasource.java:52/))
    at [com.google.android](http://com.google.android/).exoplayer2.upstream.cache.CacheDataSource.openNextSource([CacheDataSource.java:796](http://cachedatasource.java:796/))
    at [com.google.android.exoplayer2.upstream.cache.CacheDataSource.open](http://com.google.android.exoplayer2.upstream.cache.cachedatasource.open/)([CacheDataSource.java:609](http://cachedatasource.java:609/))
    at [com.google.android.exoplayer2.upstream.StatsDataSource.open](http://com.google.android.exoplayer2.upstream.statsdatasource.open/)([StatsDataSource.java:84](http://statsdatasource.java:84/))
    at [com.google.android](http://com.google.android/).exoplayer2.source.chunk.ContainerMediaChunk.load([ContainerMediaChunk.java:124](http://containermediachunk.java:124/))
    at [com.google.android](http://com.google.android/).exoplayer2.upstream.Loader$[LoadTask.run](http://loadtask.run/)([Loader.java:412](http://loader.java:412/))
    at java.util.concurrent.ThreadPoolExecutor.runWorker([ThreadPoolExecutor.java:1167](http://threadpoolexecutor.java:1167/))
    at java.util.concurrent.ThreadPoolExecutor$[Worker.run](http://worker.run/)([ThreadPoolExecutor.java:641](http://threadpoolexecutor.java:641/))
    at [java.lang.Thread.run](http://java.lang.thread.run/)([Thread.java:923](http://thread.java:923/))
Caused by: [java.net](http://java.net/).SocketTimeoutException: failed to connect to rr4---[sn-vgqsknzl.googlevideo.com/74.125.161.201](http://sn-vgqsknzl.googlevideo.com/74.125.161.201) (port 443) from /192.168.0.79 (port 35812) after 8000ms
    at [libcore.io](http://libcore.io/).IoBridge.connectErrno([IoBridge.java:190](http://iobridge.java:190/))
    at [libcore.io](http://libcore.io/).IoBridge.connect([IoBridge.java:134](http://iobridge.java:134/))
    at [java.net](http://java.net/).PlainSocketImpl.socketConnect([PlainSocketImpl.java:142](http://plainsocketimpl.java:142/))
    at [java.net](http://java.net/).AbstractPlainSocketImpl.doConnect([AbstractPlainSocketImpl.java:390](http://abstractplainsocketimpl.java:390/))
    at [java.net](http://java.net/).AbstractPlainSocketImpl.connectToAddress([AbstractPlainSocketImpl.java:230](http://abstractplainsocketimpl.java:230/))
    at [java.net](http://java.net/).AbstractPlainSocketImpl.connect([AbstractPlainSocketImpl.java:212](http://abstractplainsocketimpl.java:212/))
    at [java.net](http://java.net/).SocksSocketImpl.connect([SocksSocketImpl.java:436](http://sockssocketimpl.java:436/))
    at [java.net](http://java.net/).Socket.connect([Socket.java:621](http://socket.java:621/))
    at [com.android](http://com.android/).okhttp.internal.Platform.connectSocket([Platform.java:182](http://platform.java:182/))
    at [com.android.okhttp.internal.io](http://com.android.okhttp.internal.io/).RealConnection.connectSocket([RealConnection.java:1391](http://realconnection.java:1391/))
    at [com.android.okhttp.internal.io](http://com.android.okhttp.internal.io/).RealConnection.connect([RealConnection.java:1343](http://realconnection.java:1343/))
    at [com.android](http://com.android/).okhttp.internal.http.StreamAllocation.findConnection([StreamAllocation.java:221](http://streamallocation.java:221/))
    at [com.android](http://com.android/).okhttp.internal.http.StreamAllocation.findHealthyConnection([StreamAllocation.java:144](http://streamallocation.java:144/))
    at [com.android](http://com.android/).okhttp.internal.http.StreamAllocation.newStream([StreamAllocation.java:106](http://streamallocation.java:106/))
    at [com.android](http://com.android/).okhttp.internal.http.HttpEngine.connect([HttpEngine.java:400](http://httpengine.java:400/))
    at [com.android](http://com.android/).okhttp.internal.http.HttpEngine.sendRequest([HttpEngine.java:333](http://httpengine.java:333/))
    at [com.android](http://com.android/).okhttp.internal.huc.HttpURLConnectionImpl.execute([HttpURLConnectionImpl.java:465](http://httpurlconnectionimpl.java:465/))
    at [com.android](http://com.android/).okhttp.internal.huc.HttpURLConnectionImpl.getResponse([HttpURLConnectionImpl.java:411](http://httpurlconnectionimpl.java:411/))
    at [com.android](http://com.android/).okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode([HttpURLConnectionImpl.java:542](http://httpurlconnectionimpl.java:542/))
    at [com.android](http://com.android/).okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode([DelegatingHttpsURLConnection.java:106](http://delegatinghttpsurlconnection.java:106/))
    at [com.android](http://com.android/).okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode([HttpsURLConnectionImpl.java:30](http://httpsurlconnectionimpl.java:30/))
    at [org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open](http://org.schabi.newpipe.player.datasource.youtubehttpdatasource.open/)([YoutubeHttpDataSource.java:385](http://youtubehttpdatasource.java:385/))
    ... 10 more


Affected Android/Custom ROM version

android 11

Affected device model

samsung a10e

Additional information

No response

Atemu commented 1 year ago

That does not look like in issue in this fork. It's a generic network error trying to load googlevideo which is core functionality, not from Sponsorblock and the like.

Try exporting the app data, deleting app data and then re-importing the data again.

PrincessMiki commented 1 year ago

That does not look like in issue in this fork. It's a generic network error trying to load googlevideo which is core functionality, not from Sponsorblock and the like.

Try exporting the app data, deleting app data and then re-importing the data again.

Can I do this via app settings, clearing all data?

Atemu commented 1 year ago

You can export the data in the app's content settings and then clear data via Settings' "App info" for the app.

PrincessMiki commented 1 year ago

You can export the data in the app's content settings and then clear data via Settings' "App info" for the app.

Okay I don't have Important settings so I just used "app info" system settings to delete all the app info and it's still happening frequently. Happened on:

https://www.youtube.com/watch?v=cL7N94_0OIo

I will try reinstalling the entire app

Atemu commented 1 year ago

Please try the regular NewPipe. This bug is only relevant to use if you're not able to reproduce it in regular NewPipe.

PrincessMiki commented 1 year ago

Please try the regular NewPipe. This bug is only relevant to use if you're not able to reproduce it in regular NewPipe.

Can confirm on all 3 of those videos this problem did not occur.

I have Newpipe sponsorship block reinstalled and so far so good, but I'll keep you posted

PrincessMiki commented 1 year ago

Please try the regular NewPipe. This bug is only relevant to use if you're not able to reproduce it in regular NewPipe.

New install, still happening.

Happened on https://www.youtube.com/watch?v=QWWDqCb5hRY

PrincessMiki commented 1 year ago

Newpipe upstream plays all 4 of those vids no problem incl https://www.youtube.com/watch?v=QWWDqCb5hRY

PrincessMiki commented 1 year ago

Found a work around on Newpipe sponsor block, I have to keep in deleting the vid from history and eventually it works, but it took like 5 consecutive network errors msgs for that to work

Kurasami commented 1 year ago

Please test the latest version released today (0.25.2) and if it fixes the issue, close this ticket.