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

Crash when resuming from background after playback ended #5800

Closed
4 tasks done
danielzgtg opened this issue Mar 9, 2021 · 1 comment
Closed
4 tasks done

Crash when resuming from background after playback ended #5800

danielzgtg opened this issue Mar 9, 2021 · 1 comment
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)

Comments

@danielzgtg
Copy link

Checklist

Steps to reproduce the bug

  1. Play a video in the background
  2. Multitask away from NewPipe
  3. Wait until it ends
  4. Wait a long time, use the phone for something else, and even not use the phone for some time. (Basically give Android a potential reason to kill the app)
  5. Open Android recents
  6. Resume NewPipe

This bug doesn't happen all the time.

Actual behaviour

I saw an empty playback queue flash once or twice, then I saw the crash dialog.

Expected behavior

It should not crash

Screenshots/Screen recordings

I wasn't able to take a screenshot before I saw the error page

Logs

Exception

  • User Action: ui error
  • Request: App crash, UI failure
  • Content Country: GB
  • Content Language: en
  • App Language: en_CA
  • Service: none
  • Version: 0.20.11
  • OS: Linux Android 11 - 30
Crash log

java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.exoplayer2.PlaybackParameters org.schabi.newpipe.player.Player.getPlaybackParameters()' on a null object reference
	at org.schabi.newpipe.player.PlayQueueActivity.onCreateOptionsMenu(PlayQueueActivity.java:106)
	at android.app.Activity.onCreatePanelMenu(Activity.java:4212)
	at androidx.fragment.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:324)
	at androidx.appcompat.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:94)
	at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.onCreatePanelMenu(AppCompatDelegateImpl.java:3070)
	at androidx.appcompat.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:94)
	at androidx.appcompat.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:456)
	at androidx.appcompat.app.ToolbarActionBar$1.run(ToolbarActionBar.java:57)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:233)
	at android.app.ActivityThread.main(ActivityThread.java:8010)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)


Device info

  • Android version/Custom ROM version: OP7Pro_O2_BETA_3
  • Device model: OnePlus 7 Pro
@danielzgtg danielzgtg added the bug Issue is related to a bug label Mar 9, 2021
@AudricV AudricV added the player Issues related to any player (main, popup and background) label Mar 9, 2021
@litetex
Copy link
Member

litetex commented Apr 18, 2022

Should be fixed by #8244

@litetex litetex closed this as completed Apr 18, 2022
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