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

Application Crash when playing background playlist #7537

Closed
4 tasks done
LeducBastien opened this issue Dec 13, 2021 · 5 comments
Closed
4 tasks done

Application Crash when playing background playlist #7537

LeducBastien opened this issue Dec 13, 2021 · 5 comments
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)

Comments

@LeducBastien
Copy link

LeducBastien commented Dec 13, 2021

Checklist

Steps to reproduce the bug

  • Open any playlist on YouTube
  • Press play in background

Actual behavior

Upon pressing the button, the application crashes.

Expected behavior

Upon pressing the button, the button should not crash and play the playlist.

Screenshots/Screen recordings

N/A

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: FR
  • Content Language: fr-FR
  • App Language: fr_FR
  • Service: none
  • Version: 0.21.14
  • OS: Linux Android 10 - 29
Crash log

java.lang.NullPointerException: Attempt to invoke virtual method 'org.schabi.newpipe.extractor.stream.StreamInfo org.schabi.newpipe.player.resolver.MediaSourceTag.getMetadata()' on a null object reference
	at org.schabi.newpipe.player.Player.onPlayerError(Player.java:2526)
	at com.google.android.exoplayer2.ExoPlayerImpl.lambda$updatePlaybackInfo$10(ExoPlayerImpl.java:1269)
	at com.google.android.exoplayer2.ExoPlayerImpl.$r8$lambda$-K5msfvAakBrxKAsG9AjoK30L1g(Unknown Source:0)
	at com.google.android.exoplayer2.ExoPlayerImpl$$ExternalSyntheticLambda7.invoke(Unknown Source:4)
	at com.google.android.exoplayer2.util.ListenerSet$ListenerHolder.invoke(ListenerSet.java:283)
	at com.google.android.exoplayer2.util.ListenerSet.lambda$queueEvent$0(ListenerSet.java:170)
	at com.google.android.exoplayer2.util.ListenerSet.$r8$lambda$NbKDn9xtItiyMgYZmjIx_Sv1FFQ(Unknown Source:0)
	at com.google.android.exoplayer2.util.ListenerSet$$ExternalSyntheticLambda1.run(Unknown Source:6)
	at com.google.android.exoplayer2.util.ListenerSet.flushEvents(ListenerSet.java:191)
	at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(ExoPlayerImpl.java:1340)
	at com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo(ExoPlayerImpl.java:1175)
	at com.google.android.exoplayer2.ExoPlayerImpl.lambda$new$1(ExoPlayerImpl.java:216)
	at com.google.android.exoplayer2.ExoPlayerImpl.$r8$lambda$nOBJYkeEQ2uz3sBKLToLWmzrgZk(Unknown Source:0)
	at com.google.android.exoplayer2.ExoPlayerImpl$$ExternalSyntheticLambda22.run(Unknown Source:4)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:359)
	at android.app.ActivityThread.main(ActivityThread.java:7418)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)


@AudricV
Copy link
Member

AudricV commented Dec 29, 2021

Should have been fixed by #7482. Please comment if that's not the case and I will reopen this issue. Thank you.

@AudricV AudricV closed this as completed Dec 29, 2021
@LeducBastien
Copy link
Author

The bug is still there, but I managed to how EXACTLY why :
The background player crashes when the first video of a playlist is not available (Hidden, Downed, blocked in your country, copystriked...) for whatever reason.

If the playlist is manually started to any video that is available, the bug does not occur.

@opusforlife2
Copy link
Collaborator

@LeducBastien If this is still happening in the APK you got from #7482, then please add your comment there.

@AudricV AudricV added the player Issues related to any player (main, popup and background) label Jan 10, 2022
@AudricV AudricV mentioned this issue Jan 10, 2022
5 tasks
@ghost
Copy link

ghost commented Feb 21, 2022

Still happens in 0.21.16, exact same logs, only with peertube though. When i exit the newpipe app since i want audio to play in background it crashes but doesn't give me a log. Clicking on 'popup' button in the peertube video gave me this exact crash log tho

@opusforlife2
Copy link
Collaborator

@TeeDeeY Please open a new issue so that you're the OP there.

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 player Issues related to any player (main, popup and background)
Projects
None yet
Development

No branches or pull requests

3 participants