Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Age-Gated Videos not playing #4161

Closed
johnth3doe opened this issue Aug 19, 2020 · 13 comments
Closed

Age-Gated Videos not playing #4161

johnth3doe opened this issue Aug 19, 2020 · 13 comments
Labels
bug Issue is related to a bug youtube Service, https://www.youtube.com/

Comments

@johnth3doe
Copy link

This issue was initially referenced in #890 and I cannot seem to be able to reopen the issue myself.

Nevertheless, videos such as https://www.youtube.com/watch?v=u9sO2c0Ml34 result in a crash when trying to view them.

Thank you for your time and consideration.

@johnth3doe johnth3doe added the bug Issue is related to a bug label Aug 19, 2020
@opusforlife2
Copy link
Collaborator

opusforlife2 commented Aug 19, 2020

If a maintainer closes an issue only a maintainer can reopen it. Anyway, that issue is an old one, so let's keep this one open.

Can you please edit and fill in the template? Like which version? I tried your link in 0.19.8 and it works. No error. Also, since you say it crashes, paste the crash report in the template as well.

@justanidea
Copy link
Contributor

justanidea commented Aug 19, 2020

I does crash for me too and im in 0.19.8
Here's the crash report: (i hope we've the same)

Exception

  • User Action: ui error
  • Request: App crash, UI failure
  • Content Language: fr-FR
  • Service: none
  • Version: 0.19.8
  • OS: Linux Android 9 - 28
Crash log

java.lang.IndexOutOfBoundsException: Index: 0
	at java.util.Collections$EmptyList.get(Collections.java:4502)
	at org.schabi.newpipe.player.helper.PlayerHelper.autoQueueOf(PlayerHelper.java:165)
	at org.schabi.newpipe.player.BasePlayer.maybeAutoQueueNextStream(BasePlayer.java:1336)
	at org.schabi.newpipe.player.BasePlayer.maybeUpdateCurrentMetadata(BasePlayer.java:1320)
	at org.schabi.newpipe.player.BasePlayer.onTimelineChanged(BasePlayer.java:677)
	at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.lambda$run$0$ExoPlayerImpl$PlaybackInfoUpdate(ExoPlayerImpl.java:804)
	at com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$PlaybackInfoUpdate$N_S5kRfhaRTAkH28P5luFgKnFjQ.invokeListener(Unknown Source:2)
	at com.google.android.exoplayer2.BasePlayer$ListenerHolder.invoke(BasePlayer.java:182)
	at com.google.android.exoplayer2.ExoPlayerImpl.invokeAll(ExoPlayerImpl.java:845)
	at com.google.android.exoplayer2.ExoPlayerImpl.access$000(ExoPlayerImpl.java:43)
	at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.run(ExoPlayerImpl.java:802)
	at com.google.android.exoplayer2.ExoPlayerImpl.notifyListeners(ExoPlayerImpl.java:736)
	at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(ExoPlayerImpl.java:710)
	at com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo(ExoPlayerImpl.java:652)
	at com.google.android.exoplayer2.ExoPlayerImpl.handleEvent(ExoPlayerImpl.java:595)
	at com.google.android.exoplayer2.ExoPlayerImpl$1.handleMessage(ExoPlayerImpl.java:127)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:193)
	at android.app.ActivityThread.main(ActivityThread.java:6718)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)


@opusforlife2
Copy link
Collaborator

@justanidea You didn't link the video.

@johnth3doe
Copy link
Author

johnth3doe commented Aug 19, 2020

Apologies for the late response @opusforlife2 and for not posting according to the guidelines, sincerely.

Firstly, I tried the same video once again since you claimed to be able to view it. As it were this is suddenly the case for me as well, it didn't instantly crash and allowed me to view it.

By that principle I believe that this issue should be closed, that being said, user @justanidea seems to claim this issue is identical to them; therefore I shall ask what the correct etiquette/protocol is in this case?

I shall close the issue for the reason stated above until directed otherwise or due to circumstances (like a possible reemergence)

In conclusion, thank you for your time and consideration. Your swift response is highly appreciated.

@johnth3doe
Copy link
Author

In a (possibly) related issue, when initially viewing this link: https://www.youtube.com/watch?v=zwT6DZCQi9k, I had a crash; but revisiting the video a second time didn't cause any issues.

The log (I remembered this time):
NP Crash Log.txt

Thank you once again for your time and consideration.

@justanidea
Copy link
Contributor

justanidea commented Aug 20, 2020

@opusforlife2 bcs its the one provided by @johnth3doe :) Sorry for not clarifying, i thought it would make sense

@johnth3doe i tried this new video and i keep crashing after 4 tries. Did you change anything between your two tries?

@opusforlife2
Copy link
Collaborator

@johnth3doe No problem. ✌️

@justanidea Yeah, I didn't realise you were talking about the video crashing specifically, and assumed you were talking about Newpipe crashing.

Since it's still crashing for justanidea, let's keep this open. We now have crash reports to show the devs as well.

@opusforlife2 opusforlife2 reopened this Aug 20, 2020
@opusforlife2
Copy link
Collaborator

@johnth3doe You can directly paste the contents of the crash report here, because Github renders the Markdown properly.

For example, here is the exact text of your crash report pasted below:

Exception

Crash log

org.schabi.newpipe.extractor.exceptions.ParsingException: Could not load decryption code for the Youtube service.
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.getPlayerUrl(YoutubeStreamExtractor.java:706)
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.onFetchPage(YoutubeStreamExtractor.java:656)
	at org.schabi.newpipe.extractor.Extractor.fetchPage(Extractor.java:56)
	at org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:68)
	at org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:64)
	at org.schabi.newpipe.util.ExtractorHelper.lambda$getStreamInfo$3(ExtractorHelper.java:116)
	at org.schabi.newpipe.util.-$$Lambda$ExtractorHelper$5fJcha6Sq5APJBLdG6osaJby-mc.call(lambda)
	at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)
	at io.reactivex.Single.subscribe(Single.java:3666)
	at io.reactivex.internal.operators.single.SingleDoOnSuccess.subscribeActual(SingleDoOnSuccess.java:35)
	at io.reactivex.Single.subscribe(Single.java:3666)
	at io.reactivex.internal.operators.maybe.MaybeFromSingle.subscribeActual(MaybeFromSingle.java:41)
	at io.reactivex.Maybe.subscribe(Maybe.java:4290)
	at io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.drain(MaybeConcatArray.java:153)
	at io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.request(MaybeConcatArray.java:78)
	at io.reactivex.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onSubscribe(FlowableElementAtMaybe.java:66)
	at io.reactivex.internal.operators.maybe.MaybeConcatArray.subscribeActual(MaybeConcatArray.java:42)
	at io.reactivex.Flowable.subscribe(Flowable.java:14935)
	at io.reactivex.internal.operators.flowable.FlowableElementAtMaybe.subscribeActual(FlowableElementAtMaybe.java:36)
	at io.reactivex.Maybe.subscribe(Maybe.java:4290)
	at io.reactivex.internal.operators.maybe.MaybeToSingle.subscribeActual(MaybeToSingle.java:46)
	at io.reactivex.Single.subscribe(Single.java:3666)
	at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
	at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.getPlayerUrl(YoutubeStreamExtractor.java:701)
	... 31 more


@opusforlife2
Copy link
Collaborator

In a (possibly) related issue, when initially viewing this link: https://www.youtube.com/watch?v=zwT6DZCQi9k, I had a crash; but revisiting the video a second time didn't cause any issues.

Ah. I notice you got "Could not load decryption code for the Youtube service." in your crash message. I get this sometimes as well. This is caused by minor, temporary network issues, unless I'm mistaken. Everyone gets one of these every once in a while, if a video takes too long to load.

@opusforlife2 opusforlife2 added the youtube Service, https://www.youtube.com/ label Aug 20, 2020
@Stypox
Copy link
Member

Stypox commented Sep 3, 2020

@justanidea @johnth3doe Could you install a debug apk (for example the latest unified ui apk), connect your phone to your PC through USB, open Chrome, go to chrome://inspect, open that debug version of NewPipe on your phone, select that NewPipe instance in Chrome, go to the Network tab, try to reproduce the issue, and once you've successfully reproduced the issue, right-click in Chrome, select "Save as HAR with Content" and send me that HAR? Then we might be able to fix this issue.

@opusforlife2
Copy link
Collaborator

Could you try the APK in TeamNewPipe/NewPipeExtractor#447?

@opusforlife2
Copy link
Collaborator

Closing until user replies.

@johnth3doe
Copy link
Author

johnth3doe commented May 21, 2021

I want to reiterate my apologies to @opusforlife2, I completely and totally forgot about this issue when it first solved itself, and was unable to reply since because of serious personal issues.

Edit: Moved to #6348 (unless this issue is considered to be re-opened)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug youtube Service, https://www.youtube.com/
Projects
None yet
Development

No branches or pull requests

4 participants