Skip to content

[REGRESSION] NewPipe crashes when switching service in the service switcher #12992

@jehad-husein

Description

@jehad-husein

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.
  • I have read and understood the AI policy. The content of this bug report is not generated by AI.

Affected version

Nightly 1094

Steps to reproduce the bug

  1. Open the app.
  2. Tap there to switch from YouTube to SoundCloud or anywhere else.
  3. The app will then crash.

Expected behavior

The app will work smoothly without any crashes.

Actual behavior

UI crash when switching to SoundCloud.

Screenshots/Screen recordings

No response

Logs

Exception

  • User Action: ui error
  • Request: ACRA report
  • Content Country: BD
  • Content Language: bn-
  • App Language: en_US
  • Service: <unknown_service>
  • Timestamp: 2026-01-03T08:44:50.883+06:00
  • Package: org.schabi.newpipe.nightly
  • Service: <unknown_service>
  • Version: 0.28.0-1094-202601030120
  • OS: Linux Itel/S665L-GL/itel-S665L:12/SP1A.210812.016/GL-20240717V518:user/release-keys 12 - 31
Crash log

java.lang.IndexOutOfBoundsException: Index 6 out of bounds for length 6
	at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
	at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
	at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
	at java.util.Objects.checkIndex(Objects.java:391)
	at java.util.ArrayList.get(ArrayList.java:434)
	at com.google.android.material.internal.NavigationMenuPresenter$NavigationMenuAdapter.getItemViewType(NavigationMenuPresenter.java:570)
	at com.google.android.material.internal.NavigationMenuPresenter$NavigationMenuAdapter.adjustItemPositionForA11yDelegate(NavigationMenuPresenter.java:689)
	at com.google.android.material.internal.NavigationMenuPresenter$NavigationMenuAdapter.access$400(NavigationMenuPresenter.java:540)
	at com.google.android.material.internal.NavigationMenuPresenter$NavigationMenuAdapter$1.onInitializeAccessibilityNodeInfo(NavigationMenuPresenter.java:675)
	at androidx.recyclerview.widget.RecyclerViewAccessibilityDelegate$ItemDelegate.onInitializeAccessibilityNodeInfo(RecyclerViewAccessibilityDelegate.java:163)
	at androidx.core.view.AccessibilityDelegateCompat$AccessibilityDelegateAdapter.onInitializeAccessibilityNodeInfo(AccessibilityDelegateCompat.java:90)
	at android.view.View.onInitializeAccessibilityNodeInfo(View.java:8623)
	at androidx.appcompat.widget.LinearLayoutCompat.onInitializeAccessibilityNodeInfo(LinearLayoutCompat.java:1794)
	at android.view.View.createAccessibilityNodeInfoInternal(View.java:8584)
	at android.view.View$AccessibilityDelegate.createAccessibilityNodeInfo(View.java:30356)
	at android.view.View.createAccessibilityNodeInfo(View.java:8567)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1358)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1381)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1381)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1381)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1381)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1381)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1381)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1381)
	at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchAccessibilityNodeInfos(AccessibilityInteractionController.java:1183)
	at android.view.AccessibilityInteractionController.findAccessibilityNodeInfoByAccessibilityIdUiThread(AccessibilityInteractionController.java:368)
	at android.view.AccessibilityInteractionController.access$500(AccessibilityInteractionController.java:74)
	at android.view.AccessibilityInteractionController$PrivateHandler.handleMessage(AccessibilityInteractionController.java:1547)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7996)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:553)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)


Affected Android/Custom ROM version

Android 12 Stock ROM

Affected device model

Itel s23

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUIIssue is related to the graphical user interfacebugIssue is related to a bugregressionA bug that didn't exist in prior versions but appeared after a certain change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions