Skip to content

When changing the video resolution and restarting the phone, a screen glitch occurs. #12295

@buluu97

Description

@buluu97

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have read the FAQ and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.27.6(Latest version on F-Droid)

Steps to reproduce the bug

  1. Open a video and switch to landscape mode.
  2. Click on the resolution option and modify it.
  3. Restart the phone while switching the resolution.
  4. 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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIssue or discussion is a duplicate of an existing issue or discussiontemplate ignoredThe user didn't follow the template/instructions (or removed them)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions