TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.54k stars 3.06k forks source link

Newpipe on the Pico 4 VR headset crashes when I try to change the resolution #10280

Closed gurkentopf closed 1 year ago

gurkentopf commented 1 year ago

Checklist

Affected version

0.25.1

Steps to reproduce the bug

I am using Newpipe on the Pico 4 VR headset and I get the following error message and the app crashes when I try to change the resolution while playing a video:

Expected behavior

While I try to change the resolution, the app crashes

Actual behavior

The app crashes

Screenshots/Screen recordings

No response

Logs

Exception

android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@b6c2cdf is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:936) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:403) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:102) at android.widget.PopupWindow.invokePopup(PopupWindow.java:1577) at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:1424) at androidx.appcompat.widget.AppCompatPopupWindow.showAsDropDown(AppCompatPopupWindow.java:77) at androidx.core.widget.PopupWindowCompat$Api19Impl.showAsDropDown(PopupWindowCompat.java:247) at androidx.core.widget.PopupWindowCompat.showAsDropDown(PopupWindowCompat.java:71) at androidx.appcompat.widget.ListPopupWindow.show(ListPopupWindow.java:757) at androidx.appcompat.view.menu.CascadingMenuPopup.showMenu(CascadingMenuPopup.java:487) at androidx.appcompat.view.menu.CascadingMenuPopup.show(CascadingMenuPopup.java:266) at androidx.appcompat.view.menu.MenuPopupHelper.showPopup(MenuPopupHelper.java:299) at androidx.appcompat.view.menu.MenuPopupHelper.tryShow(MenuPopupHelper.java:185) at androidx.appcompat.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:147) at androidx.appcompat.widget.PopupMenu.show(PopupMenu.java:238) at org.schabi.newpipe.player.ui.VideoPlayerUi.onQualityClicked(VideoPlayerUi.java:1170) at org.schabi.newpipe.player.ui.VideoPlayerUi.$r8$lambda$iMhrWss0nWtwij0xWfN28ICWQUk(VideoPlayerUi.java:0) at org.schabi.newpipe.player.ui.VideoPlayerUi$$ExternalSyntheticLambda17.run(R8$$SyntheticClass:0) at org.schabi.newpipe.player.ui.VideoPlayerUi.lambda$makeOnClickListener$26(VideoPlayerUi.java:1336) at org.schabi.newpipe.player.ui.VideoPlayerUi.$r8$lambda$-liQzwojzgb3c-WB0sRgyQOP0b4(VideoPlayerUi.java:0) at org.schabi.newpipe.player.ui.VideoPlayerUi$$ExternalSyntheticLambda39.onClick(R8$$SyntheticClass:0) at android.view.View.performClick(View.java:7259) at android.view.View.performClickInternal(View.java:7236) at android.view.View.access$3600(View.java:801) at android.view.View$PerformClick.run(View.java:27896) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:220) at android.app.ActivityThread.main(ActivityThread.java:7655) 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:936)


Affected Android/Custom ROM version

Android 10

Affected device model

Pico 4 VR Headset

Additional information

No response

SameenAhnaf commented 1 year ago

7865