Skip to content

java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.IWindowSession.performDeferredDestroy(android.view.IWindow)' on a null object reference #12364

@tectda17

Description

@tectda17

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

Steps to reproduce the bug

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: DE
  • Content Language: de-DE
  • App Language: de_DE
  • Service: none
  • Timestamp: 2025-02-24T07:51:24.214+01:00
  • Package: org.schabi.newpipe
  • Service: none
  • Version: 0.27.6
  • OS: Linux Android 7.1.1 - 25
Crash log

java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.IWindowSession.performDeferredDestroy(android.view.IWindow)' on a null object reference
	at android.view.SurfaceView.updateWindow(SurfaceView.java:654)
	at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:247)
	at android.view.View.dispatchWindowVisibilityChanged(View.java:10357)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1290)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1544)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6337)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
	at android.view.Choreographer.doCallbacks(Choreographer.java:686)
	at android.view.Choreographer.doFrame(Choreographer.java:621)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
	at android.os.Handler.handleCallback(Handler.java:751)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6165)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:792)

Expected behavior

No response

Actual behavior

No response

Screenshots/Screen recordings

No response

Logs

No response

Affected Android/Custom ROM version

No response

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