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

Resizing the app when in split screen mode causes a crash #7716

Closed
4 tasks done
franzalex opened this issue Jan 29, 2022 · 4 comments
Closed
4 tasks done

Resizing the app when in split screen mode causes a crash #7716

franzalex opened this issue Jan 29, 2022 · 4 comments
Labels
bug Issue is related to a bug duplicate Issue or discussion is a duplicate of an existing issue or discussion

Comments

@franzalex
Copy link

franzalex commented Jan 29, 2022

Checklist

  • I am using the latest version - 0.21.15 (Was using the latest version at the time the issue was created)
  • I checked, but didn't find any duplicates (open OR closed) of this issue in the repo.
  • I have read the contribution guidelines given at https://github.com/TeamNewPipe/NewPipe/blob/HEAD/.github/CONTRIBUTING.md.
  • This issue contains only one bug. I will open one issue for every bug report I want to file.

Steps to reproduce the bug

  1. Open NewPipe
  2. Enable split-screen
  3. Open another app; NewPipe should now be at the top pane
  4. Adjust the slider upwards to reduce the size of the NewPipe pane

Actual behavior

The application crashes at step 4 when the upper pane (with NewPipe) gets very small.

Expected behavior

The application isn't supposed to crash.

Screenshots/Screen recordings

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: GH
  • Content Language: en
  • App Language: en_GH
  • Service: none
  • Version: 0.21.15
  • 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:4206)
	at androidx.fragment.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:287)
	at androidx.appcompat.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:94)
	at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.onCreatePanelMenu(AppCompatDelegateImpl.java:3084)
	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.view.Choreographer$CallbackRecord.run(Choreographer.java:1056)
	at android.view.Choreographer.doCallbacks(Choreographer.java:878)
	at android.view.Choreographer.doFrame(Choreographer.java:807)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1041)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:368)
	at android.app.ActivityThread.main(ActivityThread.java:7730)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)

Device info

  • Android version/Custom ROM version: Android 11
  • Device model: Sony Xperia 10II
@litetex litetex added bug Issue is related to a bug template missing The bug/feature template is missing (e.g. the used app does not support issue templates) labels Jan 30, 2022
@litetex
Copy link
Member

litetex commented Jan 30, 2022

Thank you for the issue.

Could you please fill out the issue according to the template (see https://github.com/TeamNewPipe/NewPipe/issues/new?assignees=&labels=bug&template=bug_report.md)

@litetex litetex added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Jan 30, 2022
@franzalex
Copy link
Author

@litetex I've updated the issue now

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Feb 3, 2022
@litetex litetex removed the template missing The bug/feature template is missing (e.g. the used app does not support issue templates) label Feb 3, 2022
@slasherfun
Copy link

Duplicate of #6078? The crash log is almost identical.

@litetex
Copy link
Member

litetex commented Apr 27, 2022

Fixed by #8244

@litetex litetex closed this as completed Apr 27, 2022
@litetex litetex added the duplicate Issue or discussion is a duplicate of an existing issue or discussion label Apr 27, 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 duplicate Issue or discussion is a duplicate of an existing issue or discussion
Projects
None yet
Development

No branches or pull requests

3 participants