Skip to content

Attempt to write to field 'android.view.ViewParent android.view.View.mParent' on a null object reference #302

@rsa17826

Description

@rsa17826

Checklist

  • I am able to reproduce the bug with the latest version.
  • I am not able to reproduce the bug with the latest version of vanilla NewPipe.
  • 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 vanilla NewPipe contribution guidelines.

Affected version

0.28.0

Steps to reproduce the bug

i was reloading new feed data and trying to start playing a video at the same time

Expected behavior

the video should load and the feed should still be refreshing like it usually does when i do this.

Actual behavior

the app fully crashes then reopens showing the error message

Screenshots/Recordings

No response

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: US
  • Content Language: en-US
  • App Language: en_US
  • Service: none
  • Timestamp: 2026-01-24T13:51:31.739-05:00
  • Package: org.polymorphicshade.tubular
  • Service: none
  • Version: 0.28.0
  • OS: Linux Android 12 - 31
Crash log

java.lang.NullPointerException: Attempt to write to field 'android.view.ViewParent android.view.View.mParent' on a null object reference
  at android.view.ViewGroup.removeFromArray(ViewGroup.java:5450)
  at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5647)
  at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5609)
  at android.view.ViewGroup.removeView(ViewGroup.java:5540)
  at org.schabi.newpipe.player.ui.MainPlayerUi.removeViewFromParent(MainPlayerUi.java:226)
  at org.schabi.newpipe.fragments.detail.VideoDetailFragment.lambda$tryAddVideoPlayerView$41(VideoDetailFragment.java:1336)
  at org.schabi.newpipe.fragments.detail.VideoDetailFragment.$r8$lambda$HHdVgAtYaA716YugOUR3kr9XNYc(VideoDetailFragment.java:0)
  at org.schabi.newpipe.fragments.detail.VideoDetailFragment$$ExternalSyntheticLambda74.accept(R8$$SyntheticClass:0)
  at j$.util.Optional.ifPresent(SourceFile:183)
  at org.schabi.newpipe.fragments.detail.VideoDetailFragment.lambda$tryAddVideoPlayerView$42(VideoDetailFragment.java:1332)
  at org.schabi.newpipe.fragments.detail.VideoDetailFragment.$r8$lambda$lWuXH-ICFbC_nHc5WkaR3M4VfDI(VideoDetailFragment.java:0)
  at org.schabi.newpipe.fragments.detail.VideoDetailFragment$$ExternalSyntheticLambda64.run(R8$$SyntheticClass:0)
  at android.os.Handler.handleCallback(Handler.java:938)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loopOnce(Looper.java:209)
  at android.os.Looper.loop(Looper.java:296)
  at android.app.ActivityThread.main(ActivityThread.java:7882)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:568)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)


Affected Android/Custom ROM version

android 12

Affected device model

nokia c100

Additional information

i have set the animation scale for all animations to 0 on my device.
within less than 30 seconds after this error occurred i got an anr for system ui.

i am uncertain if i should check
I am able to reproduce the bug with the latest version.
as i did have it occur on the latest version but it is currently only happened once and i have not been able to reproduce it again after.
and
I am not able to reproduce the bug with the latest version of vanilla NewPipe.
as i can't get this to happen on vanilla NewPipe but i don't know if that means that it doesn't exist on vanilla NewPipe.
though it appears that i have to check them both to create the issue so that's what i did.

also i currently can't read the faq as https://newpipe.net/FAQ/ is down atm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions