[Bug] Failed to load 36 hours video
Checklist
- [x] I make sure that the issue is NOT a duplicate of pinned issues
- [x] I make sure I am using the LATEST version - check here
- [x] I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
- [x] I have attached the error report in the issue
Describe the bug
I know this is a bit extreme but for the sake of content I'm reporting it, works on newpipe but not here
Exception
- User Action: play stream
- Request: Loading failed for [Disco Elysium - Final Cut: Full Game (No Commentary Walkthrough)]: https://www.youtube.com/watch?v=igUK55Qn1Go
- Content Country:
- Content Language: it-
- App Language: it
- Service: YouTube (Logged in)
- Endpoint: mweb
- Version: 5.4.0
- OS: Linux Android 16 - 36
Crash log
org.schabi.newpipe.player.mediasource.FailedMediaSource$StreamInfoLoadException: java.lang.IllegalStateException: Invalid exact SABR segment count: itag=303, count=23954
at org.schabi.newpipe.player.playback.MediaSourceManager$$ExternalSyntheticLambda6.apply(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:34)
at com.grack.nanojson.JsonBuilder.onError(dex-id-0b87ffc61155d335f194489a84452f0ab2e4d5f6:23)
at com.grack.nanojson.JsonBuilder.onError(dex-id-0b87ffc61155d335f194489a84452f0ab2e4d5f6:73)
at com.grack.nanojson.JsonBuilder.onSuccess(dex-id-0b87ffc61155d335f194489a84452f0ab2e4d5f6:39)
at com.grack.nanojson.JsonBuilder.onSuccess(dex-id-0b87ffc61155d335f194489a84452f0ab2e4d5f6:64)
at androidx.activity.FullyDrawnReporter.onSuccess(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:10)
at io.reactivex.rxjava3.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.onSuccess(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:3)
at io.reactivex.rxjava3.internal.operators.maybe.MaybeToSingle$ToSingleMaybeSubscriber.onSuccess(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:9)
at io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onNext(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:67)
at io.reactivex.rxjava3.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.drain(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:55)
at io.reactivex.rxjava3.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.request(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:12)
at io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onSubscribe(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:44)
at io.reactivex.rxjava3.internal.operators.flowable.FlowableDefer.subscribeActual(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:26)
at io.reactivex.rxjava3.core.Flowable.subscribe(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:7)
at io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybe.subscribeActual(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:9)
at io.reactivex.rxjava3.core.Maybe.subscribe(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:1)
at io.reactivex.rxjava3.internal.operators.single.SingleJust.subscribeActual(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:87)
at io.reactivex.rxjava3.core.Single.subscribe(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:6)
at io.reactivex.rxjava3.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:5)
at io.reactivex.rxjava3.core.Scheduler$DisposeTask.run(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:10)
at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.run(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:22)
at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.call(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:323)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1100)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:1572)
Caused by: java.lang.IllegalStateException: Invalid exact SABR segment count: itag=303, count=23954
at org.schabi.newpipe.player.datasource.SabrDashMediaSource.adaptationSet(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:562)
at org.schabi.newpipe.player.datasource.SabrDashMediaSource.<init>(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:200)
at org.jsoup.select.NodeVisitor$-CC.buildMediaSource(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:23)
at org.schabi.newpipe.player.resolver.VideoPlaybackResolver.resolve(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:608)
at org.schabi.newpipe.player.playback.MediaSourceManager$$ExternalSyntheticLambda3.apply(r8-map-id-2b3fec04d2b4636eb495972128a3a008da8f842c18586cc90d0fdab4f5834db2:128)
at com.grack.nanojson.JsonBuilder.onSuccess(dex-id-0b87ffc61155d335f194489a84452f0ab2e4d5f6:18)
... 23 more
Version
5.4.0
Frequency
Always (100% of the time)
Device
Tcl nxtpaper 60 ultra, android 16
Steps to reproduce the bug
- go to https://www.youtube.com/watch?v=igUK55Qn1Go
- error
Additional context
Happens on this one too https://www.youtube.com/watch?v=s7Rtw_PlS_s
SABR playback seems unable to handle loong videos like 10+ hours, which is kind of the norm for a walktrough
i tried increase the bitsizew .....still need a verfication buil .....please merge it if it helps
Sorry for being off topic.. I just want to say that if there's a way to add translate option for comments on bilibili please consider it 🙏(like using Google translate in background on your phone to translate them automatically for free)
you can long press home button, a google widget will pop up then clock the translate button on it
definately would try to add this translate feature as a thing .....but could yall give a feedback on that long video issue now on yalls devices ?
definately would try to add this translate feature as a thing .....but could yall give a feedback on that long video issue now on yalls devices ?
I tried long videos on my device (android 16) it worked properly in every platform (bilibili, youtube and niconico)
definately would try to add this translate feature as a thing .....but could yall give a feedback on that long video issue now on yalls devices ?
still doesn't work without your workaround
I took another look and fixed the core issue instead of just working around it. The 36-hour video now plays on my device with this change. I hope it works on yours too—please give it a try and let me know!