Skip to content

timeout when trying to play some videos #13456

@hoke-81

Description

@hoke-81

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • 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.
  • I have read and understood the AI policy. The content of this bug report is not generated by AI.

Affected version

0.28.5

Steps to reproduce the bug

go https://www.youtube.com/watch?v=eQ-i5VsY6Yw
press play

Expected behavior

should play

Actual behavior

tries to load (black video window with red round arrow), then after a while shows this error

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: play stream
  • Request: Player error[type=ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT] occurred while playing https://www.youtube.com/watch?v=eQ-i5VsY6Yw
  • Content Country: DE
  • Content Language: de-DE
  • App Language: de_DE
  • Service: YouTube
  • Timestamp: 2026-04-26T22:40:15.178+02:00
  • Package: org.schabi.newpipe
  • Service: YouTube
  • Version: 0.28.5
  • OS: Linux Nokia/Punisher_00EEA/PHR_sprout:13/TKQ1.220807.001/00WW_3_350:user/release-keys 13 - 33
Crash log

com.google.android.exoplayer2.ExoPlaybackException: Source error
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:17)
	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:317)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: com.google.android.exoplayer2.upstream.HttpDataSource$HttpDataSourceException: java.net.SocketTimeoutException: timeout
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:303)
	at com.google.android.exoplayer2.upstream.DefaultDataSource.open(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:161)
	at com.google.android.exoplayer2.upstream.TeeDataSource.open(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:3)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.openNextSource(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:277)
	at com.google.android.exoplayer2.upstream.cache.CacheDataSource.open(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:130)
	at com.google.android.exoplayer2.upstream.StatsDataSource.open(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:11)
	at com.google.android.exoplayer2.source.chunk.InitializationChunk.load(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:40)
	at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:35)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652)
	at java.lang.Thread.run(Thread.java:1564)
Caused by: java.net.SocketTimeoutException: timeout
	at com.android.okhttp.okio.Okio$3.newTimeoutException(Okio.java:214)
	at com.android.okhttp.okio.AsyncTimeout.exit(AsyncTimeout.java:263)
	at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:217)
	at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:307)
	at com.android.okhttp.okio.RealBufferedSource.indexOf(RealBufferedSource.java:301)
	at com.android.okhttp.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:197)
	at com.android.okhttp.internal.http.Http1xStream.readResponse(Http1xStream.java:188)
	at com.android.okhttp.internal.http.Http1xStream.readResponseHeaders(Http1xStream.java:129)
	at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:750)
	at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:622)
	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475)
	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
	at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542)
	at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106)
	at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30)
	at org.schabi.newpipe.player.datasource.YoutubeHttpDataSource.open(r8-map-id-eeb60bc7eafd7d14a24650eafbfe8b4ce497b5ec4b44d8fb117249d53eb0f7fa:51)
	... 10 more
Caused by: java.net.SocketException: Socket closed
	at java.net.SocketInputStream.read(SocketInputStream.java:188)
	at java.net.SocketInputStream.read(SocketInputStream.java:143)
	at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readFromSocket(ConscryptEngineSocket.java:999)
	at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.processDataFromSocket(ConscryptEngineSocket.java:963)
	at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.readUntilDataAvailable(ConscryptEngineSocket.java:878)
	at com.android.org.conscrypt.ConscryptEngineSocket$SSLInputStream.read(ConscryptEngineSocket.java:851)
	at com.android.okhttp.okio.Okio$2.read(Okio.java:138)
	at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:213)
	... 23 more


Affected Android/Custom ROM version

various (Android 11/13)

Affected device model

various (Nokia G50/Lenovo Tab M10)

Additional information

having this with this video on both my devices
only some videos doing this, other ones work, so my network is fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    YouTubeService, https://www.youtube.com/questionNot really an issue, but more of a question about how something works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions