Checklist
Affected version
0.25.2
Steps to reproduce the bug
- Play any YouTube video.
- Expand the video controls.
- Tap the cast button.
Expected behavior
Cast the video to Chromecast gen2.
Actual behavior
App crashes.
Screenshots/Screen recordings
No response
Logs
Attempting to cast to a Chromecast gen2 from a Sony Xperia 10 III phone.
Exception
- User Action: ui error
- Request: ACRA report
- Content Country: US
- Content Language: en-
- App Language: en_US
- Service: none
- Version: 0.25.2
- OS: Linux Android 11 - 30
Crash log
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:1075)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:409)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:110)
at android.app.Dialog.show(Dialog.java:340)
at androidx.appcompat.app.AlertDialog$Builder.show(AlertDialog.java:1009)
at org.schabi.newpipe.util.external_communication.KoreUtils.playWithKore(KoreUtils.java:69)
at org.schabi.newpipe.player.ui.VideoPlayerUi.onPlayWithKodiClicked(VideoPlayerUi.java:1495)
at org.schabi.newpipe.player.ui.VideoPlayerUi.$r8$lambda$Ah5-AMSNj8xTdhW85LEN89TEhsk(VideoPlayerUi.java:0)
at org.schabi.newpipe.player.ui.VideoPlayerUi$$ExternalSyntheticLambda21.run(R8$$SyntheticClass:0)
at org.schabi.newpipe.player.ui.VideoPlayerUi.lambda$makeOnClickListener$27(VideoPlayerUi.java:1408)
at org.schabi.newpipe.player.ui.VideoPlayerUi.$r8$lambda$PsCE_Yd-jcDxLdmShO83lTESJIk(VideoPlayerUi.java:0)
at org.schabi.newpipe.player.ui.VideoPlayerUi$$ExternalSyntheticLambda38.onClick(R8$$SyntheticClass:0)
at android.view.View.performClick(View.java:7463)
at android.view.View.performClickInternal(View.java:7432)
at android.view.View.access$3600(View.java:817)
at android.view.View$PerformClick.run(View.java:28324)
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)
Affected Android/Custom ROM version
Android 11 / Sony
Affected device model
Xperia 10 III
Additional information
Similar issue with inactive reporter is #10127 .
Checklist
Affected version
0.25.2
Steps to reproduce the bug
Expected behavior
Cast the video to Chromecast gen2.
Actual behavior
App crashes.
Screenshots/Screen recordings
No response
Logs
Attempting to cast to a Chromecast gen2 from a Sony Xperia 10 III phone.
Exception
Crash log
Affected Android/Custom ROM version
Android 11 / Sony
Affected device model
Xperia 10 III
Additional information
Similar issue with inactive reporter is #10127 .