Skip to content

[Bug] Searching for a video in history tab crashes the app #2830

Description

@lilhooper4611

Checklist

  • I make sure that the issue is NOT a duplicate of pinned issues
  • I make sure I am using the LATEST version - check here
  • I understand that issues with limited impact, such as those occurring on specific devices or under specific network conditions, will not be fixed
  • I have attached the error report in the issue

Describe the bug

So whenever I attempt to search for a video in the history tab on the home screen it always crashes.

Version

5.2.5

Frequency

Always (100% of the time)

Device

Samsung Galaxy S24 Ultra

Steps to reproduce the bug

  1. Open the app
  2. Go to the history tab on the home page
  3. Click the search option
  4. Boom. The crash happens.

Additional context

{"user_action":"ui error","request":"ACRA report","content_language":"en-US","content_country":"US","app_language":"en_US","service":"none","endpoint":"visionos","package":"InfinityLoop1309.NewPipeEnhanced","version":"5.2.5","os":"Linux samsung/e3qsqw/e3q:16/BP4A.251205.006/S928USQU5DZDR:user/release-keys 16 - 36","time":"2026-08-08 20:16","exceptions":["java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference\n\tat org.schabi.newpipe.local.history.StatisticsPlaylistFragment.onOptionsItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:98)\n\tat androidx.fragment.app.Fragment.performOptionsItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:13)\n\tat androidx.fragment.app.FragmentManager.dispatchOptionsItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:32)\n\tat androidx.fragment.app.Fragment.performOptionsItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:23)\n\tat androidx.fragment.app.FragmentManager.dispatchOptionsItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:32)\n\tat androidx.activity.ComponentActivity.onMenuItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:36)\n\tat androidx.fragment.app.FragmentActivity.onMenuItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:1)\n\tat androidx.appcompat.app.AppCompatActivity.onMenuItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:1)\n\tat androidx.appcompat.view.WindowCallbackWrapper.onMenuItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:3)\n\tat androidx.appcompat.app.ToolbarActionBar$2.onMenuItemClick(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:6)\n\tat androidx.compose.ui.draw.DrawResult.onMenuItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:172)\n\tat androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:5)\n\tat androidx.appcompat.view.menu.MenuBuilder.performItemAction(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:29)\n\tat androidx.appcompat.view.menu.MenuPopup.onItemClick(r8-map-id-d52fe7a0c9e2aeb2ddb232ab0614e5b949c3b9a4273459f4324b0fd8e608de8c:39)\n\tat android.widget.AdapterView.performItemClick(AdapterView.java:380)\n\tat android.widget.AbsListView.performItemClick(AbsListView.java:1393)\n\tat android.widget.AbsListView$PerformClick.run(AbsListView.java:3714)\n\tat android.widget.AbsListView$3.run(AbsListView.java:4913)\n\tat android.os.Handler.handleCallback(Handler.java:1070)\n\tat android.os.Handler.dispatchMessage(Handler.java:125)\n\tat android.os.Looper.dispatchMessage(Looper.java:358)\n\tat android.os.Looper.loopOnce(Looper.java:288)\n\tat android.os.Looper.loop(Looper.java:392)\n\tat android.app.ActivityThread.main(ActivityThread.java:10346)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:638)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:972)\n","Last SABR diagnostics\nevent=stop reason=leases_released count=0\ntimeMs=1785975710685\nvideoId=oliCVn7Ic68\nplayerTimeMs=433\nreaderHeadMs=0\nreaderTailMs=0\nvideoItag=399\nvideoHeight=1080\nvideoBitrate=2084501\naudioItag=251\naudioBitrate=147676\nheapUsedBytes=36956272\nheapFreeBytes=13583840\nheapTotalBytes=50540112\nheapMaxBytes=536870912\npssKb=224041\nsabr=requestNumber=0, cachedBytes=5677176, peakCachedBytes=5677176, totalResponseBytes=5681304, maxResponseBytes=4362855, maxUmpPartBytes=262145, maxMediaPartPayloadBytes=262144, maxSegmentBytes=1128633, maxSegmentsPerResponse=8\n "],"user_comment":""}

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