Skip to content

[Bug] Unable to create SABR video source #2625

Description

@Andmyaxe90

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

Opening any video fails with the following error

Exception

  • User Action: play stream
  • Request: Loading failed for [Gigguk Joins Us On The RV Trip Across Japan! (ft. Daidus & Premier Two) | Day 3]: https://www.youtube.com/watch?v=g6keJqE8NJs
  • Content Country: GB
  • Content Language: en-GB
  • App Language: en_GB
  • Service: YouTube (Anonymous)
  • Endpoint: mweb
  • Version: 5.2.1
  • OS: Linux Android 7.0 - 24
Crash log

org.schabi.newpipe.player.mediasource.FailedMediaSource$StreamInfoLoadException: java.lang.IllegalStateException: Unable to create SABR video source for https://www.youtube.com/watch?v=g6keJqE8NJs
	at org.schabi.newpipe.player.playqueue.PlayQueueItem$$ExternalSyntheticLambda0.apply(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:34)
	at org.brotli.dec.IntReader.onError(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:23)
	at org.brotli.dec.IntReader.onError(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:73)
	at org.brotli.dec.IntReader.onSuccess(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:39)
	at org.brotli.dec.IntReader.onSuccess(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:110)
	at io.reactivex.rxjava3.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.onSuccess(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:3)
	at io.reactivex.rxjava3.internal.operators.maybe.MaybeToSingle$ToSingleMaybeSubscriber.onSuccess(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:9)
	at io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onNext(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:67)
	at io.reactivex.rxjava3.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.drain(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:55)
	at io.reactivex.rxjava3.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.request(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:12)
	at io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onSubscribe(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:44)
	at io.reactivex.rxjava3.internal.operators.flowable.FlowableDefer.subscribeActual(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:26)
	at io.reactivex.rxjava3.core.Flowable.subscribe(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:6)
	at io.reactivex.rxjava3.internal.operators.flowable.FlowableElementAtMaybe.subscribeActual(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:9)
	at io.reactivex.rxjava3.core.Maybe.subscribe(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:1)
	at io.reactivex.rxjava3.internal.operators.single.SingleJust.subscribeActual(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:87)
	at io.reactivex.rxjava3.core.Single.subscribe(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:6)
	at io.reactivex.rxjava3.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:5)
	at io.reactivex.rxjava3.core.Scheduler$DisposeTask.run(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:10)
	at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.run(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:22)
	at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.call(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:1)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:272)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
	at java.lang.Thread.run(Thread.java:762)
Caused by: java.lang.IllegalStateException: Unable to create SABR video source for https://www.youtube.com/watch?v=g6keJqE8NJs
	at org.schabi.newpipe.player.resolver.VideoPlaybackResolver.resolve(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:340)
	at org.schabi.newpipe.player.playback.MediaSourceManager$$ExternalSyntheticLambda3.apply(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:74)
	at org.brotli.dec.IntReader.onSuccess(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:18)
	... 22 more
Caused by: java.io.IOException: Could not start SABR session for g6keJqE8NJs
	at org.slf4j.Logger$-CC.buildMediaSource(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:449)
	at org.schabi.newpipe.player.resolver.VideoPlaybackResolver.resolve(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:303)
	... 24 more
Caused by: org.schabi.newpipe.extractor.exceptions.ParsingException: Could not initialize WebView V8
	at org.schabi.newpipe.WebViewJavaScriptDecoder.ensureReady(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:59)
	at org.schabi.newpipe.WebViewJavaScriptDecoder.decodeBatch(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:8)
	at org.schabi.newpipe.extractor.services.youtube.YoutubeJavaScriptPlayerManager.deobfuscateBatch(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:24)
	at kotlin.time.DurationKt.maybeDeobfuscateNParameter(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:47)
	at kotlin.time.DurationKt.fromPlayerResponse(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:16)
	at kotlin.time.DurationKt.fetchSabrInfo(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:544)
	at org.schabi.newpipe.player.datasource.SabrSessionStore.getOrCreate(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:185)
	at org.slf4j.Logger$-CC.buildMediaSource(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:130)
	... 25 more
Caused by: java.lang.IllegalStateException: EJS initialization returned false
	at org.schabi.newpipe.WebViewJavaScriptDecoder$$ExternalSyntheticLambda5.onReceiveValue(r8-map-id-0aca2ea857a97be7091319ccc2b495336ae4dde2ac1068f09df4175a97c4edbf:28)
	at uE.onResult(Unknown Source)
	at org.chromium.android_webview.AwContents.a(PG:995)
	at aBg.run(Unknown Source)
	at android.os.Handler.handleCallback(Handler.java:751)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6776)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)


This does not happen with PipePipe 5.20.

Version

5.2.1

Frequency

Always (100% of the time)

Device

Samsung Galaxy J7

Steps to reproduce the bug

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions