Skip to content

Resolution/Subtitle Dropdown Open + Rotate = Crash #9643

@Tex2002ans

Description

@Tex2002ans

Checklist

  • I am able to reproduce the bug with the latest version.
  • 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.26.1

Steps to reproduce the bug

  1. Open a video.

  2. Press Play (then optionally pause).

  3. Click on the resolution/subtitle dropdown.

  4. With resolution/subtitle dropdown open, rotate the screen.

Crash.

(This crashes both going from portrait -> landscape + landscape -> portrait.)

Expected behavior

Not crash.

Actual behavior

No response

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en
  • App Language: en_US
  • Service: none
  • Version: 0.24.1
  • OS: Linux Android 11 - 30
Crash log

java.lang.IllegalArgumentException: View=android.widget.PopupWindow$PopupDecorView{6241ddc V.E...... R.....ID 0,0-515,756} not attached to window manager
	at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:556)
	at android.view.WindowManagerGlobal.updateViewLayout(WindowManagerGlobal.java:445)
	at android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:118)
	at android.widget.PopupWindow.update(PopupWindow.java:2210)
	at android.widget.PopupWindow.update(PopupWindow.java:2331)
	at android.widget.PopupWindow.alignToAnchor(PopupWindow.java:2501)
	at android.widget.PopupWindow.access$000(PopupWindow.java:106)
	at android.widget.PopupWindow$1.onViewAttachedToWindow(PopupWindow.java:240)
	at android.view.View.dispatchAttachedToWindow(View.java:20637)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3521)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3521)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3521)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3521)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3521)
	at android.view.ViewGroup.addViewInner(ViewGroup.java:5303)
	at android.view.ViewGroup.addView(ViewGroup.java:5089)
	at android.view.ViewGroup.addView(ViewGroup.java:5029)
	at android.view.ViewGroup.addView(ViewGroup.java:5001)
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment.lambda$tryAddVideoPlayerView$18(VideoDetailFragment.java:1341)
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment.$r8$lambda$ZzjLKhR2Gonsds2l69UGxn_Rrzc(Unknown Source:0)
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment$$ExternalSyntheticLambda37.accept(Unknown Source:4)
	at j$.util.Optional.ifPresent(Unknown Source:4)
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment.lambda$tryAddVideoPlayerView$19(VideoDetailFragment.java:1336)
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment.$r8$lambda$LHqsaPsx9z979dNc2_7Xw3h43AY(Unknown Source:0)
	at org.schabi.newpipe.fragments.detail.VideoDetailFragment$$ExternalSyntheticLambda36.run(Unknown Source:2)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:233)
	at android.app.ActivityThread.main(ActivityThread.java:8068)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)


Affected Android/Custom ROM version

Android 11 / OxygenOS 11.1.2.2

Affected device model

OnePlus 6T

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugplayerIssues related to any player (main, popup and background)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions