You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rotate the screen 90 degrees, and a screen glitch occurs.
Expected behavior
The app should smoothly continue the resolution switch operation that was in progress before the phone restart, and there should be no screen glitch.
Actual behavior
A screen glitch occurs.
Screenshots/Screen recordings
20250520-002548.mp4
Logs
03-13 18:25:09.848 5068 5068 E AndroidRuntime: Process: org.schabi.newpipe.debug, PID: 5068
03-13 18:25:09.848 5068 5068 E AndroidRuntime: java.lang.IllegalArgumentException: View=android.widget.PopupWindow$PopupDecorView{c4b663f V.E...... R.....ID 0,0-392,480} not attached to window manager
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:544)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.WindowManagerGlobal.updateViewLayout(WindowManagerGlobal.java:433)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:116)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.widget.PopupWindow.update(PopupWindow.java:2210)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.widget.PopupWindow.update(PopupWindow.java:2331)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.widget.PopupWindow.alignToAnchor(PopupWindow.java:2501)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.widget.PopupWindow.access$000(PopupWindow.java:106)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.widget.PopupWindow$1.onViewAttachedToWindow(PopupWindow.java:240)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.View.dispatchAttachedToWindow(View.java:20490)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.addViewInner(ViewGroup.java:5278)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:5064)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:5004)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.view.ViewGroup.addView(ViewGroup.java:4976)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at org.schabi.newpipe.fragments.detail.VideoDetailFragment.lambda$tryAddVideoPlayerView$41(VideoDetailFragment.java:1259)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at org.schabi.newpipe.fragments.detail.VideoDetailFragment.$r8$lambda$s-YSZ_fvw5kK3nBMjl4uKoby47w(Unknown Source:0)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at org.schabi.newpipe.fragments.detail.VideoDetailFragment$$ExternalSyntheticLambda39.accept(Unknown Source:4)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at j$.util.Optional.ifPresent(Optional.java:183)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at org.schabi.newpipe.fragments.detail.VideoDetailFragment.lambda$tryAddVideoPlayerView$42(VideoDetailFragment.java:1254)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at org.schabi.newpipe.fragments.detail.VideoDetailFragment.$r8$lambda$S8n3OzU8HWJ8m_WwgX_142JT8Zo(Unknown Source:0)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at org.schabi.newpipe.fragments.detail.VideoDetailFragment$$ExternalSyntheticLambda49.run(Unknown Source:2)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.os.Looper.loop(Looper.java:223)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7656)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
03-13 18:25:09.848 5068 5068 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)```
### Affected Android/Custom ROM version
Android 11
### Affected device model
_No response_
### Additional information
_No response_
Checklist
Affected version
0.27.6(Latest version on F-Droid)
Steps to reproduce the bug
Expected behavior
The app should smoothly continue the resolution switch operation that was in progress before the phone restart, and there should be no screen glitch.
Actual behavior
A screen glitch occurs.
Screenshots/Screen recordings
20250520-002548.mp4
Logs